Skip to content

Instantly share code, notes, and snippets.

@drjunior
Created July 6, 2016 13:58
Show Gist options
  • Save drjunior/e6b1178a99b0b748abaa8885cdc73add to your computer and use it in GitHub Desktop.
Save drjunior/e6b1178a99b0b748abaa8885cdc73add to your computer and use it in GitHub Desktop.
Android Screenshots StatusBar Setup
#!/bin/sh
# Based on http://bit.ly/295BHLx
# Demo Mode for the Android System UI
# Demo mode for the status bar allows you to force the status bar into a fixed state, useful for taking screenshots with a consistent status bar state, or testing different status icon permutations. Demo mode is available in recent versions of Android.
# ----------------------------------------------------------------------------
# Prepare statusbar to take screenshots with full wifi, battery and mobile signal at 12:30.
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 network -e wifi show -e level 4
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile show -e datatype X -e level 4 -e fully true
adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100 -e plugged false
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 1230
#adb shell am broadcast -a com.android.systemui.demo -e command exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment