title: Permission error when reading file from content uri
body: <p>I've been trying to make a simple document picker that allows the user to select a file and returns the selected file encoded in base64.
  For that, I'm currently using two packages : </p>
  
  <ul>
  <li><a href="https://github.com/Elyx0/react-native-document-picker/tree/v3" rel="nofollow noreferrer">react-native-document-picker</a>, which allows the user to pick a file and returns a content uri</li>
  <li><a href="https://github.com/itinance/react-native-fs" rel="nofollow noreferrer">react-native-fs</a>, for its readFile function that takes an uri in parameter and returns the file in base64</li>
  </ul>
  
  <p>Here is this specific bit of code : </p>
  
  <pre><code>    DocumentPicker.pick({
          type: [DocumentPicker.types.allFiles]
      })
      .then(res =&gt;
      {
          RNFS.readFile(decodeURIComponent(res.uri), "base64").then(result =&gt;
          {
              console.log(result)
          })
      })
      .catch(error =&gt;
      {
          console.log(error)
      })
  </code></pre>
  
  <p>It works well when selecting a file from my Downloads folder, however, when I try to select a file from the "Recent" folder or from any folder that isn't related to my app, the readFile fails with the error : </p>
  
  <blockquote>
    <p>Permission Denial: reading com.android.providers.media.MediaDocumentsProvider uri content://com.android.providers.media.documents/document/image:105724 from pid=22663, uid=10471 requires android.permission.MANAGE_DOCUMENTS, or grantUriPermission()</p>
  </blockquote>
  
  <p>From what I've read, MANAGE_DOCUMENTS is a "signature" permission and cannot be added to the manifest.xml or granted by the react native android permission API.</p>
  
  <p>Is there any way I can grant or pass react-native-fs this permission, or any workaround I could use to pick any file without the error ? Am I doing this wrong ?
  I've tried using react-native-get-real-path to get a file uri from the content uri and fetching the content uri to get a blob, but it doesn't seem to work.</p>
  
  <p>Thank you</p>