From 1dc53dc21db6f5171949e30c94957813d7e0ec48 Mon Sep 17 00:00:00 2001 From: vincent Bourgmayer Date: Wed, 19 Jan 2022 10:49:42 +0100 Subject: [PATCH] update flash-script to flash teracube 2e for windows --- .../Teracube_2e-install-from-bootloader.bat | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/flash-scripts/windows/Teracube_2e-install-from-bootloader.bat b/flash-scripts/windows/Teracube_2e-install-from-bootloader.bat index 2e88f79c..2b256e75 100755 --- a/flash-scripts/windows/Teracube_2e-install-from-bootloader.bat +++ b/flash-scripts/windows/Teracube_2e-install-from-bootloader.bat @@ -61,7 +61,7 @@ if not defined %JAVA_FOLDER_PATH ( ) set FASTBOOT_PATH="%FASTBOOT_FOLDER_PATH%fastboot" - +set ADB_PATH="%FASTBOOT_FOLDER_PATH%adb" set JAR_PATH="%JAVA_FOLDER_PATH%/bin/jar" @@ -93,12 +93,6 @@ if errorLevel 1 ( exit /b 12 ) ping 127.0.0.1 -n 1 -w 10000 >NUL echo "Flashed boot" -%FASTBOOT_PATH% -s %DEVICE_ID% flash recovery recovery.img -if errorLevel 1 ( exit /b 13 ) - -ping 127.0.0.1 -n 1 -w 10000 >NUL -echo "Flashed recovery" - %FASTBOOT_PATH% -s %DEVICE_ID% flash vbmeta vbmeta.img if errorLevel 1 ( exit /b 14 ) @@ -138,4 +132,17 @@ if errorLevel 1 ( exit /b 20 ) ping 127.0.0.1 -n 1 -w 10000 >NUL echo "Flashed vendor" + + +%ADB_PATH% -s %DEVICE_ID% reboot bootloader +if errorLevel 1 ( exit /b 20 ) + +ping 127.0.0.1 -n 7 -w 10000 >NUL +echo "reboot into bootloader" + +%FASTBOOT_PATH% -s %DEVICE_ID% flash recovery recovery.img +if errorLevel 1 ( exit /b 13 ) + +ping 127.0.0.1 -n 1 -w 10000 >NUL +echo "Flashed recovery" exit /b 0 \ No newline at end of file -- GitLab