Android常用命令

日志

导出日志

完整导出

adb logcat > log.txt

仅导出 systemlog

adb logcat -b system > log.txt

仅导出 eventslog
常规完整导出的logcat日志仅包含main及system

adb logcat -b events > log.txt

筛选

crash

adb logcat -b crash

自定义

adb shell logcat | grep "xxxx"

调试

当前栈顶activity

adb shell dumpsys activity | findstr "mResume"

快捷命令

开启布局边界

adb shell setprop debug.layout true
adb shell service call activity 1599295570
The article has been posted for too long and comments have been automatically closed.