I have 50 apk files and I need to install it to many android devices. How can I install it with one click. I can install an apk file using adb via "install" command but how to install 50 apk files at once?
I'm using Windows
Thanks.
I have 50 apk files and I need to install it to many android devices. How can I install it with one click. I can install an apk file using adb via "install" command but how to install 50 apk files at once?
I'm using Windows
Thanks.
I've installed 10 apk files on 30 devices with one SDCard and MultiAPKInstaller (available on play store: https://play.google.com/store/apps/details?id=com.bifusimo.multiapkinstaller&hl=pl).
Are you using linux ? You could copy all apks to one directory, and then run simply use:
you can either use (from
ADB
help):which is prefered over installing one-by-one, since you'll be saving some overhead connection-time over each command connecting/disconnecting to your device's modem,
generally speaking, use the
install-multiple
while escaping the package name (your apk files), you better make sure the apk files-names do not have spaces or you'll have to escape the file-names. if you are using windows's cmd escaping and wrapping with"
is mandatory, unless you are using a little trick: dropping a few apk files over a batch file and using the%*
as argument.if you are still on the "I want to install one-by-one, use my script from the following answer https://stackoverflow.com/a/34553043/257319 it will allow you an unlimited amount of arguments, while properly shortening the apk-file name in the install command..
another alternative is batch compressing the whole APK to a 'storage-compression zip' pushing it to the sdCard, uncompressing it to a tmp folder, and using shell to install the packages one by one, but since those exist locally the overhead of "adb-to-modem conversations" would be almost none :)
happy installation :]
The step by step actions required to execute Alextooter's answer:
On windows 10:
on phone:
adb devices
to see which ones are available.
If it says ... unauthorized, unlock phone screen and accept the pc key.
then if you paste an .apk in c:/b/fastboot/test.apk, the following command installs the app:
adb install test.apk
The following command installs all the apks in a folder:
for %f in (C:\your_app_path\*.apk) do adb install "%f"
Note if you have a space in the path you should put the path between quotation marks:
for %f in ("c:/b/fastboot/subfolder with space in the name/apks\*.apk") do adb install "%f"
I found the solution. Its actually very simple:
That's what i was looking for. Thanks everyone
If you want to do it on a Mac, put all your APKs in a folder and try this in the Terminal: