java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{43247db0 14012:com.company/u0a370} (pid=14012, uid=10370) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS

Stack Overflow | abdel | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0

    Read video file name

    Stack Overflow | 8 months ago | abdel
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.company.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{43247db0 14012:com.company/u0a370} (pid=14012, uid=10370) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS
  2. 0
    samebug tip
    You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest
  3. 0

    Fatal exception error

    Stack Overflow | 3 years ago | user2850116
    java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/audio/media from pid=1071, uid=10066 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/40763 from pid=18326, uid=10114 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

    GitHub | 2 years ago | agwells
    java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/40763 from pid=18326, uid=10114 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()
  6. 0

    Avoid SecurityException when accessing DownloadProvider

    Stack Overflow | 4 years ago | ademers
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example/com.example.UploadActivity}: java.lang.SecurityException: Permission Denial: reading com.android.providers.downloads.DownloadProvider uri content://downloads/all_downloads/1145 from pid=16585, uid=10086 requires android.permission.ACCESS_ALL_DOWNLOADS, or grantUriPermission()
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{43247db0 14012:com.company/u0a370} (pid=14012, uid=10370) requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS

    at android.os.Parcel.readException()
  2. Android Platform
    ContentResolver.query
    1. android.os.Parcel.readException(Parcel.java:1472)
    2. android.os.Parcel.readException(Parcel.java:1426)
    3. android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3039)
    4. android.app.ActivityThread.acquireProvider(ActivityThread.java:4660)
    5. android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2347)
    6. android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1425)
    7. android.content.ContentResolver.query(ContentResolver.java:445)
    8. android.content.ContentResolver.query(ContentResolver.java:404)
    8 frames
  3. com.company.Utils
    Utilities.getFileName
    1. com.company.Utils.Utilities.getFileName(Utilities.java:104)
    1 frame
  4. com.company
    MainActivity.onCreate
    1. com.company.MainActivity.onCreate(MainActivity.java:115)
    1 frame
  5. Android Platform
    ActivityThread.performLaunchActivity
    1. android.app.Activity.performCreate(Activity.java:5296)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2283)
    3 frames