PS 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:
'getter for deviceId: String.' is deprecated. Deprecated in Java
Well, for this kind of values (serial number, mac address) in Android 10+ only way is having your app as Device Owner.
Check this post to set a Device Owner app.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.