2019-01-23 10:04:15 +08:00
|
|
|
|
# Adb 常用指令
|
|
|
|
|
|
2020-05-09 15:46:58 +08:00
|
|
|
|
| CMD | Descriptions |
|
|
|
|
|
|--------------------------------------------------------------------|--------------|
|
|
|
|
|
| adb root | 获取 Root 权限 |
|
|
|
|
|
| adb shell | 登陆到 Shell |
|
|
|
|
|
| adb remount | 重新挂载设备中的文件系统,adb root 后重新挂载文件系统可获得写权限 |
|
|
|
|
|
| adb reboot | 重启设备 |
|
|
|
|
|
| adb install \<apk name\> | 为设备安装 apk,需要 adb root |
|
|
|
|
|
| adb service list | 查看 Service 列表 |
|
|
|
|
|
| adb service check \<service name\> | 检查某 Service 是否存在 |
|
|
|
|
|
| adb service call \<service name\> \<code\> [i32 INT | s16 STR] ... | 使用 Service |
|