Skip to content

Commit

Permalink
Some iBoot stuff for iPad 1 powder
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Jun 23, 2024
1 parent 83e3c7c commit b7c0e4b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3504,7 +3504,10 @@ ipsw_prepare_multipatch() {
if [[ $device_target_powder == 1 ]] && [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then
log "Adding exploit and partition stuff"
cp -R ../resources/firmware/src .
"$dir/hfsplus" RestoreRamdisk.dec untar src/bin4.tar
rm src/bin.tar
mv src/bin4.tar src/bin.tar
tar -rvf src/bin.tar iBoot
"$dir/hfsplus" RestoreRamdisk.dec untar src/bin.tar
# reboot chain: reboot4 as reboot, activate_exploit as reboot_, original reboot as reboot__
# thanks to testingthings (@throwaway167074) this ios 4 powder nvram fix implementation, https://gist.github.com/LukeZGD/da484f6deb02edefd6689c6bf921d5d4
"$dir/hfsplus" RestoreRamdisk.dec mv sbin/reboot sbin/reboot__
Expand Down Expand Up @@ -3656,6 +3659,11 @@ ipsw_prepare_ios4powder() {
fi
patch_iboot $ExtraArgs2
tar -rvf src/bin.tar iBoot
if [[ $device_type == "iPad1,1" ]]; then
cp iBoot iBEC
tar -cvf iBoot.tar iBEC
ExtraArgs+=" iBoot.tar"
fi
if [[ $ipsw_isbeta == 1 ]]; then
ipsw_prepare_systemversion
ExtraArgs+=" systemversion.tar"
Expand Down

0 comments on commit b7c0e4b

Please sign in to comment.