Search code examples
androidshellandroid-serviceadbandroid-statusbar

How to expand/collapse status bar through ADB?


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


Solution

  • 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.