You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Srinivasa Rao Boyina (JIRA)" <ji...@apache.org> on 2017/04/14 11:11:41 UTC
[jira] [Created] (CB-12659) If a page has contacts plugin, security
Exception is coming and crashing the app in Android Marshmallow.
Srinivasa Rao Boyina created CB-12659:
-----------------------------------------
Summary: If a page has contacts plugin, security Exception is coming and crashing the app in Android Marshmallow.
Key: CB-12659
URL: https://issues.apache.org/jira/browse/CB-12659
Project: Apache Cordova
Issue Type: Bug
Components: Plugin Contacts
Reporter: Srinivasa Rao Boyina
Our Android App is crashing in Marshmallow with the following exception.
This exception comes until the user allow the app to access Contacts.
04-14 16:05:02.594 18029-18602/? E/AndroidRuntime﹕ FATAL EXCEPTION: pool-2-thread-5
Process: com.contacts_test, PID: 18029
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{41a69ed 18029:com.contacts_test/u0a150} (pid=18029, uid=10150) 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:4291)
at android.app.ActivityThread.acquireProvider(ActivityThread.java:6493)
at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2407)
at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1521)
at android.content.ContentResolver.query(ContentResolver.java:486)
at android.content.ContentResolver.query(ContentResolver.java:445)
at org.apache.cordova.contacts.ContactAccessorSdk5.search(ContactAccessorSdk5.java:188)
at org.apache.cordova.contacts.ContactManager$3.run(ContactManager.java:209)
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)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org