Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66da5b17 authored by vince-bourgmayer's avatar vince-bourgmayer
Browse files

update windows scripts: install-recovery, wait-download, wait-reboot

parent 53bbe534
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -26,8 +26,8 @@

set "TWRP_IMAGE_PATH=%1"

if not defined TWRP_IMAGE_PATH (
if not defined %TWRP_IMAGE_PATH (
  exit /b 101
)

heimdall flash --RECOVERY %TWRP_IMAGE_PATH --no-reboot
heimdall flash --RECOVERY %TWRP_IMAGE_PATH% --no-reboot
+0 −1
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@ if errorLevel 1 (
	goto :heimdall_detect
) 


call heimdall_detect

timeout 5 >nul
+2 −13
Original line number Diff line number Diff line
@@ -28,16 +28,5 @@ set "DEVICE_ID=%1"

if not defined %DEVICE_ID ( exit /b 10)


adb devices | findstr recovery | findstr %DEVICE_ID% > nul
if %errorlevel==1  ( exit /b 101 )


:while_loop
adb devices | findstr recovery | findstr %DEVICE_ID% > nul
echo %errorLevel%
if not errorlevel 1 (
	timeout 1 >nul
	goto :while_loop
) else ( echo "device nod in recovery anymore" )
adb -s %DEVICE_ID% wait-for-device
if %errorlevel%==1  ( exit /b 101 )