如何通过ADB expand/collapse状态栏?
How to expand/collapse status bar through ADB?
有什么方法可以 expand/collapse Android phone 的状态栏超过 ADB
吗?
如果你想通过 adb 将 android 设备的通知信息拉到你的 shell,你可以使用这个命令
adb shell dumpsys notification
如果要向下拖动通知区域,可以尝试mokeyrunner。
Shell进入设备(用adb shell
)并使用以下命令到expand/collapse状态栏:
# Expand status bar
service call statusbar 1
# Collapse status bar
service call statusbar 2
注意:如果设备已获得 root 权限,则可能需要将命令调用为 su
(使用 adb shell su
).
服务调用已在非 root 设备上进行测试。
另一种方式。通过使用“adb shell cmd
”
- 展开
adb shell cmd statusbar expand-notifications
- 收起
adb shell cmd statusbar collapse
- 您还可以展开快捷设置
adb shell cmd statusbar expand-settings
更多请查看help:
adb shell cmd statusbar help
有什么方法可以 expand/collapse Android phone 的状态栏超过 ADB
吗?
如果你想通过 adb 将 android 设备的通知信息拉到你的 shell,你可以使用这个命令
adb shell dumpsys notification
如果要向下拖动通知区域,可以尝试mokeyrunner。
Shell进入设备(用adb shell
)并使用以下命令到expand/collapse状态栏:
# Expand status bar
service call statusbar 1
# Collapse status bar
service call statusbar 2
注意:如果设备已获得 root 权限,则可能需要将命令调用为 su
(使用 adb shell su
).
服务调用已在非 root 设备上进行测试。
另一种方式。通过使用“adb shell cmd
”
- 展开
adb shell cmd statusbar expand-notifications
- 收起
adb shell cmd statusbar collapse
- 您还可以展开快捷设置
adb shell cmd statusbar expand-settings
更多请查看help:
adb shell cmd statusbar help