From 4c7ee6c58544135e254f2fec834297653141704e Mon Sep 17 00:00:00 2001 From: alexia Date: Mon, 27 Mar 2023 19:35:28 +0200 Subject: [PATCH] feat: prevent jailbreaking on 16.4+ to avoid bootloops (#378) Booting an iOS 16.3.1 or below ramdisk on 16.4 will cause a bootloop. palera1n.sh is no longer maintained, but I'm making this final update to prevent users from fucking up their devices. --- palera1n.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/palera1n.sh b/palera1n.sh index d90e09c..1561f75 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -555,6 +555,15 @@ function _wait_for_device() { exit fi + version_major=${version%%.*} + version_minor=${version#*.} + version_minor=${version_minor%%.*} + if [[ $version_major -eq 16 && $version_minor -ge 4 ]] || [[ $version_major -ge 17 ]]; then + echo "[-] palera1n.sh does not work on iOS 16.4 and above." + echo "[-] Refusing to proceed as it would bootloop your device and force you to restore." + exit + fi + if [ "$dfuhelper" = "1" ]; then echo "[*] Running DFU helper" _dfuhelper "$cpid" || {