Skip to content

Commit

Permalink
Try to fix demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltroger committed Nov 1, 2023
1 parent dc1cecb commit 90f29a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/run_ui_tests
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ adb shell mkdir /sdcard/testdata
adb push testdata /sdcard/

adb shell settings put global sysui_demo_allowed 1
sleep 2
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1200
sleep 2
adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype none -e level 4
adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4
sleep 2
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype 5g -e level 4
sleep 2
adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi hide
sleep 2
adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false
sleep 2
adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100
# run a second time since this one seems to be flaky on the emulator:
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype none -e level 4

set +e # don't fail on errors

Expand Down

0 comments on commit 90f29a4

Please sign in to comment.