java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10040 nor current process has android.permission.READ_PHONE_STATE.

samsung.com | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    Failed talking with KnoxCustomManager service | SEAP

    samsung.com | 5 months ago
    java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10040 nor current process has android.permission.READ_PHONE_STATE.
  2. 0
    samebug tip
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.
  3. 0

    TelephonyManager crashing on android studio

    ezeenow.com | 1 year ago
    java.lang.RuntimeException: Unable to start activity ava.lang.SecurityException: Neither user 10101 nor current process has android.permission.READ_PHONE_STATE.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.SecurityException: Neither user 10032 nor current process has android.permission.MODIFY_PHONE_STATE

    Stack Overflow | 2 years ago | Antoine Cabrera-Marchal
    java.lang.SecurityException: Neither user 10032 nor current process has android.permission.MODIFY_PHONE_STATE.
  6. 0

    TelephonyManager crashing on android studio

    Stack Overflow | 1 year ago | jason
    java.lang.RuntimeException: Unable to start activity ava.lang.SecurityException: Neither user 10101 nor current process has android.permission.READ_PHONE_STATE.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.SecurityException

    Requires READ_PHONE_STATE: Neither user 10040 nor current process has android.permission.READ_PHONE_STATE.

    at android.os.Parcel.readException()
  2. Android Platform
    Parcel.readException
    1. android.os.Parcel.readException(Parcel.java:1546)
    2. android.os.Parcel.readException(Parcel.java:1499)
    2 frames
  3. Android
    ISub$Stub$Proxy.getActiveSubscriptionInfoList
    1. com.android.internal.telephony.ISub$Stub$Proxy.getActiveSubscriptionInfoList(ISub.java:584)
    1 frame
  4. Android Platform
    SubscriptionManager.getActiveSubscriptionInfoList
    1. android.telephony.SubscriptionManager.getActiveSubscriptionInfoList(SubscriptionManager.java:588)
    1 frame
  5. com.android.systemui
    NotificationPanelView.onLayout
    1. com.android.systemui.statusbar.BaseStatusBar.getNumberOfActiveSim(BaseStatusBar.java:1572)
    2. com.android.systemui.statusbar.BaseStatusBar.updateRowStates(BaseStatusBar.java:3659)
    3. com.android.systemui.statusbar.phone.PhoneStatusBar.updateRowStates(PhoneStatusBar.java:3411)
    4. com.android.systemui.statusbar.phone.PhoneStatusBar.updateOverFlowView(PhoneStatusBar.java:9063)
    5. com.android.systemui.statusbar.phone.NotificationPanelView.setQsExpansion(NotificationPanelView.java:2340)
    6. com.android.systemui.statusbar.phone.NotificationPanelView.onLayout(NotificationPanelView.java:867)
    6 frames
  6. Android Platform
    ActivityThread.main
    1. android.view.View.layout(View.java:16939)
    2. android.view.ViewGroup.layout(ViewGroup.java:5409)
    3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    4. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    5. android.view.View.layout(View.java:16939)
    6. android.view.ViewGroup.layout(ViewGroup.java:5409)
    7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    8. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    9. android.view.View.layout(View.java:16939)
    10. android.view.ViewGroup.layout(ViewGroup.java:5409)
    11. android.widget.FrameLayout.layoutChildren(FrameLayout.java:579)
    12. android.widget.FrameLayout.onLayout(FrameLayout.java:514)
    13. android.view.View.layout(View.java:16939)
    14. android.view.ViewGroup.layout(ViewGroup.java:5409)
    15. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2464)
    16. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2167)
    17. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1301)
    18. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7016)
    19. android.view.Choreographer$CallbackRecord.run(Choreographer.java:777)
    20. android.view.Choreographer.doCallbacks(Choreographer.java:590)
    21. android.view.Choreographer.doFrame(Choreographer.java:560)
    22. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763)
    23. android.os.Handler.handleCallback(Handler.java:739)
    24. android.os.Handler.dispatchMessage(Handler.java:95)
    25. android.os.Looper.loop(Looper.java:145)
    26. android.app.ActivityThread.main(ActivityThread.java:6946)
    26 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    2 frames