LKM mode
LKM (loadable kernel module) is how XenonSU roots a device without replacing the kernel. A
patched init_boot boots normally and ksud loads kernelsu.ko at late-load time.
How the module is chosen
ksud reads the running kernel's KMI and picks the matching prebuilt module:
Those eight .ko files are embedded inside the ksud binary at build time. You can list what a
given build carries:
"Failed to load ..._kernelsu.ko"
If the install screen stops with:
the ksud binary in the APK was built without the modules embedded. That happens when the source
tree was cloned without the prebuilt .ko files (userspace/ksud/bin/.gitignore excludes
**/*.ko) and the binary was then packed. Verify with: