question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android 10 permission issue

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
Dhaval2404commented, Sep 10, 2019

@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!

3reactions
vishalkumarsinghvicommented, Apr 19, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Privacy changes in Android 10
Starting in Android 10, apps must have the READ_PRIVILEGED_PHONE_STATE privileged permission in order to access the device's non-resettable identifiers, which ...
Read more >
Android Q (10) ask permission to get access all storage. ...
The problem was that I use File object to access files, but permission only work if we use DocumentFile object to manipulate files....
Read more >
Change app permissions on your Android phone
On your phone, open the Settings app. · Tap Privacy And then Permission manager. · Tap a permission type. If you allowed or...
Read more >
Android 10 permissions: What's new and how to use them!
Android 10 had a big overhaul for permissions. Let's talk about that and learn how to view and use the new permissions system!...
Read more >
Android 10 open failed: EACCES (Permission denied)
Running this workflow on an Android 10 device failed to upload the images. The error we saw was open failed: EACCES (Permission denied)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found