Can I get an Android device ID through a mobile website?

Kalina picture Kalina · Dec 19, 2012 · Viewed 18.1k times · Source

Is it possible to get a device's telephony ID, MAC Address, serial number, and/or Android ID through a mobile website?

That is, not through a downloadable app, but through a link that the user goes to in the browser on their mobile device?

If so, how?

Answer

Raghav Sood picture Raghav Sood · Dec 19, 2012

No, this is not possible. Even for native apps, device identity information is safeguarded behind the READ_PHONE_STATE permission.

As websites cannot request permissions, you cannot retrieve this information outside of an app.