Skip to content

Aircraft192/BuildWSA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magisk on WSA (with Google Apps)

TL;DR 太长了;看这

使用 actions 自动编译 Lsposed 团队的 Magisk WSA 并创建 zip 打包的 release,直接在 release 中下载编译好的 安卓子系统

本项目 release 中默认是 Google Apps + Magisk 的安卓子系统。

如果有自定义需求,可以 fork 本项目,在 actions 中选择自定义参数进行调整。

Features

  • Integrate Magisk and OpenGApps in a few clicks within minutes
  • No Linux environment required for integration
  • Keep each build up to date
  • Support both ARM64 and x64
  • Support all OpenGApps variants except for aroma (aroma does not support x86_64, please use super instead)
  • Fix VPN dialog not showing (use our VpnDialogs app)
  • Unattended installation
  • Automatically activates developers mode in Windows 11
  • Update to new version while preserving data with one-click script
  • Merged all language packs
  • Support managing start menu icons (manually installing WSAHelper to use this feature)

Video Guide

MagiskOnWSA.mp4

Text Guide

  1. Star (if you like) and fork this repo (keep it PUBLIC, private repo is not supported)
  2. Go to the Action tab in your forked repo Action Tab
  3. In the left sidebar, click the Build WSA workflow. Workflow
  4. Above the list of workflow runs, select Run workflow Run Workflow
  5. Select the version of Magisk and select the OpenGApps variant (none is no OpenGApps) you like, select the root solution (none means no root), select WSA version and its architecture (mostly x64) and click Run workflow Run Workflow
  6. Wait for the action to complete and download the artifact DO NOT download it via multithread downloaders like IDM or ADM Download
  7. Unzip the artifact
    • The size shown in the webpage is uncompressed size and the zip you download will be compressed. So the size of the zip will be much less than the size shown in the webpage.
  8. Right-click Install.ps1 and select Run with PowerShell
    • If you previously have a MagiskOnWSA installation, it will automatically uninstall the previous while preserving all userdata and install the new one, so don't worry about your data.
    • If you have an official WSA installation, you should uninstall it first. (In case you want to preserve your data, you can backup %LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalCache\userdata.vhdx before uninstallation and restore it after installation.) (If you want to restore the icons to the start menu, please install and use WSAHelper.)
    • If the popup windows disappear without asking administrative permission and WSA is not installed successfully, you should manually run Install.ps1 as administrator:
      1. Press Win+x and select Windows Terminal (Admin)
      2. Input cd "{X:\path\to\your\extracted\folder}" and press enter, and remember to replace {X:\path\to\your\extracted\folder} including the {}, for example cd "D:\wsa"
      3. Input PowerShell.exe -ExecutionPolicy Bypass -File .\Install.ps1 and press enter
      4. The script will run and WSA will be installed
      5. If this workaround does not work, your PC is not supported for WSA
  9. Magisk/Play store will be launched. Enjoy by installing LSPosed-zygisk with zygisk enabled or Riru and LSPosed-riru

FAQ

  • Actions workflow task Delete workflow runs run Failed

    Check workflow permissions, should be Read and write permissions

    permissions

    Read the Github Docs to find out how to change this setting

  • Why should we delete old workflow runs?

    Keeping old workflow runs can take up a lot of storage resources and is suspected to be abusive, which can lead to banning.

  • Can I delete the unzipped folder?

    No.

  • Why does the size of the zip do not match the one shown?

    The zip you downloaded is compressed and Github is showing the uncompressed size.

  • How can I update WSA to a new version?

    Rerun the Github action, download the new artifact, replace the content of your previous installation and rerun Install.ps1. Don't worry, your data will be preserved.

  • How can I get the logcat from WSA?

    %LOCALAPPDATA%\Packages\MicrosoftCorporationII.WindowsSubsystemForAndroid_8wekyb3d8bbwe\LocalState\diagnostics\logcat

  • How can I update Magisk to a new version?

    Do the same as updating WSA

  • How to pass safetynet?

    Like all the other emulators, no way.

  • Virtualization is not enabled?

    Install.ps1 helps you enable it if not enabled. After rebooting, rerun Install.ps1 to install WSA. If it's still not working, you have to enable virtualization in BIOS. That's a long story so ask Google for help.

  • How to remount the system as read-write?

    No way in WSA since it's mounted as read-only by Hyper-V. You can modify the system by making a Magisk module. Or directly modify system.img. Ask Google for help.

  • I cannot adb connect localhost:58526

    Make sure developer mode is enabled. If the issue persists, check the IP address of WSA in the setting page and try adb connect ip:5555.

  • Magisk online module list is empty?

    Magisk actively removes online module repositories. You can install modules locally or by adb push module.zip /data/local/tmp and adb shell su -c magisk --install-module /data/local/tmp/module.zip.

  • Can I use the stable or lower version of Magisk 23.0?

    No. Magisk has bugs preventing itself from running on WSA. Magisk 24+ has fixed them. So you must use Magisk 24 or higher version.

  • How can I get rid of Magisk?

    Choose none as the root solution.

  • Github Action script is updated, how can I synchronize it?

    1. In your fork repository, click fetch upstream fetch
    2. Then and click fetch and merge merge

Credits

About

Windows Subsystem for Android™ with Play Store + Magisk + Xposed (Lsposed)

Resources

License

Stars

Watchers

Forks

Packages

No packages published