How to expand/collapse status bar through ADB?

Vaibhav Joshi picture Vaibhav Joshi · Dec 4, 2015 · Viewed 10.5k times · Source

Is there any way to expand/collapse status bar of Android phone over ADB?

Answer

Onik picture Onik · Dec 4, 2015

Shell into the device (with adb shell) and use the following commands to expand/collapse status bar:

# Expand status bar
service call statusbar 1
# Collapse status bar
service call statusbar 2

Note: If device is rooted the commands may need to be called as su (with adb shell su).


The service call was tested on a non-rooted device.