http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID
This link says that : When a device has multiple users (available on certain devices running Android 4.2 or higher), each user appears as a completely separate device, so the ANDROID_ID value is unique to each user.
http://developer.android.com/about/versions/android-4.2.html#MultipleUsers While this link says: Beware that if your app requests one of the hardware device identifiers (such as the WiFi MAC address, the SERIAL number, or the ANDROID_ID number), they will provide the same value for each user because these identifiers are tied to the hardware and not the user.
Both are from android developer and have got me confused? Is the ANDROID_ID actually unique or not for multiple users on a single device?
Secure ANDROID_ID (SSAID) Also, the value would only change if a factory reset is performed by the user. On devices that have multiple users value of this id is unique to each user. So it's only scoped by user and device.
The android Device ID is a unique code, string combinations of alphabets and numbers, given to every manufactured android device. This code is used to identify and track each android device present in the world.
Android supports multiple users on a single Android device by separating user accounts and application data. For instance, parents may allow their children to use the family tablet, a family can share an automobile, or a critical response team might share a mobile device for on-call duty.
Multi-user software is computer software that allows access by multiple users of a computer. Time-sharing systems are multi-user systems. Most batch processing systems for mainframe computers may also be considered "multi-user", to avoid leaving the CPU idle while it waits for I/O operations to complete.
There is an issue opened here.
It appears to be an error in the doc, so ANDROID_ID should be different for multiple users on a single device.
Best thing is to test yourself, if you have a 4.2 tablet, but some others have tested it here for example, and it appears to work well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With