Created
November 25, 2016 06:25
-
-
Save szhu/7a75417942221fa35ac9c557ab5d06d9 to your computer and use it in GitHub Desktop.
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 | |
verbose() { | |
echo "$@" | |
"$@" | |
} | |
power-softrestart() { | |
verbose adb shell "su -c 'killall zygote'" | |
} | |
# source: http://android.stackexchange.com/a/67689/15790 | |
radio-bluetooth-on() { | |
verbose adb shell "su -c 'service call bluetooth_manager 6'" | |
} | |
radio-bluetooth-off() { | |
verbose adb shell "su -c 'service call bluetooth_manager 8'" | |
} | |
# source: http://android.stackexchange.com/a/67689/15790 | |
radio-wifi-on() { | |
verbose adb shell "su -c 'svc wifi enable'" | |
} | |
radio-wifi-off() { | |
verbose adb shell "su -c 'svc wifi disable'" | |
} | |
ui-navbar-reset() { | |
verbose adb shell settings put secure sysui_nav_bar 'space,space,back\;home\;recent,space,menu_ime' | |
} | |
screen-density-reset() { | |
verbose adb shell wm density reset | |
} | |
"$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment