News for hackers. Stuff that matters.

Unique device identifier for iOS and Android device

Would love to know if it is possible to generate a unique device identifier for an Android or ios device which will always be the same even after a factory reset. Is it possible or is there any open source library for this ?
( 4 comments | 2 points | on HN )
Re:Unique device identifier for iOS and Android device by runjake on Wednesday March 13, 2024 @04:41PM (#39697192)
The closest thing in the iPhone and iPad is the UDID.

https://www.theiphonewiki.com/wiki/UDID

Re:Unique device identifier for iOS and Android device by kondrei on Wednesday March 13, 2024 @04:50PM (#39697317)
MAC address is unique but I think this is not send across the internet. I don’t know want do you want and how you will use it.
Re:Unique device identifier for iOS and Android device by yellow_lead on Thursday March 14, 2024 @02:04AM (#39700967)
Since recently, you can't obtain the Mac address through iOS system APIs, you'd have to make a network request to retrieve it.
Re:Unique device identifier for iOS and Android device by Someone on Wednesday March 13, 2024 @06:49PM (#39698530)
For iOS, even if it exists, using such an ID that’s against the license terms.

https://developer.apple.com/support/terms/apple-developer-pr...:

“Neither You nor Your Application will use any permanent, device-based identifier, or any data derived therefrom, for purposes of uniquely identifying a device. And neither You nor Your Application will derive any data from a device for the purpose of uniquely identifying it or a user.”