java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{235a9d5 20566:com.mycomp.development.myapp/u0a157} (pid=20566, uid=10157) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

Stack Overflow | We are Borg | 3 months ago
  1. 0

    Android(6.*) : Permission denial although permissions are assigned, and are not requested

    Stack Overflow | 3 months ago | We are Borg
    java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{235a9d5 20566:com.mycomp.development.myapp/u0a157} (pid=20566, uid=10157) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
  2. 0

    Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2

    Stack Overflow | 1 year ago | travis1097
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  3. 0

    How to fill ListView with Loader?

    Stack Overflow | 2 months ago | gnoejh
    java.lang.RuntimeException: An error occurred while executing doInBackground()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{cd04c0c 21617:net.kindows.chitchat/u0a190} (pid=21617, uid=10190) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

    GitHub | 6 months ago | dmsherazi
    java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{cd04c0c 21617:net.kindows.chitchat/u0a190} (pid=21617, uid=10190) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
  6. 0

    Impacted Cases ============== usecase-cordova/CordovaContacts Reproduce Test Steps ==================== 1. Install usecase-cordova-android-tests.apk(Please find the link in comment) 2. Launch usecase-cordova-android-tests app and enter Cordova/CordovaContacts 3. Tap "Get phone's contacts" or "Add a new contact 'Dooney Evans'" Expected Outcome ================ After 3. Phone's contacts could show and no crash occur. Actual Outcome ============== After 3. Crash occur when try to get or add Contacts for cordova Test Case Source Code ===================== ||Type||URL|| |Souce code in github| https://github.com/crosswalk-project/crosswalk-test-suite/tree/master/usecase/usecase-cordova-android-tests/| |Souce code in github| https://github.com/crosswalk-project/demo-express/tree/master/samples-cordova/CordovaContacts/ | Test Builds =========== ||Version||Test Date ||Test Device||Android Version||Result|| |crosswalk 20.50.533.6|2016.07.15|Google Nexus 9|5.1.1|{color:green}Pass{color}| |crosswalk 20.50.533.6|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 20.50.533.11|2016.07.15|Google Nexus 9|5.1.1|{color:green}Pass{color}| |crosswalk 20.50.533.11|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 21.51.546.2|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 21.51.542.0|2016.07.15|Google Nexus 9|6.0.0|{color:red}Fail{color}| |crosswalk 21.51.542.0|2016.07.15|Google Nexus 9|5.1.1|{color:green}Pass{color}| Issue Analysis ============== {code} 07-15 03:50:19.389 14910 16759 E AndroidRuntime: FATAL EXCEPTION: pool-1-thread-4 07-15 03:50:19.389 14910 16759 E AndroidRuntime: Process: org.xwalk.usecase_cordova_android_tests, PID: 14910 07-15 03:50:19.389 14910 16759 E AndroidRuntime: 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 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1620) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:1573) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:3550) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.app.ActivityThread.acquireProvider(ActivityThread.java:4778) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2018) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1468) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.content.ContentResolver.query(ContentResolver.java:475) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at android.content.ContentResolver.query(ContentResolver.java:434) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at org.apache.cordova.contacts.ContactAccessorSdk5.search(ContactAccessorSdk5.java:177) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at org.apache.cordova.contacts.ContactManager$1.run(ContactManager.java:93) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) 07-15 03:50:19.389 14910 16759 E AndroidRuntime: at java.lang.Thread.run(Thread.java:818) 07-15 03:50:19.391 584 1068 W ActivityManager: Force finishing activity org.xwalk.usecase_cordova_android_tests/.usecase_cordova_android_tests {code}

    JIRA | 5 months ago | jingqiaX
    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

    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.ContactsProvider2 from ProcessRecord{235a9d5 20566:com.mycomp.development.myapp/u0a157} (pid=20566, uid=10157) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

      at android.app.ActivityThread.performLaunchActivity()
    2. Android Platform
      ActivityThread.handleLaunchActivity
      1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
      2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
      2 frames