mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
Use demo mode when taking screenshots to clear status bar
https://android.googlesource.com/platform/frameworks/base/+/master/packages/SystemUI/docs/demo_mode.md
This commit is contained in:
@@ -19,8 +19,10 @@ platform :android do
|
||||
desc "Takes screenshots for manual and Google Play"
|
||||
lane :screenshots do
|
||||
gradle(project_dir: "..", task: "assembleScreenshot assembleAndroidTest")
|
||||
system './demo-mode-activate.sh'
|
||||
capture_android_screenshots
|
||||
system './rename_screenshots.py'
|
||||
system './demo-mode-deactivate.sh'
|
||||
system './rename_screenshots.py'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
7
briar-android/fastlane/demo-mode-activate.sh
Executable file
7
briar-android/fastlane/demo-mode-activate.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
adb shell settings put global sysui_demo_allowed 1
|
||||
adb shell am broadcast -a com.android.systemui.demo -e command enter
|
||||
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 battery -e level 100
|
||||
adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show
|
||||
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1337
|
||||
2
briar-android/fastlane/demo-mode-deactivate.sh
Executable file
2
briar-android/fastlane/demo-mode-deactivate.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
adb shell am broadcast -a com.android.systemui.demo -e command exit
|
||||
Reference in New Issue
Block a user