Created
February 4, 2020 00:58
-
-
Save WitherOrNot/f2d8fbdcbaf454dba9acbdd815c33993 to your computer and use it in GitHub Desktop.
Augmented ADB Shell for remote Android management
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cls | |
:a | |
for /f "delims=" %%i in ('adb shell pwd') do set pwd=%%i | |
title adbshell- %pwd% | |
set /p com="adbshell- %pwd% $ " | |
echo %com% >com.txt | |
goto b | |
:c | |
adb shell "%com%" | |
if "%com%"=="clear" (cls) | |
goto a | |
:b | |
findstr "pull" com.txt >nul | |
if "%ERRORLEVEL%" == "0" (adb %com% && goto a) | |
findstr "push" com.txt >nul | |
if "%ERRORLEVEL%" == "0" (adb %com% && goto a) | |
findstr "logcat" com.txt >nul | |
if "%ERRORLEVEL%" == "0" (adb %com% && goto a) | |
findstr "install" com.txt >nul | |
if "%ERRORLEVEL%" == "0" (adb %com% && goto a) | |
findstr "uninstall" com.txt >nul | |
if "%ERRORLEVEL%" == "0" (adb %com% && goto a) | |
goto c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment