1

I am trying to get the imei number of the phone by using telephonymanager in android . but in Android Q , I am not getting the device imei .

Is there any way to imei number in android Q programmatically?

    TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);

    IMEINumber = tm.getDeviceId();

Returning null in Android Q

Cœur
  • 32,421
  • 21
  • 173
  • 232
  • 1
    This question probably answers your issue. Third party apps can no longer get the IMEI number and other non-resettable device identifiers in Android Q+ [I am getting IMEI null in Android Q?](https://stackoverflow.com/questions/55173823/i-am-getting-imei-null-in-android-q) – David Oct 14 '19 at 03:39

0 Answers0