-7

I am getting IMEI & SIM Serial Number error in Android 10, Exceptions are -

java.lang.SecurityException: getDeviceId: The user 10526 does not meet the requirements to access device identifiers.
java.lang.SecurityException: getIccSerialNumber: The user 10526 does not meet the requirements to access device identifiers.
Mahabub Karim
  • 810
  • 11
  • 17

1 Answers1

2

I am getting IMEI & SIM Serial Number error in Android 10

From Android 10, Google added restriction to access the device's non-resettable identifiers.

All methods getImei(), getDeviceId(), getSerial() will return SecurityException or null for all Third-party apps(installed from Google play store).

Not possible to get IMEI on Android 10 or higher devices.

See Restriction on non-resettable device identifiers

ρяσѕρєя K
  • 132,198
  • 53
  • 198
  • 213