Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New restrictions on storage access in Android 11 #106

Open
benediktcarda opened this issue Jun 11, 2022 · 0 comments
Open

New restrictions on storage access in Android 11 #106

benediktcarda opened this issue Jun 11, 2022 · 0 comments

Comments

@benediktcarda
Copy link

As Google Play Store already requires target API level 30 for app updates and new publications, I wanted to update my app.
I found out that as of API level 30

requestLegacyExternalStorage="true"

which was a recommended workaround for android target API level 29 (#74 (comment)) is not allowed anymore.

This results in an error after cropping the image that reads:

open /storage/emulated/0/Pictures/Title - Sun Mar 13 16-23_45 GMT+01_00 2000.jpg: open failed: EACCES (Permission denied)

Theoretically there would be the option to ask for MANAGE_EXTERNAL_STORAGE permission, but this is only possible as of Android 11 and if one wants to publish on Google Play Store the request to use this will probably be rejected by Google.

There seem to be different solutions on how to manage file access now as outlined here:
https://developer.android.com/training/data-storage/use-cases#share-media-all
but I can't judge what would be applicable to this plugin and definitely it would require the change of the code (and I am not capable to program in Java).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant