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.