WSA Android 12.1 with Magisk and Gapps

Update: The MagiskOnWSA project has been temporarily disabled. You can use the MagiskOnWSALocal by the same developer for now.

Original: Windows Subsystem for Android (WSA), as the name suggests, is a Windows application that enables users to run Android apps. WSA is similar to an Android emulator but is native to Windows 11 so it guarantees performance, responsive, and runs Android apps as native Windows programs. In the last article, we showcased how to install the original WSA on Windows 11. In this tutorial, we will show you how to download and install Windows Subsystem for Android with Magisk root and Google Play Store based on Android 12.1/12L.

The original Windows Subsystem for Android does not come with Google Play Store. This is because WSA comes in collaboration with Microsoft and Amazon App Store. However, due to the openness (open source nature) of Android, developers like LSPosed and John Wu have managed to modify the latest build of WSA with integration for Magisk and Open Gapps. This means you can now root and install Play Store on Windows Subsystem for Android!

Just recently, WSA also got updated to Android 12.1, a.k.a Android 12L. It comes with build 2204.40000.19.0. You can read all about it on Microsoftโ€™s blogpost about WSA.

In this tutorial, we will show you how to build your own WSA with Magisk and Open Gapps and install on any Windows 11 build including the stable, RC, beta, production build.

Windows Subsystem for Android on Windows 11 with Android 12.1
Windows Subsystem for Android on Windows 11 with Android 12.1

Download Windows Subsystem for Android with Magisk and Gapps

Ideally, you need to build your own WSA with Magisk and Gapps from the MagiskOnWSA or MagiskOnWSALocal project by LSPosed. If you want any customizations, you can do so while building the WSA root package. Like if you want to skip Magisk (root access) or want to install Open Gapps with all the Google apps you can choose pico, nano, mini, micro, and more.

Ready to install WSA (Android 12.1) with Root and Open Gapps

Alternatively, we have done all the hard work for you and you can simply download the WSA Root and Gapps zip here and skip the building part.

Note: x64 is ideal for all Windows 11 PCs with Intel or AMD processors or chipsets. The second build is for arm PCs like Surface Pro X, Samsung Galaxy Book Go, Lenovo Flex 5G, Acer Spin 7, HP Elite Folio. You can also install Windows 11 on smartphones now.

Once the download completes, head over to the WSA installation part.

How to build Windows Subsystem for Android with Root and Google Play?

Before you begin:

  • If you already have a MagiskOnWSA installation, this guide will automatically uninstall the existing version and update it while retaining all userdata.
  • However, if you have an official WSA installation โ€“ the Amazon store one, you should uninstall it first.
  • If you want to backup data, visit the following location on your PC:

 %LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx 

  • Later restore it at the same location.

Letโ€™s start the tutorial!

1. Enable Virtual Machine Platform (skip if already done)

  • Click on Start.
  • Search for Turn Windows features on or off. Click on the first option.
  • Scroll down and search Virtual Machine Platform.
  • Checkbox and click OK.
  • Restart Windows.

2. Install Microsoft UI Xaml 2.6+ (skip if already done)

The Microsoft UI Xaml includes the framework to run Windows Subsystem for Android. It comes pre-installed on Windows Insider builds โ€“ Beta and Dev Channel. For stable Windows 11 device, you will need this app.

Otherwise, you will get an error while trying to install WSA similar to this:

Windows cannot install package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64_8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework โ€œMicrosoft.UI.Xaml.2.6โ€ published by โ€œCN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USโ€, with neutral or x64 processor architecture and minimum version 2.62108.18004.0, along with this package to install. The frameworks with name โ€œMicrosoft.UI.Xaml.2.6โ€ currently installed are Windows cannot install package MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_x64_8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework โ€œMicrosoft.UI.Xaml.2.6โ€ published by โ€œCN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=USโ€, with neutral or x64 processor architecture and minimum version 2.62108.18004.0, along with this package to install. The frameworks with name โ€œMicrosoft.UI.Xaml.2.6โ€ currently installed are: {}

