I just noticed something interesting happen in Android Q Beta 4 that was not happening in Android Q Beta 3
According to the documentation getIMEI() - https://developer.android.com/reference/android/telephony/TelephonyManager.html#getImei()
Returns the IMEI (International Mobile Equipment Identity). Return null if IMEI is not available.
Requires Permission: READ_PRIVILEGED_PHONE_STATE, for the calling app to be the device or profile owner and have the READ_PHONE_STATE permission, or that the calling app has carrier privileges (see hasCarrierPrivileges()).
However using the Android Emulator (Google Play Store) I can still access the device IMEI if I'm the default SMS App:
- READ_PHONE_STATE + Default SMS App --> Will return device IMEI
- READ_PHONE_STATE --> Will return null
This was not happening with Beta 3, even with the (READ_PHONE_STATE + Default SMS App) combination I was not able to access the IMEI, which is fine it matches the Q documentation
From what I understand the Android Beta 4 behavior goes against the documentation and the new Android Q "Non-resettable device identifiers" restrictions.
Anyone knows if this is a regression from the Beta 3 or did Google change this behavior and did not update the Android documentation?