4.8 KiB
WSABuilds
Installation
Note
If you have the official Windows Subsystem For Android™ installed, you must completely uninstall it to use MagiskOnWSA.
Important
In case you want to preserve your data from the previous installation (official or MagiskOnWSA), you can backup Userdata.vhdx, located at
%LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx
before uninstallation and restore it after installation. A guide for this process is located further down in this README.
Video Guide:
Special Thanks to kilObit (creator of the video)
Text Guide:
- Go to the Releases page
- In the latest release, go to the Assets section and download the Windows Subsystem For Android™ version of your choosing (do not download "Source code")
- Extract the .7z archive and rename the folder (that you extracted) to
WSA
- Delete the .7z archive
- Move the newly extracted folder to a suitable location (Documents folder is a good choice), as you will need to keep the folder on your PC to use MagiskOnWSA
Note
If you're updating WSA, merge the folders and replace the files for all items when asked
-
Open the Windows Subsystem For Android™ folder: Search for and double-click
Run.bat
-
If you previously have a MagiskOnWSA installation, it will automatically uninstall the previous one while preserving all user data and install the new one, so don't worry about your data.
-
If the popup windows disappear without asking administrative permission and Windows Subsystem For Android™ is not installed successfully, you should manually run Install.ps1 as administrator:
-
Press Win+x and select Windows™ Terminal (Admin)
-
Input the command below and press enter, replacing {X:\path\to\your\extracted\folder} including the {} with the path of the extracted folder
cd "{X:\path\to\your\extracted\folder}"
-
Input the command below and press enter
PowerShell.exe -ExecutionPolicy Bypass -File .\Install.ps1
-
The script will run and Windows Subsystem For Android™ will be installed
-
If this workaround does not work, your PC is not supported for WSA
-
-
-
Once the installation process completes, Windows Subsystem For Android™ will launch (if this is a first-time install, a window asking for consent to diagnositic information will be shown instead. Sometimes two identical windows will show, this is fine and nothing bad happens if you click OK in both windows)
-
Click on the PowerShell window, then press any key on the keyboard, the PowerShell window should close
-
Close File Explorer
-
Enjoy
---
Notice (Applicable for both Windows 10 and 11):
- You can NOT delete the Windows Subsystem For Android™ installation folder.
What
Add-AppxPackage -Register .\AppxManifest.xml
does is to register an appx package with some existing unpackaged files, so you need to keep them as long as you want to use Windows Subsystem For Android™. Check https://learn.microsoft.com/en-us/powershell/module/appx/add-appxpackage?view=windowsserver2022-ps for more details. - You need to register your Windows Subsystem For Android™ appx package before you can run Windows Subsystem For Android™.
For WSABuilds and MagiskOnWSALocal users, you need to run
Run.bat
in the extracted dir. If the script fails, you can take the following steps for diagnosis (admin privilege required):-
Open a PowerShell window and change working directory to your Windows Subsystem For Android™ directory.
-
Run the command below in PowerShell. This should fail with an ActivityID, which is a UUID required for the next step.
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register .\AppxManifest.xml
-
Run the command below in PowerShell. This should print the log of the failed operation.
Get-AppPackageLog -ActivityID <uuid>
-
Check the log for the reason of failure and fix it.
-