2 of 2 people found this helpful
You can use the Electronic Serial Number.
I've an old blog about this:
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.
Is there a chance that there will come an EMDK API extension to be able to read the local MAC address and BT device address even under Android 6.0?
1 of 1 people found this helpful
it's a good suggestion. We can evaluate to have something like this when we'll start to work to support Android v6.0 devices.
However, we need to check if something like this is compatible with Google's Android Compatibility Document that we need to comply with.
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: