Created
March 10, 2015 00:57
-
-
Save defHLT/07db5bc56dc7fd55a768 to your computer and use it in GitHub Desktop.
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/bash | |
# Send power button press if screen is off | |
(adb shell dumpsys power | grep -q "Display Power: state=OFF" ) && adb shell input keyevent KEYCODE_POWER | |
# Send menu key press to unlock | |
adb shell input keyevent 82 | |
# Even if failed let the gradle build continue | |
true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment