java.lang.SecurityException: com.android.phone from uid 10134 not allowed to perform OP_READ_PHONE_STATE

Stack Overflow | kencorbin | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp and rafael . Or join the community to write better ones.
  1. 1

    SecurityException: not allowed to perform OP_READ_PHONE_STATE

    Stack Overflow | 6 months ago | kencorbin
    java.lang.SecurityException: com.android.phone from uid 10134 not allowed to perform OP_READ_PHONE_STATE
  2. 0
    samebug tip
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.
  3. 0
    samebug 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 goo.gl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GPS location permission error

    GitHub | 1 year ago | ibleedbinari
    java.lang.SecurityException: "gps" location provider requires ACCESS_FINE_LOCATION permission.
  6. 0

    Crash after Permission

    GitHub | 1 year ago | boredom2
    java.lang.SecurityException: Missing android.permission.GET_ACCOUNTS

  1. justCodeit 31 times, last 3 weeks ago
  2. Indri Yunita 2 times, last 1 month ago
  3. Adrien 16 times, last 2 months ago
  4. filpgame 1 times, last 2 months ago
  5. gaurav 9 times, last 4 months ago
33 more registered users
33 unregistered visitors
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

    com.android.phone from uid 10134 not allowed to perform OP_READ_PHONE_STATE

    at android.os.Parcel.readException()
  2. Android Platform
    Parcel.readException
    1. android.os.Parcel.readException(Parcel.java:1620)
    2. android.os.Parcel.readException(Parcel.java:1573)
    2 frames
  3. Android
    IPhoneSubInfo$Stub$Proxy.getVoiceMailNumberForSubscriber
    1. com.android.internal.telephony.IPhoneSubInfo$Stub$Proxy.getVoiceMailNumberForSubscriber(IPhoneSubInfo.java:858)
    1 frame
  4. Android Platform
    TelephonyManager.getVoiceMailNumber
    1. android.telephony.TelephonyManager.getVoiceMailNumber(TelephonyManager.java:2383)
    2. android.telephony.TelephonyManager.getVoiceMailNumber(TelephonyManager.java:2366)
    2 frames