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.
This commit is contained in:
alexia authored and GitHub committed 2023-03-27 13:35:28 -04:00
1 parent ad2c746c92
commit 4c7ee6c585
1 file changed
+9
+9
View File
@@ -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" || {