Skip to content

Instantly share code, notes, and snippets.

@LuviKunG
Last active January 18, 2023 04:52
Show Gist options
  • Save LuviKunG/0266b1b9c22bdb036d5b1445d51e82a9 to your computer and use it in GitHub Desktop.
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'.
@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