Jump to content

Little Handy CMD tool for batch apk installation


Guest Ricky Lui

Recommended Posts

Guest Ricky Lui

Hi all,

I am not a dev so can't cook any roms for you guys.

But I'm still willing to contribute to the community so I used my very limited computer skills :) to create a simple CMD script file.

It allows you to install all the apk files placed at the same folder and sub-folders.

Not a powerful thing. Just a little tool that helps after you wipe the device and need to install all your apps back.

P.S. Need to have ADB properly setup in advance.

(For ADB setup, please visit pixel-painter@XDA http://forum.xda-developers.com/showthread.php?t=500196)

I tried many times.Should works fine.

In case any problems, feel free to let me know.

[update] : added <ADB PUSH>> version. It will push the apks in current directory to /system/app.

[update] : added ADB REMOUNT in the beginning of the file to make sure ADB is mounted.

Find_apk_files_in_current_folder_and_install__by_ADB_INSTALL_.zip

Find_apk_files_in_current_folder_and_push__by_ADB_PUSH_.zip

Edited by Ricky Lui
Link to comment
Share on other sites

Guest navygino
Hi all,

I am not a dev so can't cook any roms for you guys.

But I'm still willing to contribute to the community so I used my very limited computer skills :) to create a simple CMD script file.

It allows you to install all the apk files placed at the same folder and sub-folders.

Not a powerful thing. Just a little tool that helps after you wipe the device and need to install all your apps back.

P.S. Need to have ADB properly setup in advance.

(For ADB setup, please visit pixel-painter@XDA http://forum.xda-developers.com/showthread.php?t=500196)

I tried many times.Should works fine.

In case any problems, feel free to let me know.

Damn cool man, will try it out sometime!!!!!!!

Will be very useful for me as I used to push all my "standard" apps to the system/app directly!!

Link to comment
Share on other sites

Guest Ricky Lui
Damn cool man, will try it out sometime!!!!!!!

Will be very useful for me as I used to push all my "standard" apps to the system/app directly!!

I dunno is ADB Push same as ADB Install.

As my CMD is using "ADB Install XXX.apk" to install application.

you may try putting several apk files at the same folder and try it out first.

Link to comment
Share on other sites

Guest navygino
I dunno is ADB Push same as ADB Install.

As my CMD is using "ADB Install XXX.apk" to install application.

you may try putting several apk files at the same folder and try it out first.

Oh, my misunderstanding as I had already forgot to "install" as I just push everything in system/app ..........hahahaha.......

Is it possible to modify the .cmd to do "push" system/app ??

for /f "usebackq tokens=*" %%G IN (AppsList.txt) Do adb push -r "%%G" system/app>> Log.txt

Edited by navygino
Link to comment
Share on other sites

Guest Ricky Lui
Oh, my misunderstanding as I had already forgot to "install" as I just push everything in system/app ..........hahahaha.......

Is it possible to modify the .cmd to do "push" system/app ??

for /f "usebackq tokens=*" %%G IN (AppsList.txt) Do adb push -r "%%G" system/app>> Log.txt

I am not sure.

Need some expert to tell the different between ADB Install xxx.apk and ADB Push xxx.apk /system/app.

But I think using ADB Install is a more traditional way to get application works on Android. (it will also put the apk to /system/app)

Anyway, if you like, you can modify the CMD by replacing the text as below.

Find this string :

adb install -r "%%G"

Replace with

adb push "%%G" /system/app

("-r" is only for ADB Install. No need for ADB Push)

I haven't tested this so I don't the consequence.

Try it at your own risk. (probably no risk at all.. :))

Edited by Ricky Lui
Link to comment
Share on other sites

Guest navygino

Tested that your .cmd can also apply to other command like "push".

I helped my friend to update the 2.0 ROM and use your .cmd to push 20+ apps to the system/app.

So that even if he reset his device, the apps will be still there as they are in system/app but not "install" in data/app.

This will be better for him as he is not very good at "computer"....

Link to comment
Share on other sites

Guest navygino

seems that it needed to adb remount before using the patch, it is possible to add the remount command in the .cmd as well?

as I don't know how to add that....

Link to comment
Share on other sites

Guest Ricky Lui
seems that it needed to adb remount before using the patch, it is possible to add the remount command in the .cmd as well?

as I don't know how to add that....

It will automatically call adb remount if it is not mounted.

Anyway, adding the remount should do no harm and easy. Will update it once i can get to a pc. Plz wait and thx for ur suggestion, navygino.

Navygino, I updated the files.

Please check the first post.

Edited by Ricky Lui
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.