Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to expand/collapse status bar through ADB?

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

like image 836
Vaibhav Joshi Avatar asked Dec 04 '15 07:12

Vaibhav Joshi


2 Answers

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.

like image 92
Onik Avatar answered Nov 15 '22 02:11

Onik


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

like image 25
Wonil Avatar answered Nov 15 '22 01:11

Wonil