Last active
July 23, 2016 22:50
-
-
Save caarmen/b32370c7f0c48f3cbd60d9196db64a31 to your computer and use it in GitHub Desktop.
adb-all bash function
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
#test | |
adb-all() | |
{ | |
adb devices | while read line | |
do | |
if [ ! "$line" = "" ] && [ `echo $line | awk '{print $2}'` = "device" ] | |
then | |
device=`echo $line | awk '{print $1}'` | |
echo "$device:" | |
adb -s $device $@ | |
fi | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://stackoverflow.com/questions/17882474/running-adb-commands-on-all-connected-devices