LukeZGD / Legacy-iOS-Kit

An all-in-one tool to restore/downgrade, save SHSH blobs, and jailbreak legacy iOS devices
GNU General Public License v3.0
1.25k stars 118 forks source link

ERROR: Unable to place device into restore mode [Multiple solutions already attempted] #247

Closed JSpurrier7 closed 1 year ago

JSpurrier7 commented 1 year ago

Trying to restore an Original iPad Air to IOS 10.3.3. I originally had an issue where I would get the device did not reconnect error.

Booting iBSS, waiting for device to reconnect... Cleaning up... [exception]: what=Device did not reconnect. Possibly invalid iBSS. Reset device and try again code=39190545 line=598 file=futurerestore.cpp commit count=259: commit sha =a58821b95f6417ad649ed7a5460337dcd82e200e: Done: restoring failed!

But now after reading of the solutions of swapping from a USB A to a USB C cable after putting the device into DFU Mode I get this log

` Main Menu [Input] Select an option: 1) Downgrade Device 4) (Re-)Install Dependencies 2) Save OTA Blobs 5) (Any other key to exit) 3) Create Custom IPSW

? 1

[Input] Select iOS version: 1) 10.3.3 3) (Any other key to exit) 2) Other (use SHSH blobs)

? 1

[Log] Verifying ../iPad_64bit_10.3.3_14G60_Restore.ipsw... [Log] IPSW SHA1sum matches

WARNING: user specified is not to flash a baseband. This can make the restore fail if the device needs a baseband! if you added this flag by mistake, you can press CTRL-C now to cancel continuing restore in 10 9 8 7 6 5 4 3 2 1 Downloading the latest firmware components... [TSSC] opening firmwares.json [DOWN] downloading file https://api.ipsw.me/v2.1/firmwares.json/condensed [TSSC] selecting latest firmware version: 12.5.6 [TSSC] got firmwareurl for iOS 12.5.6 build 16H71 [TSSC] opening Buildmanifest for iPad4,1_12.5.6 [DOWN] downloading file https://updates.cdn-apple.com/2021WinterFCS/fullrestores/012-51817/746D26FB-2381-4B47-99A4-CFF0799D9196/BuildManifest.plist [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request Finished downloading the latest firmware components! Found device in DFU mode requesting to get into pwnRecovery later Found device in DFU mode Identified device as j71ap, iPad4,1 Extracting BuildManifest from iPSW Product version: 10.3.3 Product build: 14G60 Major: 14 Device supports Image4: true [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request [TSSR] Checking BuildIdentity 0 [TSSR] Selected BuildIdentity for request checking APTicket to be valid for this restore... Verified ECID in APTicket matches device ECID checking APTicket to be valid for this restore... Verified ECID in APTicket matches device ECID [IMG4TOOL] checking buildidentity 0: [IMG4TOOL] checking buildidentity matches board ... YES [IMG4TOOL] checking buildidentity has all required hashes: [IMG4TOOL] checking hash for "AppleLogo" OK (found "logo" with matching hash) [IMG4TOOL] checking hash for "BatteryCharging0" OK (found "chg0" with matching hash) [IMG4TOOL] checking hash for "BatteryCharging1" OK (found "chg1" with matching hash) [IMG4TOOL] checking hash for "BatteryFull" OK (found "batF" with matching hash) [IMG4TOOL] checking hash for "BatteryLow0" OK (found "bat0" with matching hash) [IMG4TOOL] checking hash for "BatteryLow1" OK (found "bat1" with matching hash) [IMG4TOOL] checking hash for "BatteryPlugin" OK (found "glyP" with matching hash) [IMG4TOOL] checking hash for "DeviceTree" OK (found "dtre" with matching hash) [IMG4TOOL] checking hash for "KernelCache" OK (found "krnl" with matching hash) [IMG4TOOL] checking hash for "LLB" OK (found "illb" with matching hash) [IMG4TOOL] checking hash for "OS" OK (found "rosi" with matching hash) [IMG4TOOL] checking hash for "RecoveryMode" OK (found "recm" with matching hash) [IMG4TOOL] checking hash for "RestoreDeviceTree" OK (found "rdtr" with matching hash) [IMG4TOOL] checking hash for "RestoreKernelCache" OK (found "rkrn" with matching hash) [IMG4TOOL] checking hash for "RestoreLogo" OK (found "rlgo" with matching hash) [IMG4TOOL] checking hash for "RestoreRamDisk" BAD! (hash not found in im4m) [IMG4TOOL] checking hash for "RestoreSEP" OK (found "rsep" with matching hash) [IMG4TOOL] checking hash for "SEP" OK (found "sepi" with matching hash) [IMG4TOOL] checking hash for "iBEC" OK (found "ibec" with matching hash) [IMG4TOOL] checking hash for "iBSS" OK (found "ibss" with matching hash) [IMG4TOOL] checking hash for "iBoot" OK (found "ibot" with matching hash)

failed verification with error: [exception]: what=verification failed! code=84279308 line=1286 file=img4tool.cpp commit count=197+git20210129: commit sha =aca6cf005c94caf135023263cbb5c61a0081804f: [IMG4TOOL] checking buildidentity 1: [IMG4TOOL] checking buildidentity matches board ... YES [IMG4TOOL] checking buildidentity has all required hashes: [IMG4TOOL] checking hash for "AppleLogo" OK (found "logo" with matching hash) [IMG4TOOL] checking hash for "BatteryCharging0" OK (found "chg0" with matching hash) [IMG4TOOL] checking hash for "BatteryCharging1" OK (found "chg1" with matching hash) [IMG4TOOL] checking hash for "BatteryFull" OK (found "batF" with matching hash) [IMG4TOOL] checking hash for "BatteryLow0" OK (found "bat0" with matching hash) [IMG4TOOL] checking hash for "BatteryLow1" OK (found "bat1" with matching hash) [IMG4TOOL] checking hash for "BatteryPlugin" OK (found "glyP" with matching hash) [IMG4TOOL] checking hash for "DeviceTree" OK (found "dtre" with matching hash) [IMG4TOOL] checking hash for "KernelCache" OK (found "krnl" with matching hash) [IMG4TOOL] checking hash for "LLB" OK (found "illb" with matching hash) [IMG4TOOL] checking hash for "OS" OK (found "rosi" with matching hash) [IMG4TOOL] checking hash for "RecoveryMode" OK (found "recm" with matching hash) [IMG4TOOL] checking hash for "RestoreDeviceTree" OK (found "rdtr" with matching hash) [IMG4TOOL] checking hash for "RestoreKernelCache" OK (found "rkrn" with matching hash) [IMG4TOOL] checking hash for "RestoreLogo" OK (found "rlgo" with matching hash) [IMG4TOOL] checking hash for "RestoreRamDisk" BAD! (hash not found in im4m) [IMG4TOOL] checking hash for "RestoreSEP" OK (found "rsep" with matching hash) [IMG4TOOL] checking hash for "SEP" OK (found "sepi" with matching hash) [IMG4TOOL] checking hash for "iBEC" OK (found "ibec" with matching hash) [IMG4TOOL] checking hash for "iBSS" OK (found "ibss" with matching hash) [IMG4TOOL] checking hash for "iBoot" OK (found "ibot" with matching hash)

failed verification with error: [exception]: what=verification failed! code=84279308 line=1286 file=img4tool.cpp commit count=197+git20210129: commit sha =aca6cf005c94caf135023263cbb5c61a0081804f: [IMG4TOOL] checking buildidentity 2: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 3: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 4: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 5: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 6: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 7: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 8: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 9: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 10: [IMG4TOOL] checking buildidentity matches board ... NO [IMG4TOOL] checking buildidentity 11: [IMG4TOOL] checking buildidentity matches board ... NO Failed to get exact match for build identity, using fallback to ignore certain values [IMG4TOOL] checking buildidentity 0: [IMG4TOOL] checking buildidentity matches board ... YES [IMG4TOOL] checking buildidentity has all required hashes: [IMG4TOOL] checking hash for "AppleLogo" OK (found "logo" with matching hash) [IMG4TOOL] checking hash for "BatteryCharging0" OK (found "chg0" with matching hash) [IMG4TOOL] checking hash for "BatteryCharging1" OK (found "chg1" with matching hash) [IMG4TOOL] checking hash for "BatteryFull" OK (found "batF" with matching hash) [IMG4TOOL] checking hash for "BatteryLow0" OK (found "bat0" with matching hash) [IMG4TOOL] checking hash for "BatteryLow1" OK (found "bat1" with matching hash) [IMG4TOOL] checking hash for "BatteryPlugin" OK (found "glyP" with matching hash) [IMG4TOOL] checking hash for "DeviceTree" OK (found "dtre" with matching hash) [IMG4TOOL] checking hash for "KernelCache" OK (found "krnl" with matching hash) [IMG4TOOL] checking hash for "LLB" OK (found "illb" with matching hash) [IMG4TOOL] checking hash for "OS" OK (found "rosi" with matching hash) [IMG4TOOL] checking hash for "RecoveryMode" OK (found "recm" with matching hash) [IMG4TOOL] checking hash for "RestoreDeviceTree" OK (found "rdtr" with matching hash) [IMG4TOOL] checking hash for "RestoreKernelCache" OK (found "rkrn" with matching hash) [IMG4TOOL] checking hash for "RestoreLogo" OK (found "rlgo" with matching hash) [IMG4TOOL] checking hash for "RestoreRamDisk" BAD! (but ignoring due to whitelist) [IMG4TOOL] checking hash for "RestoreSEP" OK (found "rsep" with matching hash) [IMG4TOOL] checking hash for "SEP" OK (found "sepi" with matching hash) [IMG4TOOL] checking hash for "iBEC" OK (found "ibec" with matching hash) [IMG4TOOL] checking hash for "iBSS" OK (found "ibss" with matching hash) [IMG4TOOL] checking hash for "iBoot" OK (found "ibot" with matching hash) Verified APTicket to be valid for this restore Variant: Customer Erase Install (IPSW) This restore will erase your device data. Device found in DFU Mode. Getting firmware keys for: j71ap ::ffff:127.0.0.1 - - [20/Jan/2023 15:56:00] "GET /firmware/iPad4,1/14G60 HTTP/1.1" 301 - ::ffff:127.0.0.1 - - [20/Jan/2023 15:56:00] "GET /firmware/iPad4,1/14G60/ HTTP/1.0" 200 - ::ffff:127.0.0.1 - - [20/Jan/2023 15:56:00] "GET /firmware/iPad4,1/14G60 HTTP/1.1" 301 - ::ffff:127.0.0.1 - - [20/Jan/2023 15:56:00] "GET /firmware/iPad4,1/14G60/ HTTP/1.0" 200 - Repacking patched bootloaders as IMG4 Sending iBSS (173090 bytes)... [==================================================] 100.0% Booting iBSS, waiting for device to disconnect... Booting iBSS, waiting for device to reconnect... Sending iBEC (668706 bytes)... [==================================================] 100.0% Booting iBEC, waiting for device to disconnect... Booting iBEC, waiting for device to reconnect... INFO: device serial number is DMPNL5RLFK10 ApNonce pre-hax: Getting ApNonce in recovery mode... 3a 88 b7 c3 80 2f 2f 05 10 ab c4 32 10 4a 15 eb d8 bd 71 54 Sending iBEC (668706 bytes)... [==================================================] 100.0% Booting iBEC, waiting for device to disconnect... Booting iBEC, waiting for device to reconnect... APNonce from device already matches IM4M nonce, no need for extra hax... Using cached filesystem from '../iPad_64bit_10.3.3_14G60_Restore/058-75094-062.dmg' Getting SepNonce in recovery mode... 8e 32 ed 3f c8 14 12 6e 78 86 01 70 02 74 85 c9 50 38 b6 86 Getting ApNonce in recovery mode... 3a 88 b7 c3 80 2f 2f 05 10 ab c4 32 10 4a 15 eb d8 bd 71 54 Recovery Mode Environment: iBoot build-version=iBoot-3406.60.10 iBoot build-style=RELEASE Sending RestoreLogo... Extracting applelogo@2x~ipad.s5l8960x.im4p (Firmware/all_flash/applelogo@2x~ipad.s5l8960x.im4p)... Personalizing IMG4 component RestoreLogo... Sending RestoreLogo (22710 bytes)... ramdisk-size=0x10000000 Extracting 058-74940-063.dmg (058-74940-063.dmg)... Personalizing IMG4 component RestoreRamDisk... Sending RestoreRamDisk (41591830 bytes)... Extracting DeviceTree.j71ap.im4p (Firmware/all_flash/DeviceTree.j71ap.im4p)... Personalizing IMG4 component RestoreDeviceTree... Sending RestoreDeviceTree (101147 bytes)... Extracting sep-firmware.j71.RELEASE.im4p (Firmware/all_flash/sep-firmware.j71.RELEASE.im4p)... Personalizing IMG4 component RestoreSEP... Sending RestoreSEP (1733769 bytes)... Extracting kernelcache.release.ipad4 (kernelcache.release.ipad4)... Personalizing IMG4 component RestoreKernelCache... Sending RestoreKernelCache (12259801 bytes)... ERROR: Failed to place device in restore mode Cleaning up... [exception]: what=ERROR: Unable to place device into restore mode

code=104857617 line=1600 file=futurerestore.cpp commit count=259: commit sha =a58821b95f6417ad649ed7a5460337dcd82e200e: Done: restoring failed! [Log] Restoring done! Read the message below if any error has occurred:

I am using a 2018 Macbook Pro with an Intel CPU.

LukeZGD commented 1 year ago

The restore mode error is a weird issue that I don't really know why it happens on A7 devices, and yeah there have been several issues opened about the same error before... The only options are to try again or to try other tools like LeetDown