java.lang.RuntimeException

Unable to start activity ComponentInfo{blackeyeonandroid.iosystem.co.kr.text/blackeyeonandroid.iosystem.co.kr.text.MainActivity}: java.lang.SecurityException: getSubscriberId: Neither user 10323 nor current process has android.permission.READ_PHONE_STATE.

Samebug tips5

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()

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web40582

  • via Stack Overflow by chohyunwook
    , 11 months ago
    Unable to start activity ComponentInfo{blackeyeonandroid.iosystem.co.kr.text/blackeyeonandroid.iosystem.co.kr.text.MainActivity}: java.lang.SecurityException: getSubscriberId: Neither user 10323 nor current process has android.permission.READ_PHONE_STATE.
  • Unable to start activity ComponentInfo{com.vspf/com.vspf.LoginCheckActivity}: java.lang.SecurityException: getDeviceId: Neither user 10057 nor current process has android.permission.READ_PHONE_STATE.
  • Unable to start activity ComponentInfo{com.example.a3spl.emieno/com.example.a3spl.emieno.MainActivity}: java.lang.SecurityException: getDeviceId: Neither user 10096 nor current process has android.permission.READ_PHONE_STATE.
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{blackeyeonandroid.iosystem.co.kr.text/blackeyeonandroid.iosystem.co.kr.text.MainActivity}: java.lang.SecurityException: getSubscriberId: Neither user 10323 nor current process has android.permission.READ_PHONE_STATE. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494) at android.app.ActivityThread.access$900(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5527) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: java.lang.SecurityException: getSubscriberId: Neither user 10323 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1599) at android.os.Parcel.readException(Parcel.java:1552) at com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getSubscriberIdForSubscriber(IPhoneSubInfo.java:600) at android.telephony.TelephonyManager.getSubscriberId(TelephonyManager.java:2127) at android.telephony.TelephonyManager.getSubscriberId(TelephonyManager.java:2107) at blackeyeonandroid.iosystem.co.kr.text.MainActivity.onCreate(MainActivity.java:19) at android.app.Activity.performCreate(Activity.java:6272) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 2 months ago
    34 times, 9 months ago
    6 times, 3 months ago
    2 times, 8 months ago
    Unknown user
    Once, 11 months ago
    232 more bugmates