java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{80397e6 26364:org.wordpress.android/u0a238} (pid=26364, uid=10238) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via GitHub by maxme
, 1 year ago
Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{80397e6 26364:org.wordpress.android/u0a238} (pid=26364, uid=10238) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
via Stack Overflow by Snake
, 2 years ago
Permission Denial: opening provider com.google.android.apps.photos.content.GooglePhotosImageProvider from ProcessRecord{454ca9d0 5914:com.propertymanager/u0a10231} (pid=5914, uid=10231) requires com.google.android.apps.photos.permission.GOOGLE_PHOTOS or com.google.android.apps.photos.permission.GOOGLE_PHOTOS
via wenda.io by Unknown author, 1 year ago
Permission Denial: opening provider com.google.android.apps.photos.content.GooglePhotosImageProvider from ProcessRecord{454ca9d0 5914:com.propertymanager/u0a10231} (pid=5914, uid=10231) requires com.google.android.apps.photos.permission.GOOGLE_PHOTOS or com.google.android.apps.photos.permission.GOOGLE_PHOTOS
via Stack Overflow by Luiz Alves
, 1 year ago
Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{9922e7c 4160:net.techabout.medappointment/u0a105} (pid=4160, uid=10105) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
via Stack Overflow by tyczj
, 2 years ago
Permission Denial: opening provider com.android.gallery3d.provider.GalleryProvider from ProcessRecord{42817d60 17387:com.tyczj.bowling/u0a10087} (pid=17387, uid=10087) requires com.google.android.gallery3d.permission.GALLERY_PROVIDER or com.google.android.gallery3d.permission.GALLERY_PROVIDER
via Stack Overflow by Rahul
, 1 year ago
Permission Denial: opening provider com.google.android.apps.photos.contentprovider.MediaContentProvider from ProcessRecord{12795c7f 18283:dccenter.dccenter.com.dccenter/u0a162} (pid=18283, uid=10162) that is not exported from uid 10106
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{80397e6 26364:org.wordpress.android/u0a238} (pid=26364, uid=10238) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
at android.os.Parcel.readException(Parcel.java:1627)
at android.os.Parcel.readException(Parcel.java:1579)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3565)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:4878)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2004)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1477)
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1095)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:948)
at org.wordpress.android.util.MediaUtils.downloadExternalMedia(MediaUtils.java:200)
at org.wordpress.android.ui.posts.EditPostActivity.addMedia(EditPostActivity.java:1517)
at org.wordpress.android.ui.posts.EditPostActivity.access$2300(EditPostActivity.java:127)
at org.wordpress.android.ui.posts.EditPostActivity$8.doInBackground(EditPostActivity.java:1452)
at org.wordpress.android.ui.posts.EditPostActivity$8.doInBackground(EditPostActivity.java:1443)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
157 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.