This is a patch for WSA to enable WSA (Windows Subsystem for Android) to run on Windows 10.
I have tested it with my Windows 10 22H2. Other versions like Windows 10 21H2 is not tested.
Steps:
- Get WSA appx zip. You can do this by following instructions in https://github.com/LSPosed/MagiskOnWSALocal (You need to "build" this yourself with your local WSL2).
- Get "icu.dll" from Windows 11 22H2. Note that you MUST use icu.dll from Windows 11. The icu.dll from Windows 10 will NOT work. (I have made a copy of these DLLs in the original.dll.win11.22h2 dir. They are digitally signed by Microsoft.)
- Build WsaPatch.dll with source code in this repo.
- Patch icu.dll: add WsaPatch.dll as an import DLL as icu.dll.
- Copy patched icu.dll and WsaPatch.dll to WsaClient dir.
- Patch AppxManifest.xml: Find TargetDeviceFamily node and change the MinVersion attribute to your Windows version.
- Patch AppxManifest.xml: Delete all nodes about "customInstall" extension in AppxManifest.xml.
- Run "Run.bat" to register your WSA appx.
- You should be able to run WSA now.