Advanced options 32-bit

This commit is contained in:
LukeeGD 2020-08-16 12:23:07 +08:00 committed by GitHub
parent 28644d7722
commit 9c95d11330
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,14 +85,17 @@ function Main {
chmod +x resources/tools/* chmod +x resources/tools/*
if [[ $DFUDevice == 1 ]] && [[ $A7Device != 1 ]]; then if [[ $DFUDevice == 1 ]] && [[ $A7Device != 1 ]]; then
DFUManual=1
Mode='Downgrade' Mode='Downgrade'
Log "32-bit device in DFU mode detected." Log "32-bit device in DFU mode detected."
echo "* Advanced options menu - use at your own risk"
echo "* Warning: A6 devices won't have activation error workaround yet when using this method"
echo "[Input] This device is in:" echo "[Input] This device is in:"
select opt in "kDFU mode" "DFU mode (A6)" "pwnDFU mode (A5 using Arduino)"; do select opt in "kDFU mode" "DFU mode (ipwndfu A6)" "pwnDFU mode (checkm8 A5)" "(Any other key to exit)"; do
case $opt in case $opt in
"kDFU mode" ) Log "Downgrading $ProductType in kDFU mode..."; break;; "kDFU mode" ) Log "Downgrading $ProductType in kDFU mode..."; break;;
"DFU mode (A6)" ) CheckM8; break;; "DFU mode (ipwndfu A6)" ) CheckM8; break;;
"pwnDFU mode (A5 using Arduino)" ) kDFU iBSS; break;; "pwnDFU mode (checkm8 A5)" ) kDFU iBSS; break;;
* ) exit;; * ) exit;;
esac esac
done done
@ -298,7 +301,7 @@ function Recovery {
} }
function CheckM8 { function CheckM8 {
DFUManual=0 DFUManual=1
[[ $A7Device == 1 ]] && echo -e "\n[Log] Device in DFU mode detected." [[ $A7Device == 1 ]] && echo -e "\n[Log] Device in DFU mode detected."
Log "Entering pwnDFU mode with ipwndfu..." Log "Entering pwnDFU mode with ipwndfu..."
cd resources/ipwndfu cd resources/ipwndfu