In case Google Play Store is unable to identify the correct APK to install for a target. Figure 1 shows two examples that split based on both the platform version.
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.
Danylo VolokhDanylo Volokh2,49611 gold badge2323 silver badges3333 bronze badges
10 Answers
alextooteralextooter
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 :]
Community♦
user257319
Are you using linux ? You could copy all apks to one directory, and then run simply use:
RobertMRobertM
I found the solution. Its actually very simple:
adb install application1.apk & adb install application2.apk & adb install applicaiton3
That's what i was looking for.Thanks everyone
Danylo VolokhDanylo Volokh2,49611 gold badge2323 silver badges3333 bronze badges
If you need a cross platform solution which also works on multiple connected devices simultaneously (with a bunch of convenience features, like finding adb in default location), you can check out this tool:
Usage for install
Does also uninstall multiple packages with wildcard support.
Full disclaimer: I am the developer
patrickfpatrickf23.1k66 gold badges7676 silver badges9999 bronze badges
Based (and thanks) on the answer by alextooterand edited by Manoj Khanna
I came up with this:
In Windows, you can using this command line:
In a batch file:
you can use %%f and '%%f' instead, and after truly long hours working on this, I came up with this pretty neat solution on a batch file:
This batch file gave this output, [notice a couple of errors, because unconventional characters in the file name (™ trade Mark Char and the '&' symbol), but nothing to worry about, that'll be another topic.]
[One final remark. The original folder address was a lot longer that just 'my hardware' and it was edited for illustrative purposes only, if by any chance it was forgotten to edit in some other line(s) then be aware. It was triple checked, but anyways, one never knows.]
so, on with the Screen Output Copy-Paste:
quietmint9,39366 gold badges4040 silver badges6767 bronze badges
Osman VielmaOsman Vielma
If you want to do it on a Mac, put all your APKs in a folder and try this in the Terminal:
Sujay AnjankarSujay Anjankar
For Windows do this:
in CMD inside ur folder path run this:
Open the text file and rename all enteries from
to
![Adb install options Adb install options](/uploads/1/2/4/8/124864981/204020664.png)
the file should look like this : (Assuming you are using Notepad to view your 'print.txt' file, press 'CTRL+H'. This will open the Find and Replace dialog box.
Now you need to rename that .txt extension in your 'c:appsprint.txt' to 'print.bat'. You need to have extension shown in windows. Google that if you dont know how to do that
JoolahJoolah5,28088 gold badges5858 silver badges8686 bronze badges
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).
Mr.R.Mr.R.
The step by step actions required to execute Alextooter's answer:
On windows 10:
- Download adb fastboot here(download link in first post):https://forum.xda-developers.com/showthread.php?t=2317790
Minimal ADB and Fastboot_techbeasts.rar
- extract to c:/b/fastboot (for example)
- open c:/b/fastboot/py_cmd.exe
- connect phone to windows via usb
on phone:
- settings>About phone>tap build nr or build model near bottom 7times>that unlocks the developer options.
- Settings> developer options>Enable adb debugging
- in ADB on windows: type:
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'
43111 gold badge44 silver badges1717 bronze badges
![How To Install Split Apk Adb How To Install Split Apk Adb](/uploads/1/2/4/8/124864981/573446018.png)