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 | 5 months ago
  1. 0

    Android SecurityException: Permission Denial

    Stack Overflow | 5 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

    Fatal exception error

    Stack Overflow | 2 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()
  3. 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()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Class not working, Error occured?

    Stack Overflow | 4 years ago | Hari
    java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/contacts from pid=392, uid=10028 requires android.permission.READ_CONTACTS
  6. 0

    Impacted Cases ============== Webapi usecase/Networking & Storage/FileReader Webapi usecase/Networking & Storage/FileSystem Webapi usecase/Device & Hardware/Camera Reproduce Test Steps ==================== 1. Download and install usecase_webapi_xwalk_tests.apk (download address please refer to the comment) 2. Launch the usecase_webapi_xwalk_tests.apk 3. Tap "Networking & Storage" -> Tap "FileReader" -> Tap "Open files" button -> Select an image, doc file, etc 5. Check the behavior Expected Outcome ================ Able to open the file Actual Outcome ============== App crash Test Builds =========== ||PackageVersion||Test Date|| Test Device ||Arch Mode|| Result|| |crosswalk 18.46.453.0|2015.12.16| Memo Pad8 | Shared / Embedded | {color:green}Pass{color} | |crosswalk 18.46.456.0|2015.12.21| Memo Pad8 | Shared / Embedded | {color:red}Fail{color} | Issue Analysis ============== Missing many permission compare with crosswalk 18.46.453.0. Error info: {code} E/XWalkViewInternal(11322): Unable to create Image File E/XWalkViewInternal(11322): java.io.IOException: open failed: EACCES (Permission denied) E/XWalkViewInternal(11322): at java.io.File.createNewFile(File.java:946) E/XWalkViewInternal(11322): at java.io.File.createTempFile(File.java:1011) E/XWalkViewInternal(11322): at org.xwalk.core.internal.XWalkViewInternal.createImageFile(XWalkViewInternal.java:1342) E/XWalkViewInternal(11322): at org.xwalk.core.internal.XWalkViewInternal.showFileChooser(XWalkViewInternal.java:1294) E/XWalkViewInternal(11322): at org.xwalk.core.internal.XWalkContentsClientBridge.shouldOverrideRunFileChooser(XWalkContentsClientBridge.java:644) E/XWalkViewInternal(11322): at org.xwalk.core.internal.XWalkWebContentsDelegateAdapter.shouldOverrideRunFileChooser(XWalkWebContentsDelegateAdapter.java:113) E/XWalkViewInternal(11322): at org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) E/XWalkViewInternal(11322): at org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:37) E/XWalkViewInternal(11322): at android.os.Handler.dispatchMessage(Handler.java:102) E/XWalkViewInternal(11322): at android.os.Looper.loop(Looper.java:149) E/XWalkViewInternal(11322): at android.app.ActivityThread.main(ActivityThread.java:5061) E/XWalkViewInternal(11322): at java.lang.reflect.Method.invokeNative(Native Method) E/XWalkViewInternal(11322): at java.lang.reflect.Method.invoke(Method.java:515) E/XWalkViewInternal(11322): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) E/XWalkViewInternal(11322): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) E/XWalkViewInternal(11322): at dalvik.system.NativeStart.main(Native Method) E/XWalkViewInternal(11322): Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied) E/XWalkViewInternal(11322): at libcore.io.Posix.open(Native Method) E/XWalkViewInternal(11322): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) E/XWalkViewInternal(11322): at java.io.File.createNewFile(File.java:939) E/XWalkViewInternal(11322): ... 15 more ...... E/AndroidRuntime(11322): FATAL EXCEPTION: main E/AndroidRuntime(11322): Process: org.xwalk.usecase_webapi_xwalk_tests, PID: 11322 E/AndroidRuntime(11322): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/366 }} to activity {org.xwalk.usecase_webapi_xwalk_tests/org.xwalk.usecase_webapi_xwalk_tests.Usecase_webapi_xwalk_testsActivity}: java.lang.RuntimeException: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/366 from pid=11322, uid=17435 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() E/AndroidRuntime(11322): at android.app.ActivityThread.deliverResults(ActivityThread.java:3405) E/AndroidRuntime(11322): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3448) E/AndroidRuntime(11322): at android.app.ActivityThread.access$1300(ActivityThread.java:138) E/AndroidRuntime(11322): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1284) E/AndroidRuntime(11322): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(11322): at android.os.Looper.loop(Looper.java:149) E/AndroidRuntime(11322): at android.app.ActivityThread.main(ActivityThread.java:5061) E/AndroidRuntime(11322): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(11322): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(11322): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788) E/AndroidRuntime(11322): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604) E/AndroidRuntime(11322): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(11322): Caused by: java.lang.RuntimeException: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/366 from pid=11322, uid=17435 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() E/AndroidRuntime(11322): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:67) E/AndroidRuntime(11322): at org.xwalk.core.XWalkView.onActivityResult(XWalkView.java:546) E/AndroidRuntime(11322): at org.xwalk.app.runtime.XWalkCoreProviderImpl.onActivityResult(XWalkCoreProviderImpl.java:67) E/AndroidRuntime(11322): at org.xwalk.app.runtime.XWalkRuntimeView.onActivityResult(XWalkRuntimeView.java:135) E/AndroidRuntime(11322): at org.xwalk.app.XWalkRuntimeActivityBase.onActivityResult(XWalkRuntimeActivityBase.java:106) E/AndroidRuntime(11322): at android.app.Activity.dispatchActivityResult(Activity.java:5579) E/AndroidRuntime(11322): at android.app.ActivityThread.deliverResults(ActivityThread.java:3401) E/AndroidRuntime(11322): ... 11 more E/AndroidRuntime(11322): Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/366 from pid=11322, uid=17435 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission() E/AndroidRuntime(11322): at android.os.Parcel.readException(Parcel.java:1465) E/AndroidRuntime(11322): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185) E/AndroidRuntime(11322): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137) E/AndroidRuntime(11322): at android.content.ContentProviderProxy.query(ContentProviderNative.java:413) E/AndroidRuntime(11322): at android.content.ContentResolver.query(ContentResolver.java:461) E/AndroidRuntime(11322): at android.content.ContentResolver.query(ContentResolver.java:404) E/AndroidRuntime(11322): at org.xwalk.core.internal.XWalkContentsClientBridge$1UriCallback.resolveFileName(XWalkContentsClientBridge.java:585) E/AndroidRuntime(11322): at org.xwalk.core.internal.XWalkContentsClientBridge$3.onReceiveValue(XWalkContentsClientBridge.java:625) E/AndroidRuntime(11322): at org.xwalk.core.internal.XWalkContentsClientBridge$3.onReceiveValue(XWalkContentsClientBridge.java:602) E/AndroidRuntime(11322): at org.xwalk.core.internal.XWalkViewInternal.onActivityResult(XWalkViewInternal.java:714) E/AndroidRuntime(11322): at org.xwalk.core.internal.XWalkViewBridge.onActivityResultSuper(XWalkViewBridge.java:399) E/AndroidRuntime(11322): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(11322): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime(11322): at org.xwalk.core.ReflectMethod.invoke(ReflectMethod.java:61) E/AndroidRuntime(11322): ... 17 more {code}

    JIRA | 12 months ago | Xie, XiaolongX
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/366 }} to activity {org.xwalk.usecase_webapi_xwalk_tests/org.xwalk.usecase_webapi_xwalk_tests.Usecase_webapi_xwalk_testsActivity}: java.lang.RuntimeException: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media/366 from pid=11322, uid=17435 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()

  1. brunosatriani 45 times, last 5 months ago
  2. Ranjana Dangol 4 times, last 6 months ago
  3. asvid 6 times, last 6 months ago
  4. bayukresno 228 times, last 5 months ago
  5. Diogo Jaym 124 times, last 5 months ago
40 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