Prerequisites
- WSA installed and running
- ADB installed on your Windows system
- Developer mode enabled in WSA
Installing ADB
If you don’t have ADB installed, follow the XDA guide to install ADB on Windows. Verify installation by opening Windows Terminal and running:Setting Up ADB with WSA
Enable Developer Mode
- Launch Windows Subsystem for Android from the Start Menu
- Click on Developer in the sidebar
- Enable Developer mode by toggling the switch
- Take note of the IP address and port shown in the Developer mode section
127.0.0.1:58526 (port number varies)Pair ADB with WSA
Open Windows Terminal and pair your device using the IP and port from Developer mode:Example:You may be prompted to enter a pairing code shown in the WSA settings.
Installing APKs using ADB
Once ADB is connected, you can install any APK file.Get File Path
In File Explorer:
- Navigate to the downloaded APK
- Hold Shift and right-click on the APK file
- Select Copy as path
Common ADB Commands
List Installed Packages
Uninstall an App
Install APK with Specific Options
Replace existing app:Push Files to WSA
Pull Files from WSA
Access WSA Shell
Advanced Usage
Installing Multiple APKs
Create a batch script to install multiple APKs:install-apps.bat
Installing Split APKs
For apps with multiple APK files (split APKs):Debugging App Issues
View real-time logs:After Installation
Once you’ve installed a file manager and web browser using ADB, you can:- Browse the web from within Android
- Download apps directly in WSA
- Install apps normally without using ADB
- Install Aurora Store to access Google Play apps without a Google account
Suggested First Apps
microG
Open-source Google services replacement
Aurora Store
Access Google Play without Google account
FX File Explorer
Full-featured file manager with cloud support
Bromite
Privacy-focused Chromium browser
Troubleshooting
ADB device not found
ADB device not found
- Ensure WSA is running (open WSA Settings)
- Verify Developer mode is enabled
- Check that you’re using the correct IP and port
- Try disconnecting and reconnecting:
Installation failed
Installation failed
- Ensure the APK is compatible with Android (check WSA Android version)
- Try installing with
-rflag to replace existing installation - Check if you have enough storage space
- Some apps may not work on WSA due to architecture or hardware requirements
Permission denied errors
Permission denied errors
- Some operations require root access
- Install a WSA build with Magisk for root capabilities
- Use
adb shellthensuto gain root access
Connection keeps dropping
Connection keeps dropping
- WSA resets the port number when it restarts
- Check Developer settings for the current IP and port
- Reconnect using the new port number
- Consider keeping WSA Settings open to prevent automatic shutdown
Wireless ADB (Advanced)
You can use wireless ADB debugging if your WSA IP address is accessible:Need Help?
Join the WSA Community Discord for troubleshooting assistance
