isnowrain/irestore — pull request #1 by iphonefan (2012-01-08 02:16:18+00:00)
Title: Update irestore.c

Hi Snow,
I contacted you yesterday by Twitter. There are several problems with your app:

- AMDeviceNotificationSubscribe fail with code -402653177
- The same apply to AMDeviceEnterRecovery
- Semantic issue on main

I'm not sure if mine is the right way, but I fixed all the above problems.

Unfortunately AMRestorePerformRecoveryModeRestore fail and return error 5. I have no idea on what could be wrong, but I'm pretty sure that should be an easy fix.
Different firmwares and devices does not make any difference.

This is the log:
iRestore: iBoot build-version = iBoot-1072.59
iRestore: build-style = RELEASE
iRestore: DeviceRequest failed: 0xe000404f
iRestore: command device request for 'getenv radio-error' failed: 2008
iRestore: radio-error not set
iRestore: no variant specified; authinstall is disabled

iRestore: device software does not support nonce generation
(possible related to the fact that I have iTunes 10.4. In windows I have the latest iTunes, this error does not appear but restore still fail with error 5)

iRestore: unable to find device map entry for 0x00008930 0x00000000
iRestore: : Recovery mode failed (result = 5)
iRestore: device disconnected (isDFU = 0)
iRestore: device connected (isDFU = 1)
iRestore: device disconnected (isDFU = 1)
iRestore: device connected (isDFU = 1)
iRestore: device disconnected (isDFU = 1)

Many thanks for your greats apps and hope we will get this app up and running.