ADB 安卓调试

ADB的三部分:PC上的adb client、adb server、Android设备上的adb daemon。PC和Android设备是多对多的关系

命令

查看是否检测到usb设备插入
lsusb

查看abd设备连接
adb device

以root | uroot权限运行adb
adb root | unroot

连接到车机交互式shell
adb shell

向车机中安装 | 卸载此apk
adb install xx.apk | adb uninstall com.xxx.xxx

安卓系统中文件的导入 | 导出
adb push | pull [file] [path]

终止adb服务
adb kill-server

日志输出 -c 清除 | -v [format] 格式化输出
adb logcat [option] [filter-specs]

内核日志
adb shell dmesg

bug报告
adb bugreport

停用verity
adb root
adb disable-verity
adbreboot

重启方式 一般 | fastboot模式 | rec模式
adb reboot | reboot bootloader | reboot recovery

挂载分区
adb remount

启用SELinux
adb shell setenforce 1

发表回复

后才能评论