Before Android 10 I was using TelePhonyManager API to get IMEI and serial number information but now it id s not working in Android 10.
Is there way i can retrieve the IMEI and serial number information on Android 10?
◎위챗 : speedseoul
Before Android 10 I was using TelePhonyManager API to get IMEI and serial number information but now it id s not working in Android 10.
Is there way i can retrieve the IMEI and serial number information on Android 10?
Starting in Android 10, apps must have the READ_PRIVILEGED_PHONE_STATE privileged permission in order to access the device's non-resettable identifiers, which include both IMEI and serial number.
Third-party apps installed from the Google Play Store cannot declare privileged permissions.
If your app doesn't have the permission and you try asking for information about non-resettable identifiers anyway, the platform's response varies based on target SDK version:
If you try to access it throws below exception