Skip to content

Commit c237736

Browse files
committed
fix placement and conditions of activation issue checks
1 parent 25b64a3 commit c237736

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

restore.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,11 +1712,12 @@ device_get_info() {
17121712
elif [[ -s ../saved/$device_type/activation-$device_ecid.tar ]]; then
17131713
device_actrec=1
17141714
device_auto_actrec=2
1715-
elif [[ $device_activationissue == 1 && $device_mode == "Normal" && $device_unactivated != 1 ]]; then
1716-
device_actrec=1
1717-
device_auto_actrec=3
17181715
fi
17191716
fi
1717+
if [[ -z $device_disable_actrec && $device_activationissue == 1 && $device_mode == "Normal" && $device_unactivated != 1 ]]; then
1718+
device_actrec=1
1719+
device_auto_actrec=3
1720+
fi
17201721
if [[ $device_argmode == "none" ]]; then
17211722
device_mode="none"
17221723
device_vers="Unknown"
@@ -8290,12 +8291,13 @@ menu_print_info() {
82908291
elif [[ $device_9900candidate == 1 && $device_mode != "Normal" ]]; then
82918292
warn "Your device is possibly affected by an activation issue. Please check your device's IMEI."
82928293
print "* If it starts with 9900, enable Activation Records stitching in Misc Utilities"
8293-
elif [[ $device_activationissue == 1 ]]; then
8294-
warn "Your device is an $device_type. These devices are affected by an activation issue."
8295-
[[ $device_unactivated != 2 ]] && print "* If you haven't already, dump activation by selecting Activation Records in Misc Utilities"
82968294
fi
82978295
;;
82988296
esac
8297+
if [[ $device_activationissue == 1 ]]; then
8298+
warn "Your device is an $device_type. These devices are affected by an activation issue."
8299+
[[ $device_unactivated != 2 ]] && print "* If you haven't already, dump activation by selecting Activation Records in Misc Utilities"
8300+
fi
82998301
if [[ $device_auto_actrec == 1 ]]; then
83008302
print "* Activated A${device_proc}(X) device with 9900 IMEI detected. Activation Records stitching enabled."
83018303
elif [[ $device_auto_actrec == 2 ]]; then

0 commit comments

Comments
 (0)