Skip to content

Commit 91cb093

Browse files
committed
fix patch ibec for ipad3,1
1 parent 6ec164d commit 91cb093

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

restore.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,12 +2382,10 @@ patch_ibec() {
23822382
case $device_type in
23832383
iPad1,1 | iPod3,1 )
23842384
build_id="9B206";;
2385-
iPhone2,1 | iPhone3,[123] | iPod4,1 )
2385+
iPhone2,1 | iPhone3,[123] | iPod4,1 | iPad3,1 )
23862386
build_id="10A403";;
23872387
iPad2,[367] | iPad3,[25] )
23882388
build_id="12H321";;
2389-
iPad3,1 )
2390-
build_id="10B146";;
23912389
iPhone5,3 )
23922390
build_id="11B511";;
23932391
iPhone5,4 )
@@ -2411,7 +2409,7 @@ patch_ibec() {
24112409
log "Decrypting iBEC..."
24122410
"$dir/xpwntool" $name.orig $name.dec -iv $iv -k $key
24132411
log "Patching iBEC..."
2414-
if [[ $device_proc == 4 || -n $device_rd_build ]]; then
2412+
if [[ $device_proc == 4 || -n $device_rd_build || $device_type == "iPad3,1" ]]; then
24152413
"$dir/iBoot32Patcher" $name.dec $name.patched --rsa --ticket -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" -c "go" $address
24162414
else
24172415
$bspatch $name.dec $name.patched "../resources/patch/$download_targetfile.patch"
@@ -6705,7 +6703,7 @@ shsh_save_onboard() {
67056703
log "Sending iBSS..."
67066704
$irecovery -f pwnediBSS.dfu
67076705
fi
6708-
sleep 1
6706+
sleep 2
67096707
patch_ibec
67106708
log "Sending iBEC..."
67116709
$irecovery -f pwnediBEC.dfu

0 commit comments

Comments
 (0)