ADB 命令
-
查看连接的设备
adb devices
-
将system分区重新挂载为可读写分区
adb remount
-
重启设备
adb reboot
-
重启设备到 bootloader,即刷机模式
adb reboot bootloader
-
重启设备到 recovery,即恢复模式
adb reboot recovery
-
查看 log
adb logcat
-
清除log缓存
adb logcat -c
-
获取设备序列号
adb get-serialno
-
获取机器 MAC 地址:
adb shell cat /sys/class/net/wlan0/address
-
获取 CPU 序列号:
adb shell cat /proc/cpuinfo
-
安装 APK
adb install xxx.apk
-
保留数据和缓存文件,重装 APK
adb install -r xxx.apk
-
安装 APK 到 SD 卡: