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

Samebug tips5

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


rafaelrafael

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()


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Stack trace

  • 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(Parcel.java:1599) at android.os.Parcel.readException(Parcel.java:1552) at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3652) at android.app.ActivityThread.acquireProvider(ActivityThread.java:4866) at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2020) at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1488) at android.content.ContentResolver.query(ContentResolver.java:482) at android.content.ContentResolver.query(ContentResolver.java:441) at dpm.a(PG:397) at dpm.b(PG:1345) at dpn.run(PG:282) at java.lang.Thread.run(Thread.java:818)

Write tip

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

Users with the same issue

brunosatrianibrunosatriani
45 times, last one
Diogo JaymDiogo Jaym
124 times, last one
bayukresnobayukresno
228 times, last one
Ranjana DangolRanjana Dangol
4 times, last one
asvidasvid
6 times, last one
232 more bugmates