This guide covers installing the released kernel binary into an unpacked WSA (Windows Subsystem for Android) package.
- Windows 11 with WSA installed and previously working at least once.
- An unpacked WSA package directory that contains
AppxManifest.xmlandTools\kernel. If WSA was installed from the Microsoft Store, you need to unpack the appx with a tool likeMagiskOnWSALocalor use a community WSA build that ships unpacked. - PowerShell running as Administrator.
- Optional: Memory Integrity (HVCI) turned off on the Windows host for first install. See FAQ.md for steps and rationale.
Open the latest release and download the kernel asset.
Get-FileHash "C:\Path\To\Downloaded\kernel" -Algorithm SHA256The value must match the one in the release notes.
WsaClient.exe /shutdownYou can also turn WSA off from the Windows Subsystem for Android settings panel.
Replace C:\Path\To\WSA with the directory that contains your unpacked WSA AppxManifest.xml.
$WsaDir = "C:\Path\To\WSA"
Copy-Item -Force "$WsaDir\Tools\kernel" "$WsaDir\Tools\kernel.backup"$NewKernel = "C:\Path\To\Downloaded\kernel"
Copy-Item -Force $NewKernel "$WsaDir\Tools\kernel"Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register "$WsaDir\AppxManifest.xml"adb connect 127.0.0.1:58526
adb shell uname -aExpected output contains:
WSA-ReSukiSU
In ReSukiSU Manager the KPM Version field should read:
Supported (ReSukiSU-x86_64-KPM-loader/0.21)
Or from adb:
adb shell su -c "ksud kpm version"Expected for the published v0.23 binary:
ReSukiSU-x86_64-KPM-loader/0.21
For a local main source build, use the kpm_loader= value in the sidecar manifest.
For full runtime diagnostics:
adb shell su -c "ksud kpm doctor --json"This reports loader reachability, loaded module count, safe mode state and /data/adb/kpm directory hardening.
If WSA does not boot or behaves badly:
WsaClient.exe /shutdown
$WsaDir = "C:\Path\To\WSA"
Copy-Item -Force "$WsaDir\Tools\kernel.backup" "$WsaDir\Tools\kernel"
Add-AppxPackage -ForceApplicationShutdown -ForceUpdateFromAnyVersion -Register "$WsaDir\AppxManifest.xml"ReSukiSU Manager ships a libksud.so that needs an x86_64 path for the kpm subcommand. The shipped Manager already covers this on most installs. Before publishing or pinning a Manager APK for WSA x86_64, verify it from the repo root:
KernelSU/scripts/check-manager-kpm-x86.sh /path/to/ReSukiSU-Manager.apkIf after a Manager update the KPM Version field shows Unsupported, see FAQ.md.
WsaClient.exe is not recognized. Make sure WSA is installed and the WSA Tools directory is onPATH, or call it from its install location.Add-AppxPackagefails with sideload disabled. Enable Developer Mode in Windows settings.- WSA boots but
adbcannot connect. Runadb kill-serverandadb start-server, then reconnect. - KPM shows
Unsupported. Disable Memory Integrity on the host, reboot, then verify again.