In Windows Mobile device, my developer based off UUID's and Platform ID's to uniquely id a device for licensing his software. On Android devices, is there equivalent to those ID's, other than serial numbers, MAC address or IEMI numbers.
Any ideas or suggestion is much appreciated.
thanks,
Unique identifier of Android device// Expert user has replied. |
2 Replies
Hello Matthew.
There is another choice for an unique ID: the ANDROID_ID.
Please see Settings.Secure.ANDROID_ID in the Android online documentation or one of these links:
http://stackoverflow.com/questions/2785485/is-there-a-unique-android-de…
Identifying App Installations | Android Developers Blog
android_id=Settings.Secure.getString(this.context.getContentResolver(),Settings.Secure.ANDROID_ID);
You can use the Electronic Serial Number.
I've an old blog about this:
Getting device info from MSI Android devices · Pietro F. Maggi
It's better to avoid MAC address because these are no more accessible to application in Android v6.0 MarshMallow:
To provide users with greater data protection, starting in this release, Android removes programmatic access to the device’s local hardware identifier for apps using the Wi-Fi and Bluetooth APIs.
Android 6.0 Changes | Android Developers