Steps to install Microsoft UI Xaml:

  • Launch a browser.
  • Visit the website โ€“ rg-adguard.net
  • Then change the first option to ProductID.
  • Paste 9P3395VX91NR in the search bar.
  • Change the channel to RP.
  • Click on the โœ… button.
  • Let it generate the list of files.
  • Download the following file from the list
  • Microsoft.UI.Xaml.2.6_2.62112.3002.0_x64__8wekyb3d8bbwe.appx
    Make sure to download the x64 version. The version may change with time.install Microsoft UI Xaml WSA framework windows 11
  • Double click the file once it gets downloaded.
  • Install the file
  • You are now ready to install WSA

3. Building Windows Subsystem for Android using Magisk on WSA Github project

  1. Visit MagiskOnWSA (disabled) Use -> MagiskOnWSALocal project page on Github.
  2. Create a Github account if you havenโ€™t already.
  3. Fork the repo from top right corner. (keep it PUBLIC, private repo is not supported)Fork Magisk on WSA
  4. Give it a name and description or keep it default.
  5. Go to theย Actionย tab in your forked repo.Building Windows Subsystem for Android using Magisk on WSA Github project (1)
  6. On the left sidebar, click theย Build WSAย workflow.Building Windows Subsystem for Android using Magisk on WSA Github project (2)
  7. Above the list of workflow runs, selectย Run workflow.
  8. On the drop down menu, select Magisk and select theย OpenGApps variant. ย 
    1. Here, you can customize Magisk, Gapps and architecture (x64) is for Intel and AMD. If you want to skip root or Gapps, just select none in the tab.
  9. Again, clickย Run workflow at the bottom.ย 
  10. Wait for the action to complete. This may take a while.Building Windows Subsystem for Android using Magisk on WSA Github project (3)
  11. Once the workflow shows Success, scroll down to Artifacts.
  12. Download the artifact. If it fails to download via chrome browser, use XDM (Xtreme Download Manager)Building Windows Subsystem for Android using Magisk on WSA Github project (4)
  13. The Artifact will show 1.98 GB, but the actual download will be around 900 MB because it is compressed.

How to Install WSA on Windows 11?

The WSA zip could be named something like WSA-with-magisk-GApps-pico_2204.40000.19.0_x64_Release-Nightly.zip. The build 2204.40000indicates it is Android 12.1/12L.

Here is how to install:

  1. Extract or Unzip the artifact (WSA zip)
  2. Right-click Install.ps1 and select Run with PowerShellHow to Install Magisk on WSA
  3. This should install WSA with Magisk and Play Store immediately.
  4. Search Android and the first option should be Windows Subsystem for Android.
  5. Launch it.
  6. Go to Developer Tab and enable Developer Mode.
  7. Search Play Store, launch it, sign in, and install any Android launcher (Nova, Action, Lawnchair).

Video Tutorial

Credits: Magisk on WSA project

Before you go, see these important tutorials:

Android Apps to Install on Windows 11

Here are some must-have apps to install on Windows 11.

Join our Telegram Channel.

Follow and Subscribe


Sarang Avatar

One response


  1. Robert Avatar
    Robert

    dpc watchdog violation blu screen of death today, just installed this and updated calibre yestorday, not sure what’s the cause, but I wanted to ask if something in the android subsystem could of caused this problem on my windows 11? on gigabyte motherboard in my desktop, the one made for Windows 8 Bios was last updated in 2013, also that’s the last date for the dualbios on my desktop. got windows 11 running on it, I had windows 10 working fine, windows 11 is a bit slower than 10 on my computer. running sfc /scannow, but I don’t expect it to give me any answer as what caused the crash. android apps are not stable on my version 21H1 of windows 11, they seem to easy to crash them, nvidia rtx 2080 3D card, and geforce GTX 1050 Ti card is what I can select in the settings for android subsystem on my windows 11.

Leave a Reply