java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{71740b2 14910:org.xwalk.usecase_cordova_android_tests/u0a363} (pid=14910, uid=10363) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

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

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

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

Solutions on the web

via JIRA by jingqiaX, 1 year ago
Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{71740b2 14910:org.xwalk.usecase_cordova_android_tests/u0a363} (pid=14910, uid=10363) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
via Stack Overflow by Jon
, 1 year ago
Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{myPKG} (pid=4, uid=3539) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES
via Stack Overflow by jroal
, 2 years ago
Permission Denial: opening provider com.google.android.apps.babel.content.EsProvider from ProcessRecord{413dcdb8 9580:a2dp.Vol/u0a10071} (pid=9580, uid=10071) that is not exported from uid 10005
via Stack Overflow by AlanRubinoff
, 2 years ago
Permission Denial: opening provider com.android.browser.provider.BrowserProvider2 from ProcessRecord{50889a8 2051:org.cade.codigos/u0a53} (pid=2051, uid=10053) requires com.android.browser.permission.READ_HISTORY_BOOKMARKS or com.android.browser.permission.WRITE_HISTORY_BOOKMARKS
via Stack Overflow by Santanu
, 10 months ago
Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{292d428 1465:com.moodoff/u0a207} (pid=1465, uid=10207) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
via Stack Overflow by AlanRubinoff
, 9 months ago
Permission Denial: opening provider com.android.browser.provider.BrowserProvider2 from ProcessRecord{f90b843 2798:org.cade.codigos/u0a57} (pid=2798, uid=10057) requires com.android.browser.permission.READ_HISTORY_BOOKMARKS or com.android.browser.permission.WRITE_HISTORY_BOOKMARKS
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{71740b2 14910:org.xwalk.usecase_cordova_android_tests/u0a363} (pid=14910, uid=10363) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3550)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:4778)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2018)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1468)
at android.content.ContentResolver.query(ContentResolver.java:475)
at android.content.ContentResolver.query(ContentResolver.java:434)
at org.apache.cordova.contacts.ContactAccessorSdk5.search(ContactAccessorSdk5.java:177)
at org.apache.cordova.contacts.ContactManager$1.run(ContactManager.java:93)
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

5 times, 1 year ago
6 times, 9 months ago
5 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 times, 1 year ago
258 more bugmates

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