Last active
January 31, 2023 16:34
-
-
Save hector6872/c79ad1ff963b859625c26f0e2e6977f2 to your computer and use it in GitHub Desktop.
Demo Mode for the Android System UI - screenshots - bash script
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
#!/usr/bin/env sh | |
# export PATH=$PATH:~/Library/Android/sdk/platform-tools/ | |
case $1 in | |
"enter") | |
adb shell settings put global sysui_demo_allowed 1 | |
# display time 12:00 | |
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1200 | |
# display full mobile data without type | |
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e level 4 -e datatype false | |
adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4 -e fully true | |
# hide notifications | |
adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false | |
# show full battery but not in charging state | |
adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false -e level 100 | |
# activate show touches developer option | |
adb shell settings put system show_touches 1 | |
;; | |
"exit") | |
adb shell am broadcast -a com.android.systemui.demo -e command exit | |
adb shell settings put system show_touches 0 | |
;; | |
*) | |
echo "Use: $0 [enter|exit]"; | |
exit 1; | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment