Add check for arm64e devices when started from recovery/DFU (#310)

This commit is contained in:
alexia authored and GitHub committed 2023-01-05 19:19:51 -05:00
1 parent 9ad1fbfc9b
commit e1c0e31687
1 file changed
+5
+5
View File
@@ -476,6 +476,11 @@ cpid=$(_info recovery CPID)
model=$(_info recovery MODEL)
deviceid=$(_info recovery PRODUCT)
if (( 0x8020 <= cpid )) && (( cpid < 0x8720 )); then
echo "[-] palera1n doesn't, and never will, work on non-checkm8 devices"
exit
fi
if [ "$dfuhelper" = "1" ]; then
echo "[*] Running DFU helper"
_dfuhelper "$cpid"