Thursday, June 27, 2013

Android: re-installing a bunch of apps with one script

I have a bunch (over a dozen) of APKs that go together on the device as a single solution, to remove them and reinstall all of them would be a time consuming effort, so I have scripts for that.

Do not believe "-r" option in "adb install -r", it does not always re-install the app.

I have a single script with bunch of uninstalls...

adb uninstall
$ adb uninstall
$ cd your_apks
# install all APKs in this folder
$ for i in *.apk; do adb install -r $i; done