Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Secure.ANDROID_ID unique for each device?

I am using this call:

Secure.getString(getApplicationContext().getContentResolver(), Secure.ANDROID_ID); 

To get a UID for the device. I think I am getting the same ID from multiple devices though. Should this be possible?

The ID in question is: 9774d56d682e549c and apparently there is an issue with several devices returning this ID http://code.google.com/p/android/issues/list?cursor=10603&updated=10603&ts=1295993403

like image 868
FoamyGuy Avatar asked Jan 25 '11 22:01

FoamyGuy


People also ask

Is Android device ID unique?

Secure#ANDROID_ID returns the Android ID as an unique for each user 64-bit hex string. It's known to be null sometimes, it's documented as "can change upon factory reset". Use at your own risk, and it can be easily changed on a rooted phone.

What is unique identifier for a mobile device?

A Mobile Device ID is a unique customer identifier used to distinguish a mobile device. It could be an IDFA (Identifier for Advertisers) or an Android Ad Id.

What is device UUID Android?

A class that represents an immutable universally unique identifier (UUID). A UUID represents a 128-bit value. There exist different variants of these global identifiers.

What are identifiers in apps?

Mobile device identifiers are strings of letters and numbers unique to a specific mobile device that allow advertisers to track app downloads and usage. Unlike browser cookies, which are intended to track user behavior on websites, advertisers use mobile device identifiers to tie app-related data to a specific user.


1 Answers

Check into this thread,. However you should be careful as it's documented as "can change upon factory reset". Use at your own risk, and it can be easily changed on a rooted phone. Also it appears as if some manufacturers have had issues with their phones having duplicate numbers thread. Depending on what your trying to do, I probably wouldnt use this as a UID.

like image 54
ninjasense Avatar answered Sep 21 '22 06:09

ninjasense