Activation

From The iPhone Wiki
Revision as of 15:10, 23 July 2010 by Christoph (talk | contribs)
Jump to: navigation, search
iPhone with 1 signal bar and damaged hacktivation or it doesn't have an internet connection

Activation is the process by which a new (or newly restored) iPhone can get by the "Emergency Call Screen" to access the SpringBoard. The code in charge of this resides in Lockdownd, which is always running on the iPhone and monitors the activation status of the device. Lockdownd patches (which require a jailbreak) activate your phone and obviate the need to activate legitimately through iTunes with an official carrier.

Activation is handled by albert.apple.com https://albert.apple.com/WebObjects/ALActivation.woa/wa/deviceActivation

iTunes uses AMDeviceCopyValue on ActivationInfo to get the token to send.

The iPhone needs an internet connection for the first time, after the activation in iTunes. You can make calls if there is the pop up with "iPhone is activated". If you don't have an internet connection (3G, EDGE, GPRS) you won't be able to make calls and you have only 1 bar at the status bar. If you only have 1 bar and no carrier at the status bar it isn't activated correctly. Use for example Ultrasn0w over WiFi to install it (jailbreak required, unlockes an iPhone) it will work. Same for an hacktivation on the 05.12.01 and 05.13.04 baseband.


Here's a python script to spoof it:

import httplib,urllib
import time
ai=open("a.plist",'r')
aidata=ai.read()
conn = httplib.HTTPSConnection("albert.apple.com")
headers = {"Content-type": "application/x-www-form-urlencoded", "User-Agent": 'iTunes/7.6 (Windows; U; Microsoft Windows XP Professional Service Pack 2 (Build 2600)) DPI/96}'}
params = urllib.urlencode({
	'activation-info': aidata
	})
conn.request('POST', '/WebObjects/ALActivation.woa/wa/deviceActivation',params,headers)
response = conn.getresponse()
resdata=response.read()
f=open("arsp.xml",'w')
f.write(resdata)
#time.sleep(1)