cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivasa Rao Boyina (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-12659) If a page has contacts plugin, security Exception is coming and crashing the app in Android Marshmallow.
Date Fri, 14 Apr 2017 11:14:41 GMT

     [ https://issues.apache.org/jira/browse/CB-12659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Srinivasa Rao Boyina updated CB-12659:
--------------------------------------
    Priority: Critical  (was: Major)

> 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
>            Priority: Critical
>              Labels: Android, crash
>
> Our Android App is crashing in Marshmallow with the following exception.
> This exception comes until the user allow the app to access Contacts.
> Test Device: Samsung galaxy duos with Android Marshmallow
> 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


Mime
View raw message