{"action":"created","issue":{"url":"https://api.github.com/repos/yanzhenjie/AndPermission/issues/392","repository_url":"https://api.github.com/repos/yanzhenjie/AndPermission","labels_url":"https://api.github.com/repos/yanzhenjie/AndPermission/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/yanzhenjie/AndPermission/issues/392/comments","events_url":"https://api.github.com/repos/yanzhenjie/AndPermission/issues/392/events","html_url":"https://github.com/yanzhenjie/AndPermission/issues/392","id":393836687,"node_id":"MDU6SXNzdWUzOTM4MzY2ODc=","number":392,"title":"部分定制设备权限列表里没有READ_PHONE_STATE权限，导致申请权限出现问题","user":{"login":"cosplay-wang","id":17606832,"node_id":"MDQ6VXNlcjE3NjA2ODMy","avatar_url":"https://avatars1.githubusercontent.com/u/17606832?v=4","gravatar_id":"","url":"https://api.github.com/users/cosplay-wang","html_url":"https://github.com/cosplay-wang","followers_url":"https://api.github.com/users/cosplay-wang/followers","following_url":"https://api.github.com/users/cosplay-wang/following{/other_user}","gists_url":"https://api.github.com/users/cosplay-wang/gists{/gist_id}","starred_url":"https://api.github.com/users/cosplay-wang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosplay-wang/subscriptions","organizations_url":"https://api.github.com/users/cosplay-wang/orgs","repos_url":"https://api.github.com/users/cosplay-wang/repos","events_url":"https://api.github.com/users/cosplay-wang/events{/privacy}","received_events_url":"https://api.github.com/users/cosplay-wang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-24T08:40:34Z","updated_at":"2018-12-24T08:55:01Z","closed_at":null,"author_association":"NONE","body":"部分定制设备权限列表里没有READ_PHONE_STATE权限，导致申请权限出现问题\r\n例如：读书郎平板，我之前在分支还是哪里看到过\r\n public static boolean checkPhoneState(Context context){\r\n        TelephonyManager service = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\r\n        //return !TextUtils.isEmpty(service.getDeviceId()) || !TextUtils.isEmpty(service.getSubscriberId());\r\n        if (service.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE) {\r\n            return true;\r\n        } else {\r\n            return false;\r\n            // return !TextUtils.isEmpty(service.getDeviceId())\r\n            // || !TextUtils.isEmpty(service.getSubscriberId());\r\n        }\r\n    }\r\n\r\n类似的判断，无法解决问题\r\n"},"comment":{"url":"https://api.github.com/repos/yanzhenjie/AndPermission/issues/comments/449705051","html_url":"https://github.com/yanzhenjie/AndPermission/issues/392#issuecomment-449705051","issue_url":"https://api.github.com/repos/yanzhenjie/AndPermission/issues/392","id":449705051,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTcwNTA1MQ==","user":{"login":"cosplay-wang","id":17606832,"node_id":"MDQ6VXNlcjE3NjA2ODMy","avatar_url":"https://avatars1.githubusercontent.com/u/17606832?v=4","gravatar_id":"","url":"https://api.github.com/users/cosplay-wang","html_url":"https://github.com/cosplay-wang","followers_url":"https://api.github.com/users/cosplay-wang/followers","following_url":"https://api.github.com/users/cosplay-wang/following{/other_user}","gists_url":"https://api.github.com/users/cosplay-wang/gists{/gist_id}","starred_url":"https://api.github.com/users/cosplay-wang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cosplay-wang/subscriptions","organizations_url":"https://api.github.com/users/cosplay-wang/orgs","repos_url":"https://api.github.com/users/cosplay-wang/repos","events_url":"https://api.github.com/users/cosplay-wang/events{/privacy}","received_events_url":"https://api.github.com/users/cosplay-wang/received_events","type":"User","site_admin":false},"created_at":"2018-12-24T08:55:01Z","updated_at":"2018-12-24T08:55:01Z","author_association":"NONE","body":"2.0.0-rc12"}}
{"actor":{"display_login":"cosplay-wang"}}