1 .根手机导出
这没什么可说的。 用adb pull就可以了。 如果权限不够,则提示adb root。
市中心来了文件:
adb pull /data/anr/traces.txt
放下,放下整个文件夹
adb pull /data/anr
2 .新版本的手机
新版本的手机有的可以访问/data/anr,有的没有访问权限,但无论是否可以访问,都没有权限
~ ADB shell Raphael :/$ CD/data/anr Raphael :/data/anr $ lsanr _ 2019-11-26-17-55-57-277 dump trace _mptrace _ace
导出tombstone文件也会出现同样的问题
ADB shell Raphael :/$ CD/data/tombstones Raphael 3360/data/tombstones $ lsls 3360. permission denied1| Raphael
~ adb bugreport约5分钟~~~~~~~~~ ls-al|grep bugreport-rw-r-- @1along staff 11543365 nov 261836005 bugreport-Raphael
参考:
3359 developer.Android.com/studio/debug/bug-report