Skip to content

Commit 125e885

Browse files
committed
add more conditions needed for bb ipad2,6/iphone5,3/5,4
1 parent d4c1b6d commit 125e885

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

restore.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2832,6 +2832,9 @@ ipsw_preference_set() {
28322832
[[ $device_proc == 6 && $target_vers_maj == 10 && $device_target_other == 1 ]]; then
28332833
ipsw_gasgauge_patch=1
28342834
fi
2835+
case $device_type in
2836+
iPad2,[36] | iPhone5,[34] ) ipsw_gasgauge_patch=1;;
2837+
esac
28352838
if [[ $device_target_tethered == 1 && $ipsw_gasgauge_patch == 1 &&
28362839
$device_proc == 6 && $target_vers_maj == 10 ]]; then
28372840
warn "multipatch is not supported on A6(X) tethered iOS 10, so it will be disabled."
@@ -4247,8 +4250,10 @@ ipsw_bbreplace() {
42474250
local sbl_latest
42484251
local bbfw="Print BuildIdentities:0:Manifest:BasebandFirmware"
42494252
local ubid
4250-
if [[ $device_use_bb == 0 || $device_target_vers == "$device_latest_vers" ||
4251-
$device_type == "$device_disable_bbupdate" ]] || (( device_proc < 5 )); then
4253+
if [[ $device_type == "iPad2,6" || $device_type == "iPhone5,3" || $device_type == "iPhone5,4" ]] && [[ $device_target_vers == "$device_latest_vers" ]]; then
4254+
:
4255+
elif [[ $device_use_bb == 0 || $device_target_vers == "$device_latest_vers" ||
4256+
$device_type == "$device_disable_bbupdate" ]] || (( device_proc < 5 )); then
42524257
return
42534258
fi
42544259

@@ -5108,6 +5113,8 @@ ipsw_prepare_multipatch() {
51085113
fi
51095114
if [[ $device_proc == 6 && $target_vers_maj == 10 && $device_target_vers != "$device_latest_vers" ]]; then
51105115
ipsw_bbreplace exist
5116+
elif [[ $device_type == "iPhone5,3" || $device_type == "iPhone5,4" ]] && [[ $device_target_vers == "$device_latest_vers" ]]; then
5117+
ipsw_bbreplace exist
51115118
else
51125119
zip -r0 temp.ipsw BuildManifest.plist
51135120
fi

0 commit comments

Comments
 (0)