ANR、トゥームストーンファイルのエクスポート-恐れることなく許可が拒否されました



Export Anr Tombstones Files No Fear Permission Denied



1.ルート電話のエクスポート

これについては何も言うことはありません、adbプルで十分です。権限が不十分な場合は、adbroot。



ファイルをダウン:

adb pull /data/anr/traces.txt



フォルダ全体をダウン

adb pull / data / anr

2.新しいバージョンの携帯電話



新しい携帯電話の中には、/ data / anrに入ることができるものもあれば、入る許可がないものもありますが、入ることができるかどうかに関係なく、許可がありません。

~ ❯❯❯ adb shell raphael:/ $ cd /data/anr raphael:/data/anr $ ls anr_2019-11-26-17-55-57-277 dumptrace_9p35of trace_00 raphael:/data/anr $ cat trace_00 cat: trace_00: Permission denied

次に、許可が拒否されたことを通知します。

トゥームストーンファイルのエクスポートでも同様の問題が発生します

~ ❯❯❯ adb shell raphael:/ $ cd /data/tombstones raphael:/data/tombstones $ ls ls: .: Permission denied 1|raphael:/data/tombstones $

新しいバージョンでは、adbはこの問題を解決するためのbugreportコマンドを提供します。

~ ❯❯❯ adb bugreport Waited for about 5 minutes~~~ ~ ❯❯❯ ls -al | grep bugreport root@xxxxx 1 along staff 11543365 Nov 26 18:05 bugreport-raphael-QKQ1.190716.003-2019-11-26-18-03-25.zip

FS / dataの下にanrフォルダーとtombstonesフォルダーがあり、対応するファイルが中にあります。

参照:

https://developer.android.com/studio/debug/bug-report