github

LSPosed / MagiskOnWSA

  • воскресенье, 31 октября 2021 г. в 00:30:41
https://github.com/LSPosed/MagiskOnWSA


Integrate Magisk root and OpenGApps into WSA (Windows Subsystem for Android)



Magisk on WSA

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
  • Fix external storage access of DocumentUI

Usage

  1. Star (if you like) and fork this repo
  2. Go to the Action tab in your forked repo Action Tab
  3. In the left sidebar, click the Magisk workflow. Workflow
  4. Above the list of workflow runs, select Run workflow Run Workflow
  5. Input the download link of Magisk and select the OpenGApps variant (none is no OpenGApps) you like and click Run workflow Run Workflow
  6. Wait the action complete and download the artifact Download
  7. Unzip the artifact and uninstall WSA if you have an official installation or replace the pevious unzipped artifact if you have a manual installation
  8. Enable developer mode on Windows
  9. Open powershell with admin privileges and run Add-AppxPackage -Register .\AppxManifest.xml under the unzipped artifact directory
  10. Launch WSA and enable developer mode, launch the file manager, and wait until the file manager popup
  11. Run adb connect localhost:58526 to connect to WSA and install Magisk app (the one you use to build) and launch it
  12. Fix the environment as Magisk app will prompt and reboot (sometimes it keeps prompting even after environment fix, just ignore it)
  13. Enjoy by installing Riru and LSPosed

Prebuilt Magisk

There's still a bug from Magisk that prevents it from running on WSA. So please don't use the official build yet. The download link of the prebuilt Magisk is: https://raw.githubusercontent.com/LSPosed/MagiskOnWSA/main/magisk.apk and its source codes are on the magisk branch.

Credits