Created
February 8, 2025 11:01
-
-
Save NaveenPNair/2a63b44f1600d17f501e131e2710e716 to your computer and use it in GitHub Desktop.
This batch file simplifies installing and updating Android APKs on Windows 10/11 with WSA and ADB. Set it as the default handler for APK files to install/update them automatically.
This file contains 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 | |
echo. | |
echo ----------------------------------------- | |
echo *** APK Installer for Windows 11 *** | |
echo ----------------------------------------- | |
echo. | |
echo APK File Path: "%~1" | |
echo. | |
adb connect 127.0.0.1:58526 | |
if %errorlevel% neq 0 ( | |
echo Failed to connect to WSA. Make sure WSA is running. | |
pause | |
exit /b | |
) | |
echo. | |
adb install -r "%~1" | |
if %errorlevel% neq 0 ( | |
echo Failed to install or update APK. | |
pause | |
exit /b | |
) | |
echo. | |
echo APK Installed or Updated Successfully! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment