java.lang.SecurityException: com.android.phone from uid 10134 not allowed to perform OP_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

,

Set android:exported="true" in your AndroidManifest.xml file.

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

Solutions on the web

via Stack Overflow by kencorbin
, 1 year ago
com.android.phone from uid 10134 not allowed to perform OP_READ_PHONE_STATE
via Stack Overflow by user1234567
, 2 years ago
Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx flg=0x14200000 cmp=com.android.phone/.OutgoingCallBroadcaster (has extras) } from ProcessRecord{40ac3378 23747:org.my.application.package/10088} (pid=23747, uid=10088) requires android.permission.CALL_PHONE
via Stack Overflow by André DLC
, 2 years ago
Permission Denial: starting Intent { act=android.intent.action.VIEW cmp=be.adsoft.etimemo.base/.ClassesManager } from ProcessRecord{42fe8718 31250:be.adsoft.etimemo.demo/u0a182} (pid=31250, uid=10182) not exported from uid 10181
via Stack Overflow by fluxi
, 1 year ago
Permission Denial: opening provider com.google.android.gms.games.chimera.GamesContentProviderProxy from ProcessRecord{42f038e8 9143:com.mygame.test/u0a132} (pid=9143, uid=10132) that is not exported from uid 10013
via xda-developers.com by Unknown author, 1 year ago
Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.openquartz.voiceexample/.MenuActivity } from null (pid=19725, uid=2000) not exported from uid 10031
via Stack Overflow by Juanca diy johndiy
, 2 years ago
Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.juano.stiktag/.LoginActivity } from null (pid=13739, uid=2000) not exported from uid 10247
java.lang.SecurityException: com.android.phone from uid 10134 not allowed to perform OP_READ_PHONE_STATE
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.telephony.TelephonyManager.getVoiceMailNumber(TelephonyManager.java:2383)

Users with the same issue

5 times, 10 hours ago
5 times, 11 hours ago
Once, 1 day ago
2 times, 2 weeks ago
Once, 3 weeks ago

Write tip

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