Last active
December 28, 2016 00:29
-
-
Save lopespm/a4330a96c6310e6e7c5f2a4bb7242e8b to your computer and use it in GitHub Desktop.
Do ADB action for every connected android device
This file contains 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/bash | |
# In this case, it is installing an apk for every connected device, but could be any other ADB action | |
adb devices | awk 'FNR>1 {print $1}'| while read line ; do adb -s $line install the-app.apk ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment