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

learner picture learner · Mar 29, 2011 · Viewed 79k times · Source

I am writing an application for reporting crashes and the relevant logs. So from my application I am trying to access traces.txt and tombstones, but I am getting an error:

03-25 09:48:46.220 W/System.err(10250): java.io.FileNotFoundException: /data/tombstone/tombstone_00 (Permission denied)

I am able to access traces.txt, but not tombstones.

Answer

Mojo Risin picture Mojo Risin · Mar 29, 2011

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

./adb pull path_to_file location_to_save