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

Samebug tips3

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.

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

Solutions on the web1283

  • via by jingqiaX,
  • via Stack Overflow by user2850116
    ,
  • Stack trace

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

    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

    ank_07ank_07
    114 times, last one,
    bayukresnobayukresno
    7 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Ranjana DangolRanjana Dangol
    4 times, last one,
    BardhBardh
    34 times, last one,
    231 more bugmates