0%

常用adb命令

1.adb root获取root权限

2.adb remount

3.adb shell

4.adb push

5.adb shell之后,可以使用cat /proc/cmdline获取配置参数,如果cat失败的话,需要使用su切换到root

6.cat /proc/interrupts可以看到中断是否加载成功,查看中断发生的次数

7.adb logcat可以打印出所有信息

adb logcat -s TAG1,TAG2 打印TAG和TAG2的信息

8.adb logcat findstr “keyword”查找指定关键字的log,一般系统或者应用异常时可以搜索:

​ adb logcat findstr “AndroidRuntime”或者

​ adb logacat findstr “System.err”

9.adb kill-server 杀掉占用adb端口的进程

10.adb reboot bootloader固件下载模式

11.adb reboot重启

12.adb install -t安装一些test only的应用

13.adb logcat -g查看缓存情况

14.adb logcat -c清除缓存

15.adb logcat -G 10m将缓存大小设为10M

16.adb -s device_id ops …. 指定device_id 机器进行adb 操作

17.adb shell input keyevent 26 亮屏