title: Using data from context providers or requesting Google Photos read permission?
body: <p>My app allows users to import their photos and videos from other apps. Now that Google replaced Google+ Photos with Google Photos, couple of things broke for me. One of these things is re-using imported files after app restart. I have a feeling they've tightened up the permissions given out when Google Photos returns the intent with the image URI, so after my app gets killed it no longer has the permission to access the uploaded file. I'm getting the Security expection:</p>
  
  <pre><code>java.lang.SecurityException: Permission Denial: opening provider com.google.android.apps.photos.contentprovider.MediaContentProvider from ProcessRecord{2c17ab9e 2124:com.myapp.myapp/u0a436} (pid=2124, uid=10436) that is not exported from uid 10427
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I'm also getting the same problem with reusing files provided by <code>com.google.android.apps.docs.sync.filemanager.FileProvider</code></p>
  
  <p>Any suggestions/workaround? I know I can read the file before I lost permission so in theory I could copy it but I can't say I like this very much..</p>