P.S. I know it is a bad practice, but that's my client's requirement.
My client app requires IMEI number as parameter in an API call, to identify Vehicle owner in an android app. But I have two problems :
- READ_PRIVILEGED_PHONE_STATE Permission is only granted to system apps.
- Using getDeviceId to get device identifiers is not recommended.
'getter for deviceId: String!' is deprecated. Deprecated in Java