Sample Header Ad - 728x90

Access "data/tombstones/" dir from Android application

1 vote
0 answers
461 views
Trying to get access to "data/tombstones" directory from my rooted phone. I am implementing a crash collector application (system application) which would help to record the system's ANRs and tombstones crashes. I am able to access the "data/anr" but not "data/tombstones" I have written required SELinux rules to access both "data/anr" and "data/tombstones" but still it does not work for tombstones. I am trying to read them through below Lines of code: File[] anrs = new File("/data/anr/").listFiles(); File[] tombstones = new File("/data/tombstones").listFiles(); This way I can read the ANRs but not tombstones. Any help to solve this will be appreciated.
Asked by Lavyansi (89 rep)
Nov 3, 2022, 08:03 AM
Last activity: Nov 7, 2022, 07:32 AM