title: /data/anr/traces.txt is not accessible in program since Android N
body: <p>I used to collect ANR info by reading and analysing /data/anr/traces.txt programmatically. It works very well before Android N.</p>
  
  <p>On Android N, "/data/anr/traces.txt" is NOT accessible.</p>
  
  <pre><code>    File anrFile = new File("/data/anr/traces.txt");
      if (anrFile.exists()) {
          boolean read = anrFile.canRead();  //always FALSE
      }
  </code></pre>
  
  <p>My question:</p>
  
  <ol>
  <li><p>How can my app access traces.txt on Android N ?</p></li>
  <li><p>How can my app get its ANR info on Android N ?</p></li>
  </ol>