遗漏的知识点
adb分为三个部分,PC端的client pc端的service以及手机端的adb进程
adb bugreport 打印dumpsys dumpstate logcat的输出
adb uninstall -k参数表示保留数据
adb shell pm list package [-s] [-3][-f存放位置][-i来源]
adb shell pm path [pkgname列出包名的apk位置]
adb shell pm list instrumentation
adb shell pm dump [pkgname]
adb shell pm install/uninstall
adb shell am start [-S先停止再启动][-W等待启动完成][-a action][-d data]
adb shell am instrumentation
adb shell am monitor
adb shell am startservice
adb shell am broadcast [-a]
adb shell wm size [reset][自定义分辨率??x??]
adb shell dumpsys
adb shell getprop
Dumpsys:
获取当前activity名字
adb shell dumpsys activity top | grep ‘ACTIVITY’
获取包详细信息,有别于pm list package
adb shell dumpsys package com.xxxx.xxxx
打印最后出现的lastanr
adb shell dumpsys window l
打印出程序的carsh日志
adb shell dumpsys dropbox –print
adb shell monkey -f [脚本]