Created
April 26, 2016 13:23
-
-
Save skellock/b8513985e56b03a59963188803b4184e to your computer and use it in GitHub Desktop.
Sends a shake command to each attach android device.
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
$ANDROID_HOME/platform-tools/adb devices | grep '\\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} $ANDROID_HOME/platform-tools/adb -s {} shell input keyevent 82 |
- where
{}
- device ID $ANDROID_HOME/platform-tools/adb
is not necessary - I just useadb ...
This simplified line worked for me, but I had to make sure I didn't have a xcode simulator window running at the same time strangely.
adb devices | grep '\t' | awk '{print $1}' | sed 's/\\s//g' | xargs -I {} adb -s {} shell input keyevent 82
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On mac terminal instead of '\t' just use '\t' in above command.