mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 02:14:15 +01:00
Update idr, idrr, 4.3.x 3GS jailbreakrd
- update idevicerestore and idevicererestore to remove the "could not retrieve serial number" error - add an older strap for 3GS 4.3.x jailbreaking via sshrd
This commit is contained in:
parent
057a34c50a
commit
064b2c589e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
resources/jailbreak/freeze5.tar
Normal file
BIN
resources/jailbreak/freeze5.tar
Normal file
Binary file not shown.
16
restore.sh
16
restore.sh
@ -1546,7 +1546,7 @@ patch_ibec() {
|
|||||||
"$dir/xpwntool" $name.orig $name.dec -iv $iv -k $key
|
"$dir/xpwntool" $name.orig $name.dec -iv $iv -k $key
|
||||||
log "Patching iBEC..."
|
log "Patching iBEC..."
|
||||||
if [[ $device_proc == 4 || -n $device_rd_build ]]; then
|
if [[ $device_proc == 4 || -n $device_rd_build ]]; then
|
||||||
"$dir/iBoot32Patcher" $name.dec $name.patched --rsa --debug --ticket -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" -c "go" $address
|
"$dir/iBoot32Patcher" $name.dec $name.patched --rsa --debug --ticket -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" # -c "go" $address
|
||||||
else
|
else
|
||||||
$bspatch $name.dec $name.patched "../resources/patch/$download_targetfile.patch"
|
$bspatch $name.dec $name.patched "../resources/patch/$download_targetfile.patch"
|
||||||
fi
|
fi
|
||||||
@ -2239,7 +2239,8 @@ ipsw_prepare_32bit() {
|
|||||||
log "Found existing Custom IPSW. Skipping IPSW creation."
|
log "Found existing Custom IPSW. Skipping IPSW creation."
|
||||||
return
|
return
|
||||||
elif [[ $device_type != "$device_disable_bbupdate" && $ipsw_jailbreak != 1 &&
|
elif [[ $device_type != "$device_disable_bbupdate" && $ipsw_jailbreak != 1 &&
|
||||||
$device_proc != 4 && $device_actrec != 1 && $device_target_build != "9A406" ]]; then
|
$device_target_build != "9A406" && # the 4s-exclusive 9a406 has unencrypted ramdisks, needs custom ipsw since futurerestore breaks (it expects encrypted ramdisks)
|
||||||
|
$device_proc != 4 && $device_actrec != 1 ]]; then
|
||||||
log "No need to create custom IPSW for non-jailbroken restores on $device_type-$device_target_build"
|
log "No need to create custom IPSW for non-jailbroken restores on $device_type-$device_target_build"
|
||||||
return
|
return
|
||||||
elif [[ $ipsw_jailbreak == 1 && $device_target_vers == "8"* ]]; then
|
elif [[ $ipsw_jailbreak == 1 && $device_target_vers == "8"* ]]; then
|
||||||
@ -2808,8 +2809,6 @@ restore_idevicerestore() {
|
|||||||
3* | 4* ) print "* For device activation, go to: Other Utilities -> Attempt Activation";;
|
3* | 4* ) print "* For device activation, go to: Other Utilities -> Attempt Activation";;
|
||||||
esac
|
esac
|
||||||
if [[ $opt != 0 ]]; then
|
if [[ $opt != 0 ]]; then
|
||||||
print "* If you are getting the error \"could not retrieve device serial number\":"
|
|
||||||
print " -> This means that your device is likely not compatible with $device_target_vers"
|
|
||||||
print "* If the restore failed on updating baseband:"
|
print "* If the restore failed on updating baseband:"
|
||||||
print " -> Try disabling baseband update: ./restore.sh --disable-bbupdate"
|
print " -> Try disabling baseband update: ./restore.sh --disable-bbupdate"
|
||||||
echo
|
echo
|
||||||
@ -2897,7 +2896,7 @@ restore_futurerestore() {
|
|||||||
log "Restoring done! Read the message below if any error has occurred:"
|
log "Restoring done! Read the message below if any error has occurred:"
|
||||||
if [[ $opt != 0 ]]; then
|
if [[ $opt != 0 ]]; then
|
||||||
print "* If you are getting the error: \"could not retrieve device serial number\","
|
print "* If you are getting the error: \"could not retrieve device serial number\","
|
||||||
print " -> This means that your device is not compatible with $device_target_vers"
|
print " -> Try restoring with the jailbreak option enabled"
|
||||||
fi
|
fi
|
||||||
print "* Please read the \"Troubleshooting\" wiki page in GitHub before opening any issue!"
|
print "* Please read the \"Troubleshooting\" wiki page in GitHub before opening any issue!"
|
||||||
print "* Your problem may have already been addressed within the wiki page."
|
print "* Your problem may have already been addressed within the wiki page."
|
||||||
@ -3574,7 +3573,12 @@ device_ramdisk() {
|
|||||||
case $vers in
|
case $vers in
|
||||||
3* ) device_send_rdtar cydiahttpatch.tar;;
|
3* ) device_send_rdtar cydiahttpatch.tar;;
|
||||||
esac
|
esac
|
||||||
device_send_rdtar freeze.tar data
|
if [[ $device_type == "iPhone2,1" && $vers == "4.3"* ]]; then
|
||||||
|
# 4.3.x 3gs'es have little free space in rootfs. workaround: extract an older strap that takes less space
|
||||||
|
device_send_rdtar freeze5.tar data
|
||||||
|
else
|
||||||
|
device_send_rdtar freeze.tar data
|
||||||
|
fi
|
||||||
if [[ $ipsw_openssh == 1 ]]; then
|
if [[ $ipsw_openssh == 1 ]]; then
|
||||||
device_send_rdtar sshdeb.tar
|
device_send_rdtar sshdeb.tar
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user