{"action":"created","issue":{"url":"https://api.github.com/repos/rt2zz/react-native-contacts/issues/313","repository_url":"https://api.github.com/repos/rt2zz/react-native-contacts","labels_url":"https://api.github.com/repos/rt2zz/react-native-contacts/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/rt2zz/react-native-contacts/issues/313/comments","events_url":"https://api.github.com/repos/rt2zz/react-native-contacts/issues/313/events","html_url":"https://github.com/rt2zz/react-native-contacts/issues/313","id":340551777,"node_id":"MDU6SXNzdWUzNDA1NTE3Nzc=","number":313,"title":"app crash with java.lang.SecurityException on getAll","user":{"login":"YUSHEN2015","id":13361145,"node_id":"MDQ6VXNlcjEzMzYxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/13361145?v=4","gravatar_id":"","url":"https://api.github.com/users/YUSHEN2015","html_url":"https://github.com/YUSHEN2015","followers_url":"https://api.github.com/users/YUSHEN2015/followers","following_url":"https://api.github.com/users/YUSHEN2015/following{/other_user}","gists_url":"https://api.github.com/users/YUSHEN2015/gists{/gist_id}","starred_url":"https://api.github.com/users/YUSHEN2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YUSHEN2015/subscriptions","organizations_url":"https://api.github.com/users/YUSHEN2015/orgs","repos_url":"https://api.github.com/users/YUSHEN2015/repos","events_url":"https://api.github.com/users/YUSHEN2015/events{/privacy}","received_events_url":"https://api.github.com/users/YUSHEN2015/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-12T09:08:21Z","updated_at":"2018-11-14T22:57:09Z","closed_at":null,"author_association":"NONE","body":"**log:**\r\n\r\njava.lang.SecurityException: Proxy package com.android.providers.contacts from uid 10005 or calling package ** from uid 10128 not allowed to perform READ_CONTACTS\r\n\tat android.os.Parcel.readException(Parcel.java:1683)\r\n\tat android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)\r\n\tat android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)\r\n\tat android.content.ContentProviderProxy.query(ContentProviderNative.java:421)\r\n\tat android.content.ContentResolver.query(ContentResolver.java:532)\r\n\tat android.content.ContentResolver.query(ContentResolver.java:473)\r\n\tat com.rt2zz.reactnativecontacts.b.a(ContactsProvider.java:113)\r\n\tat com.rt2zz.reactnativecontacts.ContactsManager$1.run(ContactsManager.java:79)\r\n\tat android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\r\n\tat java.lang.Thread.run(Thread.java:760)\r\n\r\n**device info:**\r\n\r\nandroid 7.1.2 (25)，xiaomi:MI 5X:arm64-v8a\r\nandroid 6.0.1 (23)，Xiaomi:MI NOTE LTE:armeabi-v7a\r\nandroid 4.4.4 (19)，samsung:SM-T560:armeabi-v7a\r\n\r\n**version:**\r\n\r\n\"react-native-contacts\": \"^2.1.3\"\r\n\r\nI got this error on some device above，and this issue cannot be reproduced on any other deivce, eg. Nexus 5 android 6.0.1\r\n"},"comment":{"url":"https://api.github.com/repos/rt2zz/react-native-contacts/issues/comments/438850536","html_url":"https://github.com/rt2zz/react-native-contacts/issues/313#issuecomment-438850536","issue_url":"https://api.github.com/repos/rt2zz/react-native-contacts/issues/313","id":438850536,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODg1MDUzNg==","user":{"login":"felansu","id":1687697,"node_id":"MDQ6VXNlcjE2ODc2OTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1687697?v=4","gravatar_id":"","url":"https://api.github.com/users/felansu","html_url":"https://github.com/felansu","followers_url":"https://api.github.com/users/felansu/followers","following_url":"https://api.github.com/users/felansu/following{/other_user}","gists_url":"https://api.github.com/users/felansu/gists{/gist_id}","starred_url":"https://api.github.com/users/felansu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felansu/subscriptions","organizations_url":"https://api.github.com/users/felansu/orgs","repos_url":"https://api.github.com/users/felansu/repos","events_url":"https://api.github.com/users/felansu/events{/privacy}","received_events_url":"https://api.github.com/users/felansu/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T22:57:09Z","updated_at":"2018-11-14T22:57:09Z","author_association":"NONE","body":"same error here @morenoh149, with sdk version 22"}}
{"actor":{"display_login":"felansu"}}