GitHub user breautek added a comment to the discussion: List subfolders and 
files of a folder (with SAF), Android 13+

On permissions it's important to understand that under Android's SAF framework, 
apps don't have broad access to external storage, they have temporary granular 
access instead and most cases it's read only. Write access depends on the 
underlying content provider.

So taking a primitive example of a social media app, that allows you to upload 
a profile picture. It may access an existing file on external storage, gain 
temporary read access to that file. But you don't want to store and use the 
provided `content://` path because that path will expire once the app is 
closed. The app will want to retain access to it long-term. Therefore the app 
should make a copy of that resource while it has the read access and use it's 
own local copy instead of the original `content://` resource.

GitHub link: 
https://github.com/apache/cordova/discussions/494#discussioncomment-10615283

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


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

Reply via email to