杂记

2020-06-01  本文已影响0人  黄煤球

0x001

logcat抓日志

adb logcat

    -v time 显示时间

    -s 标签

查看现在显示的activity的包名:

adb shell dumpsys window | grep mCurrentFocus

方法一:

    第一步:adb shell ps | findstr "包名/关键字" 找出对应包的pid

    第二步:adb logcat --pid 6537 就可以打出包名的日志了

方法二:

    第一步:adb shell

    第二步:logcat | grep -E "关键字"

0x002

adb install 时候 INSTALL_FAILED_TEST_ONLY

使用adb install -t

https://xiaozhuanlan.com/topic/9657182043

0x003

启动ssr服务:ssserver -c /etc/ss.json -d start

0x004

拉取anr日志:adb pull /data/anr  c:\log

adb shell cat /proc/cpuinfo可以查看手机的CPU信息

0x005

发送广播无法收到的时候有可能是intent设置了package属性和当前程序包名不一致

0x006

查看当前包名的内存信息:adb shell dumpsys meminfo 包名

上一篇 下一篇

猜你喜欢

热点阅读