Download URL: Https://github.com/ylechelle/OpenUDID
Openudid test Results Analysis
1) Advantages:
A, MAC address is not used. MAC address like Udid, there is a privacy issue. There is no guarantee that MAC addresses will not be disabled in the future.
b, different devices can obtain their own unique identification code, ensuring uniqueness, can be used in the past Udid for related purposes.
C, from the Code analysis of the acquisition of Openudid, the identification code for easy and preservation of caution
Openudid code that generates a unique identification code:
When the device is installed on the first application that uses the Openudid scheme, a unique identification number is generated, an append of 8 holds 40 bits of udid for random numbers, and the Nsuserdefaults class is used to save the identification code.
However, when the application is deleted, the userdefaults will also be emptied, in order to avoid rebuilding the unique identification code, the scheme also uses the Uipasteboard class (device clipboard), the identification code is saved to the Uipasteboard.
D. When a second application using the OPENUDID scheme is installed on the device , a unique identification number will be obtained from the Uipasteboard, and the first application saved to Uipasteboard is taken here. "Premise: There is an application with Openudid on the device."
2) Disadvantages
A, when the device on all the use of Openudid program removal, and the device shutdown restart, Xcode clean and restart, re-install the application to obtain Openudid, openudid change, and before the same, from the test results can be seen.
b, by the disadvantage of 1 analysis, all Openudid application Uninstall, the data saved by the Uipasteboard is erased, re-install the new openudid will be retrieved.
When the Uipasteboard data is purged due to user intervention or malicious programs, the Openudid is removed and the reload acquires a new openudid.
The use of iOS development--openudid