Last active
January 18, 2023 04:52
-
-
Save LuviKunG/0266b1b9c22bdb036d5b1445d51e82a9 to your computer and use it in GitHub Desktop.
Batch file that easily to select the *.apk files in the directory and install via 'adb'.
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 | |
setlocal enabledelayedexpansion | |
set i=0 | |
for %%f in (*.apk) do ( | |
set /A i+=1 | |
set apk[!i!]=%%f | |
) | |
echo Available APK files: | |
for /L %%i in (1,1,%i%) do echo [%%i] !apk[%%i]! | |
set /p index=Enter the index of the APK file you want to install: | |
adb install -r !apk[%index%]! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment