Commit 1dc53dc2 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer 🎼
Browse files

update flash-script to flash teracube 2e for windows

parent d596df04
Pipeline #158107 passed with stages
in 6 minutes and 21 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment