Windows Subsystem for AndroidTM (WSA) is one of the new features of Windows 11. It enables Windows 11 devices to run Android application in a virtual way. Microsoft only allows you to install apps from Amazon App Store which means your choices are very limited. In Addition, the WSA doesn't enquipped with Google Services Framework (GSF) so Google Apps such as YouTube cannot run properly on WSA even if installed with sideload.
Thanks for WSA-Community, there is a repository on Github that can do modifications on the WSA install package to add GSF support. This tutorial helps you install Google Service Framework as well as Google Play Store to the WSA on Windows 11.
wsl --install
: this will install Ubuntu 20.04 LTS in WSL (Version 2) and all necessary components required to run as it is default (this is recommended)wsl --list --verbose
to be sure that you have a Linux Distro installed with WSL2 version. If for some reason you have receieved WSL1 kernel (or you have trouble running this command in general) - follow instructions in the section below to perform conversion.Microsoft Docs: Manual installation steps for older versions of WSL
Developer Mode allows you to install applications on your computer from any source. Follow the instructions to enable it:
As mentioned before, we have to do modifications on the Windows Subsystem for Android. To do this, you have to first download the WSA package.
If you have any problem when download any source in this tutorial, I created a google drive share link which contains all the download files required.
9P3395VX91NR
in the search box.MicrosoftCorporationII.WindowsSubsystemForAndroid_x.x.xxxxx.0_neutral_~_8wekyb3d8bbwe.msixbundle
. The file size is about 1.2G. Click on the filename to download the WSA package. Head to the Open GAPPS website to download the Open Gapps tool.
Then click on the red button to download.
Download the WSAGAScript from the github page repository.
Click on the green button Code and select Download ZIP in the drop-down menu.
The last thing you have to download is the Android Debugging Bridge Toolkit (ADB). Simply click this link and download the .zip file.
Create 3 folders under the root path of your system partition which is usually the C:\ drive. Then, rename them as WindowsSubsystemAndroid
, GAppsWSA
and ADBKit
.
C:\WindowsSubsystemAndroid\
. Then, delete the AppxMetadata
, AppxBlockMap.xml
, AppxSignature.p7x
, and [Content_Type].xml
.WSAGAScript-main.zip\WSAGAScript-main\
to C:\GAppsWSA\
.C:\GAppsWSA\#GAPPS\
C:\WindowsSubsystemAndroid\
to C:\GAppsWSA\#IMAGES\
folder.C:\ADBKit\
Now we are ready to modify the original Windows Subsystem for Android to equipped with Google Service Framework and Google Apps. In this step, we need to use the WSL to do the modification.
sudo su
in the WSL terminal and provide the root password to obtain root privilege. The $ in the prompt should turn into #.cd /mnt/c/GAppsWSA
apt update
apt install unzip lzip
apt install dos2unix
dos2unix ./apply.sh
dos2unix ./extend_and_mount_images.sh
dos2unix ./extract_gapps_pico.sh
dos2unix ./unmount_images.sh
dos2unix ./VARIABLES.sh
./extract_gapps_pico.sh
./extend_and_mount_images.sh
./apply.sh
./unmount_images.sh
Now you have modified the .img files. Do the following steps to complete the modification on the WSA:
C:\GAppsWSA\#IMAGES\
to C:\WindowsSubsystemAndroid\
and replace the origianl .img files.C:\GAppsWSA\misc\
to C:\WindowsSubsystemAndroid\Tools
.C:\WindowsSubsystemAndroid\Tools
to kernel_bak.C:\WindowsSubsystemAndroid\Tools
to kernel.Now we have finished the modification on the Windows Subsystem for Android. Then comes to install the WSA with terminal command:
Add-AppxPackage -Register C:\WindowsSubsystemAndroid\AppxManifest.xml
cd C:\ADBKit
.\adb.exe connect 127.0.0.1:58526
.\adb.exe shell
su
setenforce 0