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

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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()

tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write on the Android Manifest

tip

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    • 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 android.content.ContentResolver.openInputStream(ContentResolver.java:668) 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 android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234) 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

    iridic
    iridic157 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    filipebatista
    filipebatista10 times, last one,
    229 more bugmates