-
-
Save monkeydone/4d4e7e7d83664e8cc4dea2bde40801ae to your computer and use it in GitHub Desktop.
https://juejin.im/post/5d689058e51d4562054103e0 |
adb shell screenrecord 文件保存路径
adb shell am start -a android.intent.action.VIEW
adb shell am start -n 包名/类名
adb shell am startservice 包名/类名
adb shell am boradcast -a 广播Action
adb shell force-stop 包名
adb shell pm list packages
adb shell pm list permission-groups
adb shell pm list features
adb shell pm path 包名
查看包名安装路径
adb shell pm clear 包名
查看支持最多用户数
adb shell pm get-max-users
查询系统所有用户
adb shell pm list users
创建新用户
adb shell pm create-user user_name
移除指定id用户
adb shell pm remove-user user_id
adb shell dumpsys activity | findstr Run
查看activity
adb shell dumpsys package com.xxx.xxx(包名)
查看包名信息
a.模拟拔下设备电源
adb shell dumpsys battery unplug
b. 低电量条件下的行为
adb shell settings put global low_power 1
c .恢复电源修改
adb shell dumpsys battery reset
进入Recovery 模式可以使用组合键,也可以使用adb 命令 adb 命令进入recovery 模式如下adb reboot recovery
adb logcat -s 关注log标签
adb shell top
adb shell screencap 文件保存路径