-
Notifications
You must be signed in to change notification settings - Fork 54
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 devices getting EACCES (Permission denied) #23
Comments
Deprecated doesn't mean we can't use it anymore. In Android 10 file path access was removed and it was returned in Android 11. <manifest ... >
<application
android:requestLegacyExternalStorage="true"
... >
...
</application>
</manifest> Please let me know asap, I will implement it into the library after you have confirmed. |
Can you please reply. |
I updated the readme. No response. Closing. |
Sorry for the none reply.
adding android:requestLegacyExternalStorage="true" works for Android 10.
however it seems like going forward, Android 11 is going to ignore it.
I'll tinker more with Android 11 and let you know if I come across anything
breaking.
great work for the library by the way.
cheers
-Angel
…On Thu, 23 Jul 2020 at 12:16, Hagen Brooks ***@***.***> wrote:
Closed #23 <#23>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#23 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGKSPWFFYNTBET5HZRPP7TR462TFANCNFSM4PCFAUUQ>
.
--
Cheers
-Angel Subscription
|
Yes, on Android 11 it will be ignored, but you still have to keep it in your manifest for it to work on Android 10. Google confirmed this on an issue I opened - https://issuetracker.google.com/issues/151407044 Like I said in my previous comment, file path access returned in Android 11. |
your codes uses getExternalStorageDirectory() which will return an exception when we try to run it on Android 10 devices with targetSdkVersion 29.
file with the deprecated code https://github.com/HBiSoft/PickiT/blob/master/pickit/src/main/java/com/hbisoft/pickit/Utils.java
referring to https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()
The text was updated successfully, but these errors were encountered: