Last active
February 14, 2025 19:07
-
-
Save raymondctc/9f1d3841e5af573a3be6 to your computer and use it in GitHub Desktop.
Batch install apks to multiple connected devices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
adb devices | tail -n +2 | cut -sf 1 | xargs -I \{\} -P4 adb -s \{\} install -r $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@user2user1
tail -n +2
Here, the first line is not needed, so tail -n +2 removes it.