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 | |
adb shell dumpsys deviceidle |grep "mScreenOn=true" > /dev/null | |
if [ "$?" -eq "0" ]; then | |
adb shell input keyevent POWER | |
sleep 2 | |
fi | |
adb shell dumpsys battery |grep "USB powered: true" > /dev/null | |
if [ "$?" -eq "0" ]; then |
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
### Keybase proof | |
I hereby claim: | |
* I am brozikcz on github. | |
* I am brozikcz (https://keybase.io/brozikcz) on keybase. | |
* I have a public key ASD6WqdZO8q-Vk0jU649Wra8KkQIPw2BeOrATftp5uNFAgo | |
To claim this, I am signing this object: |