java.lang.SecurityException: getDeviceId: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
via android.com by Unknown author

You need to request READ_PHONE_STATE permissions before using of this method.

Solutions on the web

via GitHub by WongWeiLoon
, 1 year ago
getDeviceId: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE.
via Stack Overflow by W.L Wong
, 1 year ago
getDeviceId: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE.
via Stack Overflow by user1452079
, 2 years ago
ConnectivityService: Neither user 10050 nor current process has android.permission.ACCESS_NETWORK_STATE.
via Stack Overflow by Antoine Cabrera-Marchal
, 1 year ago
Neither user 10032 nor current process has android.permission.MODIFY_PHONE_STATE.
via xda-developers.com by Unknown author, 1 year ago
Neither user 10182 nor current process has android.permission.DEVICE_POWER.
java.lang.SecurityException: getDeviceId: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at com.paypal.android.c.k.a(Unknown Source)
at com.paypal.android.c.f.B(Unknown Source)
at com.paypal.android.c.f.d(Unknown Source)
at com.paypal.android.c.f$3.run(Unknown Source)

Users with the same issue

4 times, 1 year ago
Once, 2 months ago
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
254 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.