mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-23 13:41:16 +01:00
Fix some stuff
also try something for tetherbooting ipad 1 3.2.x, probably just broken tho, lol
This commit is contained in:
parent
6939d8c461
commit
c32b5689e8
BIN
resources/patch/kernelcache.release.k48.7B500.patch
Normal file
BIN
resources/patch/kernelcache.release.k48.7B500.patch
Normal file
Binary file not shown.
30
restore.sh
30
restore.sh
@ -3531,16 +3531,8 @@ restore_prepare() {
|
|||||||
restore_idevicerestore
|
restore_idevicerestore
|
||||||
else
|
else
|
||||||
if [[ $device_target_other == 1 ]] && [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then
|
if [[ $device_target_other == 1 ]] && [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then
|
||||||
ipsw_custom="../${device_type}_${device_target_vers}_${device_target_build}_Restore"
|
device_enter_mode pwnDFU
|
||||||
device_enter_mode DFU
|
|
||||||
restore_idevicerestore
|
restore_idevicerestore
|
||||||
if [[ $device_type == "iPhone2,1" ]]; then
|
|
||||||
log "Ignore the baseband error and do not disconnect your device yet"
|
|
||||||
device_find_mode Recovery 50
|
|
||||||
log "Attempting to exit recovery mode"
|
|
||||||
$irecovery -n
|
|
||||||
log "Done, your device should boot now"
|
|
||||||
fi
|
|
||||||
elif [[ $device_target_other == 1 ]]; then
|
elif [[ $device_target_other == 1 ]]; then
|
||||||
device_buttons
|
device_buttons
|
||||||
restore_idevicerestore
|
restore_idevicerestore
|
||||||
@ -3753,6 +3745,9 @@ device_ramdisk() {
|
|||||||
esac
|
esac
|
||||||
if [[ -n $device_rd_build ]]; then
|
if [[ -n $device_rd_build ]]; then
|
||||||
device_target_build=$device_rd_build
|
device_target_build=$device_rd_build
|
||||||
|
if [[ $device_type == "iPad1,1" && $device_target_build == "7"* ]]; then
|
||||||
|
device_target_build="7B500"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
build_id=$device_target_build
|
build_id=$device_target_build
|
||||||
ramdisk_path="../saved/$device_type/ramdisk_$build_id"
|
ramdisk_path="../saved/$device_type/ramdisk_$build_id"
|
||||||
@ -3867,14 +3862,18 @@ device_ramdisk() {
|
|||||||
fi
|
fi
|
||||||
log "Patch iBSS"
|
log "Patch iBSS"
|
||||||
"$dir/xpwntool" iBSS.dec iBSS.raw
|
"$dir/xpwntool" iBSS.dec iBSS.raw
|
||||||
"$dir/iBoot32Patcher" iBSS.raw iBSS.patched --rsa -b "-v"
|
if [[ $build_id == "7"* || $build_id == "8"* ]] && [[ $device_type != "iPad1"* ]]; then
|
||||||
|
"$dir/iBoot32Patcher" iBSS.raw iBSS.patched --rsa -b "-v cs_enforcement_disable=1"
|
||||||
|
else
|
||||||
|
"$dir/iBoot32Patcher" iBSS.raw iBSS.patched --rsa -b "-v"
|
||||||
|
fi
|
||||||
"$dir/xpwntool" iBSS.patched iBSS -t iBSS.dec
|
"$dir/xpwntool" iBSS.patched iBSS -t iBSS.dec
|
||||||
if [[ $build_id == "7"* || $build_id == "8"* ]] && [[ $device_type != "iPad"* ]]; then
|
if [[ $build_id == "7"* || $build_id == "8"* ]] && [[ $device_type != "iPad2"* ]]; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
log "Patch iBEC"
|
log "Patch iBEC"
|
||||||
"$dir/xpwntool" iBEC.dec iBEC.raw
|
"$dir/xpwntool" iBEC.dec iBEC.raw
|
||||||
if [[ $1 == "justboot" && $device_type == "iPad2"* && $device_target_build == "8"* ]]; then
|
if [[ $1 == "justboot" && $device_type == "iPad2"* && $build_id == "8"* ]]; then
|
||||||
"$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa -b "-v cs_enforcement_disable=1"
|
"$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa -b "-v cs_enforcement_disable=1"
|
||||||
elif [[ $1 == "justboot" ]]; then
|
elif [[ $1 == "justboot" ]]; then
|
||||||
"$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa -b "-v"
|
"$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa -b "-v"
|
||||||
@ -3885,11 +3884,12 @@ device_ramdisk() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $device_type == "iPad2"* && $device_target_build == "8"* ]]; then
|
if [[ $device_type == "iPad2"* && $build_id == "8"* ]] ||
|
||||||
|
[[ $device_type == "iPad1"* && $build_id == "7"* ]]; then
|
||||||
log "Patch Kernelcache"
|
log "Patch Kernelcache"
|
||||||
mv Kernelcache.dec Kernelcache0.dec
|
mv Kernelcache.dec Kernelcache0.dec
|
||||||
"$dir/xpwntool" Kernelcache0.dec Kernelcache.raw
|
"$dir/xpwntool" Kernelcache0.dec Kernelcache.raw
|
||||||
$bspatch Kernelcache.raw Kernelcache.patched ../resources/patch/kernelcache.release.${device_model}.${device_target_build}.patch
|
$bspatch Kernelcache.raw Kernelcache.patched ../resources/patch/kernelcache.release.${device_model}.${build_id}.patch
|
||||||
"$dir/xpwntool" Kernelcache.patched Kernelcache.dec -t Kernelcache0.dec
|
"$dir/xpwntool" Kernelcache.patched Kernelcache.dec -t Kernelcache0.dec
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -3905,7 +3905,7 @@ device_ramdisk() {
|
|||||||
device_enter_mode kDFU
|
device_enter_mode kDFU
|
||||||
fi
|
fi
|
||||||
log "Sending iBSS..."
|
log "Sending iBSS..."
|
||||||
if [[ $build_id == "7"* || $build_id == "8"* ]] && [[ $device_type == "iPad"* ]]; then
|
if [[ $build_id == "7"* || $build_id == "8"* ]] && [[ $device_type == "iPad2"* ]]; then
|
||||||
device_rd_build=
|
device_rd_build=
|
||||||
patch_ibss
|
patch_ibss
|
||||||
$irecovery -f pwnediBSS.dfu
|
$irecovery -f pwnediBSS.dfu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user