fix for a9 ipads

This commit is contained in:
Mineek committed 2022-09-26 14:19:13 +02:00
1 parent 91ca19f7b8
commit fd649e5239
1 file changed
+2 -2
+2 -2
View File
@@ -354,13 +354,13 @@ if [ ! -e boot-"$deviceid" ]; then
"$dir"/img4 -i work/iBEC.patched -o boot-"$deviceid"/iBEC.img4 -M work/IM4M -A -T ibec > "$out"
echo "[*] Patching and converting kernelcache"
if [[ "$deviceid" == *'iPhone8'* ]]; then
if [[ "$deviceid" == "iPhone8"* ]] || [[ "$deviceid" == "iPad6"* ]]; then
python3 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '<string>' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw --extra work/kpp.bin > "$out"
else
python3 -m pyimg4 im4p extract -i work/"$(awk "/""$model""/{x=1}x&&/kernelcache.release/{print;exit}" work/BuildManifest.plist | grep '<string>' | cut -d\> -f2 | cut -d\< -f1)" -o work/kcache.raw > "$out"
fi
"$dir"/Kernel64Patcher work/kcache.raw work/kcache.patched -a -o > "$out"
if [[ "$deviceid" == *'iPhone8'* ]]; then
if [[ "$deviceid" == *'iPhone8'* ]] || [[ "$deviceid" == *'iPad6'* ]]; then
python3 -m pyimg4 im4p create -i work/kcache.patched -o work/krnlboot.im4p --extra work/kpp.bin -f rkrn --lzss > "$out"
else
python3 -m pyimg4 im4p create -i work/kcache.patched -o work/krnlboot.im4p -f rkrn --lzss > "$out"