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

Commit fc3b61f4 authored by frankpreel's avatar frankpreel
Browse files

Review fixes

parent a4cfc3d9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -55,12 +55,10 @@ if %errorlevel% == 0 (
:fastboot_detect
ping 192.0.2.1 -n 1 -w 500 >nul
%FASTBOOT_PATH% devices 2>&1 | findstr "fastboot"
if %errorLevel% == 0 (
if %errorLevel% == 1 (
	goto :fastboot_detect
)

::call fastboot_detect

echo "Unlocked continue process"

exit /b 0
+0 −32
Original line number Diff line number Diff line
@echo off

:: Copyright (C) 2022 ECORP SAS - Author: Romain Hunault

:: This program is free software: you can redistribute it and/or modify
:: it under the terms of the GNU General Public License as published by
:: the Free Software Foundation, either version 3 of the License, or
:: (at your option) any later version.

:: This program is distributed in the hope that it will be useful,
:: but WITHOUT ANY WARRANTY; without even the implied warranty of
:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
:: GNU General Public License for more details.

:: You should have received a copy of the GNU General Public License
:: along with this program.  If not, see <https://www.gnu.org/licenses/>.

:: Parameter
:: $1: DEVICE_ID Device we are waiting for reboot
:: $2: ADB_FOLDER_PATH: the path where runnable adb is stored

:: Exit status
:: - 0 : success
:: - 1 : Error
:: - 10 : DEVICE_ID is missing
:: - 101 : device with DEVICE_ID is not detected


SET DEVICE_ID=%~1
SET ADB_FOLDER_PATH=%~2
SET ADB_PATH="%ADB_FOLDER_PATH% adb"
echo "ADB path: %ADB_PATH%"