Skip to content

Commit 3fa9c12

Browse files
committed
update futurerestore nightly dev and use for all 64-bit restores with blobs
hopefully doesnt break things - tries to address #960 - allows pwndfu option to be disabled for all a7 10.3.3 restores, but not tested since i dont have my a7 device with me currently (wont be able to test myself until the next weekend) - "futurerestore_new" is still used for restoring to a7 10.3.3 on linux arm64 since futurerestore nightly doesnt have builds for that
1 parent e61237a commit 3fa9c12

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

restore.sh

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5582,12 +5582,12 @@ restore_futurerestore() {
55825582
fi
55835583
if (( device_proc < 7 )); then
55845584
futurerestore2+="_old"
5585-
elif [[ $device_proc == 7 && $device_target_other != 1 &&
5586-
$device_target_vers == "10.3.3" && $restore_usepwndfu64 != 1 ]]; then
5585+
elif [[ $device_proc == 7 && $device_target_other != 1 && $device_target_vers == "10.3.3" &&
5586+
$restore_usepwndfu64 != 1 && $platform == "linux" && $platform_arch == "arm64" ]]; then
55875587
futurerestore2+="_new"
55885588
else
55895589
futurerestore2="../saved/futurerestore_$platform"
5590-
if [[ $device_target_vers == "10"* ]]; then
5590+
if [[ $target_vers_maj == 10 ]]; then
55915591
export FUTURERESTORE_I_SOLEMNLY_SWEAR_THAT_I_AM_UP_TO_NO_GOOD=1 # required since custom-latest-ota is broken
55925592
else
55935593
ExtraArr=("--latest-sep")
@@ -5619,6 +5619,8 @@ restore_futurerestore() {
56195619
fr_latest="870bdb8f876de752078c9000a185fed119d60af9"
56205620
fr_branch="dev"
56215621
fi
5622+
fr_latest="b981d8a0d574ab4c9da3c271624f8ff735d2fe0d"
5623+
fr_branch="dev2"
56225624
local fr_current="$(cat ${futurerestore2}-${fr_branch}_version 2>/dev/null)"
56235625
log "futurerestore $fr_branch branch will be used for this restore"
56245626
if [[ $fr_latest != "$fr_current" ]]; then
@@ -5645,6 +5647,10 @@ restore_futurerestore() {
56455647
fi
56465648
# custom arg(s), either --use-pwndfu or --skip-blob, or both
56475649
for arg in "$@"; do
5650+
if [[ $device_proc == 7 && $device_target_other != 1 && $device_target_vers == "10.3.3" &&
5651+
$arg == "--skip-blob" && $FUTURERESTORE_I_SOLEMNLY_SWEAR_THAT_I_AM_UP_TO_NO_GOOD == 1 ]]; then
5652+
arg+="2" # --skip-blob2
5653+
fi
56485654
[[ -n "$arg" ]] && ExtraArr+=("$arg")
56495655
done
56505656
if [[ $debug_mode == 1 ]]; then
@@ -6181,16 +6187,6 @@ restore_usepwndfu64_option() {
61816187
print "* If you want to disable Pwned Restore Option, place the device in Normal/Recovery mode"
61826188
restore_usepwndfu64=1
61836189
return
6184-
elif [[ $device_target_vers == "10.3.3" && $device_target_other != 1 && $platform == "macos" ]]; then
6185-
if [[ $platform_arch == "arm64" ]]; then
6186-
log "arm64 Mac detected, Pwned Restore Option enabled for 10.3.3 restore."
6187-
restore_usepwndfu64=1
6188-
return
6189-
elif [[ $mac_cocoa == 1 ]]; then
6190-
log "OS X El Capitan detected, Pwned Restore Option enabled for 10.3.3 restore."
6191-
restore_usepwndfu64=1
6192-
return
6193-
fi
61946190
elif [[ $device_target_setnonce == 1 ]]; then
61956191
log "Set Nonce Only mode detected, Pwned Restore Option enabled."
61966192
restore_usepwndfu64=1
@@ -6202,9 +6198,10 @@ restore_usepwndfu64_option() {
62026198
if [[ $device_target_other == 1 ]]; then
62036199
print "* When disabled, user must set the device generator manually before the restore."
62046200
fi
6205-
if [[ $device_proc == 7 ]]; then
6201+
if [[ $device_proc == 7 && $device_target_vers == "10.3.3" && $device_target_other != 1 ]] ||
6202+
[[ $device_proc == 7 && $platform == "linux" ]]; then
62066203
if [[ $device_target_vers == "10.3.3" && $device_target_other != 1 ]]; then
6207-
print "* It is recommended to disable this option for 10.3.3 OTA restores."
6204+
print "* It is recommended to disable this option for A7 10.3.3 restores."
62086205
fi
62096206
print "* This option is disabled by default (N). Select this option if unsure."
62106207
select_yesno "Enable this option?" 0

0 commit comments

Comments
 (0)