We are using the Serial number and IMEI in an application and we have observed that there are many Pixel, Samsung and Motorola devices where either the serial number or IMEI has been changed.
What could be reason ?
Due to OS update ?
Access this data in background ?
Manufacturer defect
Fetching these details during OS update process ?
Could be possible some time, but in next re-try will get correct one ?
Note: We have observed this only in Android OS Version 7,8,9. We are using
For IMEI:
TelephonyManager telephonyManager = (TelephonyManager) mAppContext.getSystemService(Context.TELEPHONY_SERVICE);
imei= telephonyManager.getDeviceId();
For serial number:
Build.SERIAL