Skip to content

Commit a032e87

Browse files
committed
more activation issue stuff
untested
1 parent 94b4b8d commit a032e87

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

restore.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,9 +1132,6 @@ device_manufacturing() {
11321132
print "* Cannot check $device_name bootrom model in Recovery mode. Enter DFU mode to get bootrom model"
11331133
return
11341134
elif [[ $device_type != "iPhone2,1" && $device_type != "iPod2,1" ]]; then
1135-
case $device_type in
1136-
iPhone4,1 | iPhone5,2 | iPad2,7 | iPad3,[26] ) device_9900candidate=1;;
1137-
esac
11381135
if [[ $device_type == "DFU" ]]; then
11391136
print "* Cannot check for manufacturing date in DFU mode"
11401137
return
@@ -1702,15 +1699,20 @@ device_get_info() {
17021699
if [[ $device_disable_bbupdate == 1 && $device_use_bb != 0 ]] && (( device_proc < 7 )); then
17031700
device_disable_bbupdate="$device_type"
17041701
fi
1702+
# activation issue stuff
1703+
case $device_type in
1704+
iPhone4,1 | iPhone5,2 | iPad2,7 | iPad3,[26] ) device_9900candidate=1;;
1705+
iPhone3,[12] | iPad2,2 | iPad3,3 ) device_activationissue=1;;
1706+
esac
17051707
# enable activation records flag if device is a5(x)/a6(x), normal mode, and activated
17061708
if [[ $device_proc == 5 || $device_proc == 6 ]] && [[ -z $device_disable_actrec ]]; then
1707-
if [[ $device_mode == "Normal" && $device_unactivated != 1 && $device_imei == "9900"* ]]; then
1709+
if [[ $device_9900candidate == 1 && $device_mode == "Normal" && $device_unactivated != 1 ]]; then
17081710
device_actrec=1
17091711
device_auto_actrec=1
17101712
elif [[ -s ../saved/$device_type/activation-$device_ecid.tar ]]; then
17111713
device_actrec=1
17121714
device_auto_actrec=2
1713-
elif [[ $device_type == "iPad3,3" && $device_mode == "Normal" && $device_unactivated != 1 ]]; then
1715+
elif [[ $device_activationissue == 1 && $device_mode == "Normal" && $device_unactivated != 1 ]]; then
17141716
device_actrec=1
17151717
device_auto_actrec=3
17161718
fi
@@ -8232,8 +8234,8 @@ menu_print_info() {
82328234
elif [[ $device_9900candidate == 1 && $device_mode != "Normal" ]]; then
82338235
warn "Your device is possibly affected by an activation issue. Please check your device's IMEI."
82348236
print "* If it starts with 9900, enable Activation Records stitching in Misc Utilities"
8235-
elif [[ $device_type == "iPad3,3" ]]; then
8236-
warn "Your device is an iPad3,3. These devices are affected by an activation issue."
8237+
elif [[ $device_activationissue == 1 ]]; then
8238+
warn "Your device is an $device_type. These devices are affected by an activation issue."
82378239
[[ $device_unactivated != 2 ]] && print "* If you haven't already, dump activation by selecting Activation Records in Misc Utilities"
82388240
fi
82398241
;;
@@ -8243,7 +8245,7 @@ menu_print_info() {
82438245
elif [[ $device_auto_actrec == 2 ]]; then
82448246
print "* Existing activation records detected. Activation Records stitching enabled."
82458247
elif [[ $device_auto_actrec == 3 ]]; then
8246-
print "* Activated iPad3,3 detected. Activation Records stitching enabled."
8248+
print "* Activated $device_type detected. Activation Records stitching enabled."
82478249
elif [[ $device_actrec == 1 ]]; then
82488250
warn "activation-records flag detected. Activation Records stitching enabled."
82498251
fi

0 commit comments

Comments
 (0)