The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "UDID"
(updated according to i0n1c's comment, content from dev wiki) |
m (no imei on wifi ipads; shorten last sentence to newer devices) |
||
Line 10: | Line 10: | ||
To create the 60-character long text string, append the following four strings: |
To create the 60-character long text string, append the following four strings: |
||
*11-character long '''serial number''' (letters in upper case) |
*11-character long '''serial number''' (letters in upper case) |
||
− | *15-character long '''IMEI number''' (without spaces) |
+ | *15-character long '''IMEI number''' (without spaces); empty string for iPod touch and Wi-Fi model iPads |
− | *17-character long '''Wi-Fi MAC address''' (letters in lower case, including colons) |
+ | *17-character long '''Wi-Fi MAC address''' (letters in lower case, including colons); for the [[N45ap|iPod touch first generation]] use "00:00:00:00:00:00" |
*17-character long '''Bluetooth MAC address''' (letters in lower case, including colons) |
*17-character long '''Bluetooth MAC address''' (letters in lower case, including colons) |
||
Line 17: | Line 17: | ||
UDID = SHA1($serial + $IMEI + $WiFiMac + $BluetoothMac) |
UDID = SHA1($serial + $IMEI + $WiFiMac + $BluetoothMac) |
||
− | On the [[N92ap|Verizon iPhone 4]] and |
+ | On the [[N92ap|Verizon iPhone 4]] and newer it is instead computed with this formula: |
UDID = SHA1($serial + $ECID + $WiFiMac + $BluetoothMac) |
UDID = SHA1($serial + $ECID + $WiFiMac + $BluetoothMac) |
Revision as of 11:48, 18 March 2012
UDID is the short form for Unique Device Identifier. It is a 40-character long hex value (20 bytes). The UDID is being used by developers to register devices for testing their Apps. Only on registered devices developers can run Apps that are not in Apple's AppStore yet. Also, beta firmware can be installed only on registered devices. Developers currently have 100 UDIDs they can register.
Instead of calculating the value, it can be read from iTunes, when the device is connected, by clicking on the text Serial Number.
Calculation
The UDID is being calculated like this:
- Create a 60-character long text string (see below)
- Calculate the SHA1 hash of the text string. The result is the UDID.
To create the 60-character long text string, append the following four strings:
- 11-character long serial number (letters in upper case)
- 15-character long IMEI number (without spaces); empty string for iPod touch and Wi-Fi model iPads
- 17-character long Wi-Fi MAC address (letters in lower case, including colons); for the iPod touch first generation use "00:00:00:00:00:00"
- 17-character long Bluetooth MAC address (letters in lower case, including colons)
In short:
UDID = SHA1($serial + $IMEI + $WiFiMac + $BluetoothMac)
On the Verizon iPhone 4 and newer it is instead computed with this formula:
UDID = SHA1($serial + $ECID + $WiFiMac + $BluetoothMac)