Skip to content

Instantly share code, notes, and snippets.

@lopespm
Last active December 28, 2016 00:29
Show Gist options
  • Save lopespm/a4330a96c6310e6e7c5f2a4bb7242e8b to your computer and use it in GitHub Desktop.
Save lopespm/a4330a96c6310e6e7c5f2a4bb7242e8b to your computer and use it in GitHub Desktop.
Do ADB action for every connected android device
#!/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