adb命令

adb devices 查看设备编号
adb install 路径 安装apk
adb uninstall 包名 卸载apk
adb shell pm list packages 罗列出所有的包
-s 系统包名
-3 三方的包名
adb shell dumpsys cpuinfo 查看当前移动端的cpu的使用率
-包名 查看当前app cpu的使用率
adb shell getprop | findstr dalvik 查看本机内存使用率
adb shell dumpsys meminfo +包名 查看当前app 内存的使用率
adb shell dumpsys activity | findstr "mFocusedActivity" 查看当前的app的包名以及启动项


adb locat 查看手机日志

logcat -v time process >C:/log/aa.txt 打印日志并保存到本机

adb -s 设备名称 logcat -v time process >C:/log/aa.txt 指定设备进行打印

V —— Verbose(最低,输出得最多)
D —— Debug
I —— Info
W —— Warning
E —— Error
F —— Fatal
S —— Silent(最高,啥也不输出)
adb logcat *:W 过滤日志 含w以及w以上的日志

adb -s 设备名称 logcat *:w -v time process >C:/log/aa.txt 指定设备进行打印

posted @ 2020-12-01 08:56  Python从入门到放弃o  阅读(228)  评论(0编辑  收藏  举报