Before Android M I always used the WiFi Mac Address. This also covers devices with no gsm radio that don't have IMEI.
Unfortunately this is no more available from Android M and afterwards. In general it's not recommanded to use a device id that doesn't change after factory resets. The official way would be to use the DeviceId from the Secure package. Regards Il 27/dic/2015 03:52, "saksham jain" <[email protected]> ha scritto: > There is not much documentation available for the same, I wanted to ask > the following > 1. Is android.os.Build.Serial available in all android phones/tablets > above API level 9? > 2. if yes , are they globally unique? > > I want to add a point that i am trying to find a way to uniquely identify > a phone. an identification that doesnt change even after factory reset, I > am aware of IMEI but some people do > illegally change their IMEI. Build.Serial seems promising is it? > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/c60d89da-ae91-4188-b5b3-f1665e58d111%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/c60d89da-ae91-4188-b5b3-f1665e58d111%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CAMUXMhsc74Y1nb2NeXfJL--_wLkcbTpOcS2bWpBFMFzO9uA-yg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

