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

Android 10 permission issue #29

Closed
jonandersen opened this issue Sep 9, 2019 · 14 comments
Closed

Android 10 permission issue #29

jonandersen opened this issue Sep 9, 2019 · 14 comments
Labels
enhancement New feature or request
Milestone

Comments

@jonandersen
Copy link

Hi there!

Thanks for making this great library! I ran into some issues when using the library for Android 10. It's related to the file permission and the changes that have been made to it. The latest version uses scoped permissions for data storage: https://developer.android.com/training/data-storage/files/external-scoped

I'm not 100% sure if I need to update something on the caller side or if the library needs some changes. I was able to temporarily getting the library working by adding android:requestLegacyExternalStorage="true" to my manifest.

@Dhaval2404
Copy link
Owner

@jonandersen Thank you so much for the suggestions!

@Dhaval2404 Dhaval2404 added the enhancement New feature or request label Sep 10, 2019
@jonandersen
Copy link
Author

I think I was a little unclear above, the library doesn't work on Android 10 unless the legacy storage is enabled.

@Dhaval2404
Copy link
Owner

@jonandersen after your comment only I got to know that it's not working in android 10. For now, I will add your comment inside readme file for anyone who is facing this issue.

In the upcoming days, I will add support for android 10.

Thank you so much!

@Dhaval2404 Dhaval2404 pinned this issue Dec 16, 2019
@GingerAdonis
Copy link

Any update on the support of Android 10 and higher?

Please note that scoped storage will most likely be mandatory on Android 11.

@Dhaval2404
Copy link
Owner

@JarnoVgr I'm planning to release it with v1.8. So It may take time(About a month). Currently, I'm working on v1.7.

@Dhaval2404 Dhaval2404 added this to the v1.8 milestone Mar 25, 2020
Dhaval2404 added a commit that referenced this issue Apr 28, 2020
Added scoped storage support and removed redundant storage permission.

#29 #75
@cepero91
Copy link

thanks, I'm also facing with this issue

@chandmohd
Copy link

Any Update on android 10 or higher ?
Your apis never return to onActivityResult(...) after taking picture
I have enables android:requestLegacyExternalStorage="true" but does not work

@ThanosFisherman
Copy link

ThanosFisherman commented Dec 14, 2020

android:requestLegacyExternalStorage="true" won't work anymore for Android 11 and above see here

@sinhpn92
Copy link

sinhpn92 commented Apr 7, 2021

I have got permission not allowed on Android 11. I did check that it's approved, But the lib still return false. Have anyone facing this error?

@galvandamiancarlos
Copy link

any solution?

@costular
Copy link

Any update on this?

@vishalkumarsinghvi
Copy link

We've detected that your app contains the requestLegacyExternalStorage flag in the manifest file of 1 or more of your app bundles or APKs.

Developers with apps on devices running Android 11+ must use Scoped Storage to give users better access control over their device storage. To release your app on Android 11 or newer after May 5th, you must either:

Update your app to use more privacy-friendly best practices, such as the Storage Access Framework or Media Store API
Update your app to declare the All files access (MANAGE_EXTERNAL_STORAGE) permission in the manifest file, and complete the All files access permission declaration in Play Console from May 5th
Remove the All files access permission from your app entirely
For apps targeting Android 11, the requestLegacyExternalStorage flag will be ignored. You must use the All files access permission to retain broad access.

Apps requesting access to the All files access permission without a permitted use will be removed from Google Play, and you won't be able to publish updates.
Any changes we have to that. @Dhaval2404 Because after 5 may 2021 our apps will remove from play store and we cannot publish again

@Achozen
Copy link

Achozen commented Apr 22, 2021

@Dhaval2404, any update regarding requestLegacyExternalStorage usage for Android 11? Can we expect any solution before the 5'th of May or we need to switch to another library?

@vishalkumarsinghvi
Copy link

@Dhaval2404 without READ_EXTERNAL_STORAGE && WRITE_EXTERNAL_STORAGE permission can we read images from android or not like so many people are using Intents without permission they are able to pick images.

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

No branches or pull requests