I'm developing an app in which I'm gonna need the unique ID of a device.
This post: Is there a unique Android device ID? first leads me to consider using ANDROID_ID
. But I need a reliable solution for both tablets and phones, with or without any google account/software on it, like in China where most of its services are blocked. I'm therefore looking for an other solution.
Important: for security reasons, this id must be safe from any change. Of course when the device is rooted or when someone really want to mess with the app, it's impossible, but at least for the average users. Also, the Mac address
and the TelephonyManager.getDeviceId()
are not reliable.
As I'm targeting both phones and tablets, with or without Google, is it a way to get a unique device Id unmodifiable for each device?