Last active
January 3, 2020 06:34
-
-
Save gwsu2008/dae89f420170332d694eb98303e0d35d to your computer and use it in GitHub Desktop.
adb-commands
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
# List service | |
adb shell dumpsys -l | |
# Turn on bluetooth | |
adb shell service call bluetooth_manager 6 | |
adb shell dumpsys bluetooth_manager | |
# Wake up device ${UDID} if the screen is off | |
adb -s ${UDID} shell dumpsys power | grep "Display Power: state=ON" | xargs -0 test -z && adb -s ${UDID} shell input keyevent 26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment