Updated shut down command

This commit is contained in:
newbit1
2022-03-03 22:33:52 +01:00
parent 0f57c8996a
commit d2ef1f0b4b
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -151,7 +151,8 @@ exit /B %ERRORLEVEL%
SetLocal EnableDelayedExpansion
set ADBPULLECHO=
adb shell reboot -p > tmpFile 2>&1
REM adb shell reboot -p > tmpFile 2>&1
adb shell setprop sys.powerctl shutdown > tmpFile 2>&1
set /P ADBPULLECHO=<tmpFile
del tmpFile
+2 -1
View File
@@ -386,7 +386,8 @@ TestADB() {
}
ShutDownAVD() {
ADBPULLECHO=$(adb shell reboot -p 2>/dev/null)
#ADBPULLECHO=$(adb shell reboot -p 2>/dev/null)
ADBPULLECHO=$(adb shell setprop sys.powerctl shutdown 2>/dev/null)
if [[ ! "$ADBPULLECHO" == *"error"* ]]; then
echo "[-] Trying to shut down the AVD"
fi