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 11 Storage Access #639

Closed
daimoniuma opened this issue May 19, 2022 · 1 comment
Closed

Android 11 Storage Access #639

daimoniuma opened this issue May 19, 2022 · 1 comment
Assignees

Comments

@daimoniuma
Copy link

daimoniuma commented May 19, 2022

Stopped work after system update to Android 11.

05-20 02:10:04.162 E/MediaProvider(3619): java.lang.IllegalArgumentException: Primary directory Github not allowed for content://media/external_primary/file; allowed directories are [Download, Documents]
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.ensureFileColumns(MediaProvider.java:2923)
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.ensureUniqueFileColumns(MediaProvider.java:2588)
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.insertFile(MediaProvider.java:3282)
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:3827)
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.insert(MediaProvider.java:3538)
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.insertFileForFuse(MediaProvider.java:7200)
05-20 02:10:04.162 E/MediaProvider(3619): 	at com.android.providers.media.MediaProvider.insertFileIfNecessaryForFuse(MediaProvider.java:7294)

Works in Download and Documents directories only as written in the stack trace.

@maks
Copy link
Owner

maks commented May 19, 2022

sadly this is a duplicate of #620

@maks maks closed this as completed May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants