diff --git a/briar-android/fastlane/Fastfile b/briar-android/fastlane/Fastfile index 3646c37a65b5c124f8edc2f046f238c26e929aa4..01035f6ece05abdbf1228c4f326f2abec41a62db 100644 --- a/briar-android/fastlane/Fastfile +++ b/briar-android/fastlane/Fastfile @@ -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 diff --git a/briar-android/fastlane/demo-mode-activate.sh b/briar-android/fastlane/demo-mode-activate.sh new file mode 100755 index 0000000000000000000000000000000000000000..23001fb56c0ad6baae18a51938a0a1a6752dbbf7 --- /dev/null +++ b/briar-android/fastlane/demo-mode-activate.sh @@ -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 \ No newline at end of file diff --git a/briar-android/fastlane/demo-mode-deactivate.sh b/briar-android/fastlane/demo-mode-deactivate.sh new file mode 100755 index 0000000000000000000000000000000000000000..c70cd53264b22c91524f176e64558af7757d3094 --- /dev/null +++ b/briar-android/fastlane/demo-mode-deactivate.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +adb shell am broadcast -a com.android.systemui.demo -e command exit \ No newline at end of file