Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thoughtful-solutions/aba7b6b4a0f72e38ae8d3de4b111826d to your computer and use it in GitHub Desktop.
Save thoughtful-solutions/aba7b6b4a0f72e38ae8d3de4b111826d to your computer and use it in GitHub Desktop.
Windows Subsystem for Android

1. Check Windows version (must be 22000 or higher)

[System.Environment]::OSVersion.Version

2. Enable required Windows features

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

3. Restart your computer (do this manually)

4. Download and install WSA (this uses winget, ensure it's installed)

winget install 9P3395VX91NR -s msstore

5. Enable Developer Mode (optional, for sideloading apps)

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"

6. Start WSA

Start-Process "wsa://com.amazon.venezia"

7. Check WSA status

Get-WmiObject -Namespace "root\cimv2\mdm\dmmap" -Class "MDM_AppsVirtualization_ApplicationSettings" | Select-Object -Property PSComputerName, ProviderID, SettingName, SettingValue

8. (Optional) Install ADB for sideloading apps

winget install Google.AndroidStudio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment