Android OS Forum banner
1 - 1 of 1 Posts

·
Registered
Joined
·
1 Posts
Discussion Starter · #1 ·
for my use cases I needed to extract non-resettable hardware information like IMEI, MAC from android devices.
As per the android docs for getting IMEI https://developer.android.com/reference/android/telephony/TelephonyManager#getImei(int)apkfarry
It says the method can be invoked if one of the following requirements is met. and I am trying to satisfy. If the calling app has been granted the USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER permission.
As per permission API document https://developer.android.com/refer...ermission#USE_ICC_AUTH_WITH_DEVICE_IDENTIFIER this permission has protection level signature or pops
So, I am going ahead with signature protection level. So, I am creating a signed app and running on my android device google pixel 5A which runs on Android 12.
when I am running this code I am facing "The user 10240 does not meet the requirements to access device identifiers." security exception
 
1 - 1 of 1 Posts
Top