Android Question READ_PHONE_NUMBERS not in Runtime permissions

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Read Phone Number is required now to access a users phone number, but it is not in the Runtime permissions.

Is there anyway to add it manually to the runtime asks?

Code: Copy
READ_PHONE_NUMBERS
         Added in API level 26

public static final String READ_PHONE_NUMBERS
             
Allows read access to the device's phone number(s). This is a subset of the capabilities granted by READ_PHONE_STATE but is exposed to instant applications.
Protection level: dangerous



         
Constant Value:                "android.permission.READ_PHONE_NUMBERS"
 
I am crashing on all my Android 11 / SDK 30 devices when I try and get the GetLineNumber functions

have added
Code: Copy
AddPermission(android.permission.READ_PHONE_NUMBERS)

To manifest and the string
Code: Copy
"android.permission.READ_PHONE_NUMBERS"
to my RP and all is fine now
 
Upvote 0

Similar Threads

Back
Top