AMRestorePerformRestoreModeRestore()
AMRestoreCreatePathsForBundle()
_createCommandDictionary(CFSTR("WaitPath"))
_performOperation(restoreDevice, cmd_dict)
_createCommandDictionary(CFSTR("Partition"))
_performOperation(restoreDevice, cmd_dict)
CCD Erase
PO
CCD Erase
PO
CCD Restore
[progress bar counts up]
[Verifying iPhone software]
CCD FilesystemCheck
CCD Mount
PO FilesystemCheck /dev/disk0s1
PO Mount /mnt1 /dev/disk0s1
PO FilesystemCheck /dev/disk0s2
PO Mount /mnt2 /dev/disk0s2
CCD Ditto
PO
CCD MakeDirectory
PO MakeDirectory /mnt2/root/Media
CCD RemovePath
PO RemovePath /mnt1/private/var
CCD MakeDirectory
PO MakeDirectory /mnt1/private/var
CCD Unmount
PO Unmount /mnt1
PO Unmount /mnt2
CCD UpdateNOR
PO
CCD UpdateBaseBand
CCD SetBootStage
PO SetBootStage
CCD SetNVRam
PO SetNVRam auto-boot=true
CCD SetNVRam
PO SetNVRam boot-delay=0
CCD Goodbye
[Your iPhone has been restored]