how to access android files /data/anr/traces.txt and /data/tombstones/tombstones [duplicate]
Solution 1:
You can use adb tool located in your_sd_root_dir/tools. Use it like this
./adb pull path_to_file location_to_save
Solution 2:
If you get "permission denied" you can do this:
adb shell "cp /data/anr/traces.txt /storage/extSdCard/"
adb pull /storage/extSdCard/traces.txt
Solution 3:
You can capture a full bug report in Developer Options (see Android docs). In the bug report's ZIP file, you can find tombstones
and anr
folders in /FS/data
.
This will work with rooted and unrooted devices.