Answer the question
In order to leave comments, you need to log in
A few questions regarding the behavior of the unique android device id?
This is how I get the unique device ID:
String android_id = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);
Answer the question
In order to leave comments, you need to log in
1 Yes
2 No
3 Yes
This is how it is generated
https://android.googlesource.com/platform/framewor...
This method is useless because this field is not unique to the phone.
Often, manufacturers release a line of phones with a single ANDROID_ID.
For example, all "Motorolla Droid2" ANDROID_ID = 9774d56d682e549c
This was written on Android developers
ANDROID_ID seems a good choice for a unique device identifier. There are downsides: First, it is not 100% reliable on releases of Android prior to 2.2 (“Froyo”). Also, there has been at least one widely-observed bug in a popular handset from a major manufacturer, where every instance has the same ANDROID_ID.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question