{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/sdk-packages/issues/88","repository_url":"https://api.github.com/repos/paypal/sdk-packages","labels_url":"https://api.github.com/repos/paypal/sdk-packages/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/paypal/sdk-packages/issues/88/comments","events_url":"https://api.github.com/repos/paypal/sdk-packages/issues/88/events","html_url":"https://github.com/paypal/sdk-packages/issues/88","id":174428172,"number":88,"title":"Issues with SecurityException: Requires READ_PHONE_STATE while checkout in Paypal ","user":{"login":"WongWeiLoon","id":21115553,"avatar_url":"https://avatars.githubusercontent.com/u/21115553?v=3","gravatar_id":"","url":"https://api.github.com/users/WongWeiLoon","html_url":"https://github.com/WongWeiLoon","followers_url":"https://api.github.com/users/WongWeiLoon/followers","following_url":"https://api.github.com/users/WongWeiLoon/following{/other_user}","gists_url":"https://api.github.com/users/WongWeiLoon/gists{/gist_id}","starred_url":"https://api.github.com/users/WongWeiLoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WongWeiLoon/subscriptions","organizations_url":"https://api.github.com/users/WongWeiLoon/orgs","repos_url":"https://api.github.com/users/WongWeiLoon/repos","events_url":"https://api.github.com/users/WongWeiLoon/events{/privacy}","received_events_url":"https://api.github.com/users/WongWeiLoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-01T03:24:48Z","updated_at":"2016-09-15T05:14:14Z","closed_at":null,"body":"Hi, I faced an issues caused by **SecurityException: Requires READ_PHONE_STATE** while trying to checkout in Paypal.\r\n\r\n`Fatal Exception: java.lang.SecurityException: getDeviceId: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE.\r\n\r\nat android.os.Parcel.readException(Parcel.java:1620)\r\nat android.os.Parcel.readException(Parcel.java:1573)\r\n       at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:4207)\r\n       at com.paypal.android.c.k.a(Unknown Source)\r\n       at com.paypal.android.c.f.B(Unknown Source)\r\n       at com.paypal.android.c.f.d(Unknown Source)\r\n       at com.paypal.android.c.f$3.run(Unknown Source) \r\n       Background sticky concurrent mark sweep GC freed 25935(1829KB) AllocSpace objects, 47(6MB) LOS objects, 8% free, 87MB/95MB, paused 7.704ms total 70.036ms\r\n       NeighborEvent{elapsedMs=2177754483, 192.168.0.1, [AC220B8E9BEB], RTM_NEWNEIGH, NUD_REACHABLE}\r\n       START u0 {cmp=com.luulla.mobile.android/com.paypal.android.MEP.PayPalActivity (has extras)} from uid 10179 on display 0`\r\n\r\nIt's work well on phone with android Lollipop and down, checkout in Paypal only failed on phones with Marshmallow. I have permission `<uses-permission android:name=\"android.permission.READ_PHONE_STATE\" />` in my code. May I know how to I avoid this issues ?\r\n"},"comment":{"url":"https://api.github.com/repos/paypal/sdk-packages/issues/comments/247236650","html_url":"https://github.com/paypal/sdk-packages/issues/88#issuecomment-247236650","issue_url":"https://api.github.com/repos/paypal/sdk-packages/issues/88","id":247236650,"user":{"login":"WongWeiLoon","id":21115553,"avatar_url":"https://avatars.githubusercontent.com/u/21115553?v=3","gravatar_id":"","url":"https://api.github.com/users/WongWeiLoon","html_url":"https://github.com/WongWeiLoon","followers_url":"https://api.github.com/users/WongWeiLoon/followers","following_url":"https://api.github.com/users/WongWeiLoon/following{/other_user}","gists_url":"https://api.github.com/users/WongWeiLoon/gists{/gist_id}","starred_url":"https://api.github.com/users/WongWeiLoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WongWeiLoon/subscriptions","organizations_url":"https://api.github.com/users/WongWeiLoon/orgs","repos_url":"https://api.github.com/users/WongWeiLoon/repos","events_url":"https://api.github.com/users/WongWeiLoon/events{/privacy}","received_events_url":"https://api.github.com/users/WongWeiLoon/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T05:14:14Z","updated_at":"2016-09-15T05:14:14Z","body":"The latest MPL doesn't requesting READ_PHONE_STATE permissions, but failed to enter to PayPal page. The returned results of `public void onActivityResult(int requestCode, int resultCode, Intent data){}` will always execute condition **case PayPalActivity.RESULT_FAILURE**. Again, it only happened on those device with Marshmallow. Lollipop and below work fine. "}}
{"actor":{"display_login":"WongWeiLoon"}}