[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?
On 16 Aug., 06:43, "Maps.Huge.Info (Maps API Guru)" <cor...@gmail.com>
wrote:
> > So prior to this month, there were no duplicate ANDROID_IDs? With pre-
> > Froyo devices?
>
> I can't say there were or weren't any duplicates pre-Froyo. I can say
> that every Droid2 that has downloaded my app "Radar Now!" has the same
> ANDROID_ID.
>
> -John Coryat
If you look into the SettingsProvider class, then you can see that
this is done using
SecureRandom random = SecureRandom.getInstance("SHA1PRNG");
When the persistent system property ro.serialno is set, then this
value
will be used to reseeds this random object.
Later comes a random.nextLong transformed to a Hex-String.
Interessting might be this part of the javadoc:
"the system will determine if there is an implementation of the
algorithm requested available in the environment"
Maybe their is a problem with this SHA1PRNG algorithm ?
Try to set "ro.serialno" with setprop ..
Good luck !
Frank
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home