7

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

Onik
  • 19,396
  • 14
  • 68
  • 91
Vaibhav Joshi
  • 211
  • 2
  • 4
  • 9

3 Answers3

21

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.

Onik
  • 19,396
  • 14
  • 68
  • 91
  • 1
    Plus 1 for this - Thanks alot. Also 'service call statusbar 7' for expand it full can be used – wuseman Mar 29 '22 at 02:59
13

Another way. By using "adb shell cmd"

  1. Expand

adb shell cmd statusbar expand-notifications

  1. Collapse

adb shell cmd statusbar collapse

  1. You can expand quick settings also

adb shell cmd statusbar expand-settings

Please check help for more:

adb shell cmd statusbar help

Wonil
  • 6,364
  • 2
  • 37
  • 55
-1

If you want to pull the notification information of an android device to your shell over adb, you can use this command
adb shell dumpsys notification

If you want to drag down the notification area, you can try mokeyrunner.

VicX
  • 721
  • 8
  • 13
  • Please add some more information to your answer and describe, why this command is going to solve the problem. Otherwise, your answer might get deleted for poor quality. – user1438038 Dec 04 '15 at 08:21