java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2ForLG from ProcessRecord{9557af9 1580:com.google.android.apps.plus/u0a108} (pid=1580, uid=10108) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

Stack Overflow | dayroma | 11 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

    Android SecurityException: Permission Denial

    Stack Overflow | 11 months ago | dayroma
    java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2ForLG from ProcessRecord{9557af9 1580:com.google.android.apps.plus/u0a108} (pid=1580, uid=10108) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
  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()

  1. brunosatriani 45 times, last 11 months ago
  2. Ranjana Dangol 4 times, last 11 months ago
  3. asvid 6 times, last 11 months ago
  4. bayukresno 228 times, last 11 months ago
  5. Diogo Jaym 124 times, last 11 months ago
42 more registered users
20 unregistered visitors
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.providers.contacts.ContactsProvider2ForLG from ProcessRecord{9557af9 1580:com.google.android.apps.plus/u0a108} (pid=1580, uid=10108) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

    at android.os.Parcel.readException()
  2. Android Platform
    ContentResolver.query
    1. android.os.Parcel.readException(Parcel.java:1599)
    2. android.os.Parcel.readException(Parcel.java:1552)
    3. android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3652)
    4. android.app.ActivityThread.acquireProvider(ActivityThread.java:4866)
    5. android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2020)
    6. android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1488)
    7. android.content.ContentResolver.query(ContentResolver.java:482)
    8. android.content.ContentResolver.query(ContentResolver.java:441)
    8 frames
  3. Unknown
    dpn.run
    1. dpm.a(PG:397)
    2. dpm.b(PG:1345)
    3. dpn.run(PG:282)
    3 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:818)
    1 frame