tihmstar / futurerestore

A hacked up idevicerestore wrapper, which allows specifying SEP and Baseband for restoring
GNU Lesser General Public License v3.0
865 stars 272 forks source link

Downgrade from 12.3.1 to 12.2 errorcode=-20 #285

Open kirby1x opened 5 years ago

kirby1x commented 5 years ago

Hello, I try to downgrade from 12.3.1 to 12.2 Iphone X (Global version)

12.2 SHSH Blobs saved with (tsssaver.1conan.com) Checked with (https://tsssaver.1conan.com/check) SHSH2 is valid!

Check shsh2 result ------

Hex ECID xxxxxxxxxxxxxxx
Dec ECID xxxxxxxxxxxxxxx
Device ID iPhone10,3
Board Config d221ap
Version 12.2 (16E227)
Restore Behavior Erase
Restore Variant Customer Erase Install (IPSW)
AP Nonce  27325c8258be46e69d9ee57fa9a8fbc28b873df434e5e702a8b27999551138ae
SEP Nonce  bc1886d5b61988240c852bbb8ab3110d5a6171ef

I used Futurerestore version 245 for MacOs Sierra 10.13.6

I use this command for downgrade : ./futurerestore -t shsh.shsh2 -s sep.im4p -b baseband.bbfw -m BuildManifest.plist -p BuildManifest.plist iOS.ipsw

I got error : [Error] Set your ApNonce before restoring! Done: restoring failed. Failed with errorcode=-20


ORDINATEUR:futurerestore kirby$ ./futurerestore -t shsh.shsh2 -s sep.im4p -b baseband.bbfw -m BuildManifest.plist -p BuildManifest.plist iOS.ipsw Version: 81b98e0425e17250cc83d5badaf9a8cc6399f481 - 245 Libipatcher version: 3159a387584e352f690cca859e013c3a4683f3e8 - 69 Odysseus support: yes [INFO] 64-bit device detected futurerestore init done reading signing ticket shsh.shsh2 is done Found device iPhone10,6 d221ap [TSSC] opening BuildManifest.plist [TSSR] User specified not to request a baseband ticket. Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Did set SEP+baseband path and firmware [TSSC] opening BuildManifest.plist [TSSR] User specified to request only a baseband ticket. Request URL set to https://gs.apple.com/TSS/controller?action=2 Sending TSS request attempt 1... response successfully received Found device in Normal mode Entering recovery mode... INFO: device serial number is Found device in Recovery mode Identified device as d221ap, iPhone10,6 Extracting BuildManifest from iPSW Product version: 12.2 Product build: 16E227 Major: 16 Device supports IMG4: true Got ApNonce from device: ef f3 61 c1 e7 ef 30 36 82 a5 40 71 9d 24 9f dc 57 4b 43 15 b4 23 c0 d5 17 ae 47 ee aa 0b 1c 8a [Error] Device ApNonce doesn't match APTicket nonce

To exit recovery mode, use --exit-recovery

[Error] Set your ApNonce before restoring! Done: restoring failed. Failed with errorcode=-20

leifniem commented 5 years ago

As the log states you need to set your apnonce which you currently can't on iOS >= 12.3

salas164 commented 5 years ago

How do u even downgrade ): Help me

leifniem commented 5 years ago

@salas164 follow a guide, there are plenty if you search for them. Personally i used a forked version of futurerestore, this one didn't work, so you may need to look for that.

kirby1x commented 5 years ago

@leifniem you have found how to set nonce on ios 12.3 ?

leifniem commented 5 years ago

@kirby1x no i said explicitly there currently is NOT a single noncesetter for 12.3. therefore you cannot downgrade from 12.3.

TheRealKeto commented 5 years ago

@kirby1x The restore will likely fail because tihmstar's version of Futurerestore does not work for FaceID devices. You should use s0uthwest's fork of Futurerstore in order to downgrade as it contains supports for FaceID devices.

Also, since you're on iOS 12.3, you can use Chimera in order to set your nonce. Lastly, if you need a guide on how to use Futurerestore, you can use this one.

Edit: If you're specifying your SEP and Baseband, make sure to use iOS 12.4.1's as that's compatible with iOS 12.2+. You should also know that Chimera works with your device, so there's no need for you to downgrade.