Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to access android files /data/anr/traces.txt and /data/tombstones/tombstones [duplicate]

You can use adb tool located in your_sd_root_dir/tools. Use it like this

./adb pull path_to_file location_to_save

If you get "permission denied" you can do this:

adb shell "cp /data/anr/traces.txt /storage/extSdCard/" 
adb pull /storage/extSdCard/traces.txt

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.


Note: This only works with android emulators and rooted android devices.

You can first check if the file is created or not. You can do this by going in

DDMS -> File Explorer -> data -> data -> (Your Package) -> files -> (Your File)

DDMS is on right top corner of your eclipse. If the file is not present in the above mentioned path then it is not created properly but if it is still there change the path your file accordingly while accessing it eg. /data/data/(Your Package)/traces.txt

You can also pull that traces.txt file onto your desktop. Pull option is given on top bar below DDMS.


This did it for me: adb pull "/data/anr/traces.txt"


adb shell "cd /data/anr && cat traces.txt" > anr.txt

This will copy traces.txt in anr.txt in your current set directory