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

Stack Overflow | Vijay Bansal | 9 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. 0

    InApp Billing: java.lang.SecurityException Requires READ_PHONE_STATE

    Stack Overflow | 9 months ago | Vijay Bansal
    java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10131 nor current process has android.permission.READ_PHONE_STATE.
  2. 0

    Strange crashes on Google Developer Console

    GitHub | 8 months ago | centy
    java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10098 nor current process has android.permission.READ_PHONE_STATE.
  3. 0

    SecurityException: Requires READ_PHONE_STATE in IabHelper

    GitHub | 9 months ago | maxim-yudin
    java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10088 nor current process has android.permission.READ_PHONE_STATE.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    You should add the permission android.permission.READ_EXTERNAL_STORAGE to your manifest file.
  6. 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
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 10131 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. com.android.vending
    IInAppBillingService$Stub$Proxy.getSkuDetails
    1. com.android.vending.billing.IInAppBillingService$Stub$Proxy.getSkuDetails(IInAppBillingService.java:251)
    1 frame
  4. com.inapp.util
    IabHelper$2.run
    1. com.inapp.util.IabHelper.querySkuDetails(IabHelper.java:920)
    2. com.inapp.util.IabHelper.queryInventory(IabHelper.java:550)
    3. com.inapp.util.IabHelper.queryInventory(IabHelper.java:522)
    4. com.inapp.util.IabHelper$2.run(IabHelper.java:617)
    4 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:818)
    1 frame