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

   > I Can access files with the READ-permission but it seems like removing and 
writing files is a problem on Android 13.
   
   PR #581 really only fixes the plugin by removing the request attempt on API 
33+ for the obsolete `WRITE_EXTERNAL_STORAGE` permission which on API 33 is an 
auto rejection.
   
   It assumes `true` which is not necessarily the case. With the scoped storage 
system that Android has, you no longer need permission to write to external 
storage, however cannot modify files owned by other apps, which is not possible 
at all using any file-system APIs. There is no permission grant that the app 
itself can request to gain permission to modify other app's files.
   
   Instead, apps is suppose to use the `MediaStore` API which allows the app to 
request permission to write to a specific file (assuming that the owning app 
has a content provider implemented), allowing a temporary write grant to your 
app owned by a third-party app.
   
   I've wrote a pretty large 
[comment](https://github.com/apache/cordova-plugin-file/issues/568#issuecomment-1635875461)
 elsewhere that explains the nuances with interfacing the file plugin with the 
MediaStore API. TL;DR; I don't think it's feasible and if you require write 
access to third-party files, then you'll probably need a separate plugin that 
interfaces with the MediaStore API.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to