From 5343e132152efd42944f9eaba493f38e0100e964 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 8 Jun 2023 19:55:55 +0530 Subject: [PATCH] fix(scripts): ensure demo mode is correctly enabled --- scripts/run-maestro-flows.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/run-maestro-flows.sh b/scripts/run-maestro-flows.sh index c658e466..eaa2f0ba 100755 --- a/scripts/run-maestro-flows.sh +++ b/scripts/run-maestro-flows.sh @@ -22,6 +22,9 @@ pushd "${SCRIPT_DIR}"/../screenshots || exit 1 # Delete any existing screenshots rm -rf ./*.png +# Allow demo mode to be enabled +adb shell settings put global sysui_demo_allowed 1 + # Enable Demo Mode on the device with the following settings # - Hide notification icons # - Set clock to 1200 hrs