-
-
Notifications
You must be signed in to change notification settings - Fork 71
Windows Subsystem for Android (WSA) is Microsoft's solution for running Android applications natively on Windows 11. It provides a convenient testing environment for Fulguris development without requiring physical devices or separate Android emulators.
Documentation: https://learn.microsoft.com/en-us/windows/android/wsa/ License: Proprietary (Microsoft)
WSA offers several advantages for testing Fulguris on Windows:
- Native Integration: Runs Android apps directly on Windows 11
- No Emulator Overhead: Better performance than traditional Android emulators
- Easy Access: Test Fulguris alongside Windows applications
- ADB Compatible: Full ADB support for installation and debugging
- Resource Efficient: Suspends automatically when not in use
- Desktop Experience: Test Fulguris on desktop-class hardware
- Windows 11 Features: Integration with Windows clipboard, file system
Minimum:
- Windows 11 (build 22000.0 or higher)
- 8 GB RAM
- Intel Core i3 8th Gen / AMD Ryzen 3000 / Snapdragon 8c or better
- SSD storage (recommended for performance)
- Virtualization enabled in BIOS/UEFI
Recommended:
- 16 GB RAM
- Intel Core i5 or AMD Ryzen 5 (or better)
- Virtual Machine Platform and Windows Hypervisor Platform enabled
Check Virtualization:
# Open Task Manager → Performance → CPU
# Look for "Virtualization: Enabled"
# Or use PowerShell:
Get-ComputerInfo | Select-Object HyperVRequirementVirtualizationFirmwareEnabled- Open Microsoft Store
-
Search for "Windows Subsystem for Android™"
- Full name: "Windows Subsystem for Android™ with Amazon Appstore"
- Click Get / Install
- Wait for download (approximately 1.2 GB)
- Launch Windows Subsystem for Android from Start Menu
- Open Windows Subsystem for Android settings
- Toggle Developer mode to On
-
Note the IP address (usually
127.0.0.1:58526) - Keep WSA settings window open during development
If WSA fails to start, enable these Windows features:
# Run PowerShell as Administrator
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
# Restart computer after enabling# Ensure WSA is running (check system tray icon)
# Connect to WSA via localhost
adb connect 127.0.0.1:58526
# Expected output:
# connected to 127.0.0.1:58526
# Verify connection
adb devices
# Expected output:
# List of devices attached
# 127.0.0.1:58526 deviceWSA automatically suspends when no apps are running:
# If connection lost, reconnect
adb disconnect 127.0.0.1:58526
adb connect 127.0.0.1:58526If you have other devices connected:
# Target WSA specifically
adb -s 127.0.0.1:58526 <command>
# Example:
adb -s 127.0.0.1:58526 install app.apk# 1. Build debug APK
.\gradlew assembleSlionsFullDownloadDebug
# 2. Connect to WSA
adb connect 127.0.0.1:58526
# 3. Install Fulguris
adb install -r app/build/outputs/apk/slionsFullDownload/debug/app-slions-full-download-debug.apk
# 4. Launch Fulguris
adb shell am start -n net.slions.fulguris.full.download/.BrowserActivity# Build and install in one line
.\gradlew assembleSlionsFullDownloadDebug && adb -s 127.0.0.1:58526 install -r app/build/outputs/apk/slionsFullDownload/debug/app-slions-full-download-debug.apk# Terminal 1: Watch logs
adb -s 127.0.0.1:58526 logcat -c
adb -s 127.0.0.1:58526 logcat | Select-String "fulguris"
# Terminal 2: Install and launch
adb -s 127.0.0.1:58526 install -r app.apk
adb -s 127.0.0.1:58526 shell am start -n net.slions.fulguris.full.download/.BrowserActivityTest Incognito Mode:
adb -s 127.0.0.1:58526 shell am start -n net.slions.fulguris.full.download/.BrowserActivity --ez incognito trueClear App Data:
adb -s 127.0.0.1:58526 shell pm clear net.slions.fulguris.full.downloadAccess App Storage:
# Pull database
adb -s 127.0.0.1:58526 shell "run-as net.slions.fulguris.full.download cat /data/data/net.slions.fulguris.full.download/databases/bookmarks.db" > bookmarks.db
# Pull preferences
adb -s 127.0.0.1:58526 pull /data/data/net.slions.fulguris.full.download/shared_prefs/ ./prefs/Issue: WSA does not include Google Play Services
Impact on Fulguris:
- ❌ Cannot test Play Store variant (
slionsFullPlaystore) - ❌ No Firebase Analytics/Crashlytics
- ❌ SafetyNet/Play Integrity checks fail
- ✅ Download and F-Droid variants work fine
Solution: Use slionsFullDownload or slionsFullFdroid variants for WSA testing
Limited or Missing:
- GPS/Location services (may not provide accurate location)
- Accelerometer, gyroscope (orientation detection)
- Camera (may use Windows webcam, but with limitations)
- Fingerprint sensor
- NFC
Testing Location Features:
# Mock location for testing
adb -s 127.0.0.1:58526 shell settings put secure location_providers_allowed +gps
adb -s 127.0.0.1:58526 shell settings put secure location_providers_allowed +network
# Set mock location (requires mock location app)Generally Good:
- UI rendering and responsiveness
- Web page loading
- Basic functionality testing
May Vary:
- WebView performance (depends on hardware)
- Video playback
- Complex JavaScript execution
- Heavy DOM manipulation
- Some Android APIs behave differently than physical devices
- Background service restrictions may be stricter
- Network configuration may differ from mobile networks
- Storage paths may be different
Access via Start Menu → "Windows Subsystem for Android Settings"
Key Settings:
Subsystem Resources:
- Continuous - WSA always running (better for active development)
- As needed - WSA suspends when idle (saves resources)
Developer:
- Developer mode - Enable for ADB access
- Manage developer settings - Opens Android developer options
Network:
- Options for network connectivity mode
Optional features:
- Amazon Appstore (not needed for sideloading)
Access Android settings:
# Open Android settings from WSA
adb -s 127.0.0.1:58526 shell am start -a android.settings.SETTINGSOr launch from Windows Start Menu after WSA is running.
Access Android Files from Windows:
- Open WSA Settings
- Click Files under Advanced
- Opens Android's
/sdcard/in Windows Explorer
Or via ADB:
# Push file to Android storage
adb -s 127.0.0.1:58526 push file.txt /sdcard/Download/
# Pull file from Android storage
adb -s 127.0.0.1:58526 pull /sdcard/Download/file.txt ./Symptom: WSA fails to launch or shows error
Solutions:
- Check virtualization - Must be enabled in BIOS
-
Enable Windows features:
# Run as Administrator Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All
- Restart Windows after enabling features
- Check Windows Update - Ensure Windows 11 is up to date
- Reinstall WSA - Uninstall from Apps & features, then reinstall from Store
Symptom: adb connect 127.0.0.1:58526 fails
Solutions:
- Ensure WSA is running - Check system tray for WSA icon
- Enable Developer mode - WSA Settings → Developer mode → On
-
Restart WSA:
- WSA Settings → Turn off subsystem
- Wait 10 seconds
- Turn on subsystem
- Check firewall - Ensure ADB port is not blocked
-
Restart ADB server:
adb kill-server adb start-server adb connect 127.0.0.1:58526
Symptom: adb install fails with errors
Solutions:
| Error | Solution |
|---|---|
INSTALL_FAILED_UPDATE_INCOMPATIBLE |
Uninstall existing version first |
INSTALL_FAILED_INSUFFICIENT_STORAGE |
Free up WSA storage in settings |
INSTALL_FAILED_OLDER_SDK |
Check APK minSdkVersion vs WSA Android version |
| Connection timeout | Ensure WSA is running and reconnect ADB |
Symptom: App installs but won't launch
Solutions:
-
Check logcat for errors:
adb -s 127.0.0.1:58526 logcat | Select-String "AndroidRuntime"
-
Clear app data:
adb -s 127.0.0.1:58526 shell pm clear net.slions.fulguris.full.download
- Reinstall with correct variant - Use Download or F-Droid, not Play Store
-
Check permissions:
adb -s 127.0.0.1:58526 shell pm grant net.slions.fulguris.full.download android.permission.INTERNET
Symptom: Fulguris runs slowly on WSA
Solutions:
- Switch to Continuous mode - WSA Settings → Subsystem resources → Continuous
- Increase RAM allocation - WSA Settings → Advanced
- Close other applications - Free up system resources
- Use SSD storage - Ensure WSA is on SSD, not HDD
- Update GPU drivers - Better graphics performance
Keep WSA in Continuous Mode:
WSA Settings → Subsystem resources → Continuous
Prevents WSA from suspending during active development.
Use Build-Install Script:
Create deploy_wsa.ps1:
# Build and deploy to WSA
Write-Host "Building Fulguris..."
.\gradlew assembleSlionsFullDownloadDebug
if ($LASTEXITCODE -eq 0) {
Write-Host "Connecting to WSA..."
adb connect 127.0.0.1:58526
Write-Host "Installing..."
adb -s 127.0.0.1:58526 install -r app/build/outputs/apk/slionsFullDownload/debug/app-slions-full-download-debug.apk
Write-Host "Launching Fulguris..."
adb -s 127.0.0.1:58526 shell am start -n net.slions.fulguris.full.download/.BrowserActivity
}Run:
.\deploy_wsa.ps1Use WSA For:
- ✅ UI/UX testing
- ✅ Desktop layout testing
- ✅ Quick iteration during development
- ✅ Accessibility testing with Windows screen readers
- ✅ Basic functionality verification
Use Physical Device For:
- ❌ Location-based features
- ❌ Camera/sensor features
- ❌ Performance benchmarking
- ❌ Mobile-specific behaviors
- ❌ Play Store variant testing
Stop WSA When Not Needed:
WSA Settings → Turn off subsystem
Frees up RAM and CPU resources.
Monitor WSA Resource Usage:
- Task Manager → Android (WSA)
- Typically uses 2-4 GB RAM when active
| Feature | WSA | Android Emulator | Physical Device |
|---|---|---|---|
| Setup Time | Fast (< 5 min) | Medium (10-15 min) | Instant |
| Performance | Very Good | Good | Best |
| Google Play | ❌ No | ✅ Yes (with Google APIs image) | ✅ Yes |
| Sensors | ❌ Limited | ✅ Real hardware | |
| ADB Support | ✅ Yes | ✅ Yes | ✅ Yes |
| Resource Usage | Medium | High | None (on PC) |
| Windows Integration | ✅ Excellent | ❌ Separate VM | ❌ External |
| Best For | Desktop testing, quick iterations | Full Android testing | Real-world testing |
- ADB - Android Debug Bridge for device communication
- Android Studio - IDE with emulator management
- Gradlew - Building APKs for WSA
- Building - Build variants and configurations
- Official Documentation: https://learn.microsoft.com/en-us/windows/android/wsa/
- Microsoft Store: https://www.microsoft.com/store/productId/9P3395VX91NR
- Community Forum: https://github.com/microsoft/WSA/discussions
- Known Issues: https://learn.microsoft.com/en-us/windows/android/wsa/#known-issues
Last Updated: December 21, 2025 Maintained by: Fulguris Development Team