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 2022/11/09 03:14:17 UTC
[GitHub] [cordova-plugin-file] breautek commented on issue #540: Permission denied - Android 12 API 32
breautek commented on issue #540:
URL: https://github.com/apache/cordova-plugin-file/issues/540#issuecomment-1308149242
WRITE_EXTERNAL_STORAGE is deprecated and is a no op when targeting API 30 or later. The scoped storage system does not use the write permission anymore and all apps have limited access to write to the external filesystem.
READ_EXTERNAL_STORAGE however is still used that gives the app permission to read files from external storage that other apps may have written to.
The MANAGE_EXTERNAL_STORAGE is a new permission that allows broad filesystem access to the app, but it requires justification to be used. Google will not allow apps to use this permission unless if they can demonstrate an actual need for broad filesystem access.
>Has the path to the file changed in Android 12 ?
Is my path correct ?
You have an absolute path, the path is not guaranteed to exist on all devices, but any device with a simulated external storage (doesn't have a physical sd card) have the /storage/emulated path. The 0/ is the device user id, which on most devices is simply 0. So your path looks ok.
> when I try update DFU...
If your app didn't write `file:///storage/emulated/0/Download/test.zip`, then you may not have write access to the file. This is a scoped storage mechanism that changed in API 30, the external storage system is severely restricted to increase privacy. If you have to download app data, you may want to consider using internal storage instead, which does not require any special permissions.
--
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