You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/16 22:10:11 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #494: Cannot read files under cordova.file.externalRootDirectory for Android 11

breautek commented on issue #494:
URL: https://github.com/apache/cordova-plugin-file/issues/494#issuecomment-921288899


   If you're app has the `READ_EXTERNAL_STORAGE` permission granted, in my testing reading from external storage works, however some APIs did not attempt to request permission. Reading directories was one of those methods. I have an open [PR](https://github.com/apache/cordova-plugin-file/pull/487) that corrects this specific issue, but not sure if that covers all cases for external storage. You can try applying that PR to see if it addresses your issue. Note that any app that has been prompted for external storage permissions but been previously denied may result in an automatic denial of the permission, in which case the user must navigate to the permission settings themselves to enable the permission.
   
   `READ_EXTERNAL_STORAGE` permission isn't always necessary for reading files in external storage, but it is necessary when reading files that doesn't belong to your app. I believe anything outside of your application's external data directory is considered not own by your app (with the exception of the predefined MediaStore containers, which has some special rules).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org