Skip to content

Commit f686b0c

Browse files
committed
Add shell script to enable demo mode for e.g. creating screenshots
[ci skip]
1 parent c81b946 commit f686b0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

demo-mode.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
adb shell settings put global sysui_demo_allowed 1
4+
5+
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1200
6+
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e level 4 -e datatype false
7+
adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false
8+
adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false -e level 100

0 commit comments

Comments
 (0)