Skip to main content
A close view of the logo mark, white squares on a dark brown field
A close view of the logo mark, white squares on a dark brown field

Building a Kernel With KernelSU

When the manager reports a device as unsupported, the remaining KernelSU path is compiling the kernel with KernelSU built in. The project will not provide a boot image, and the documentation says so directly: users in that situation compile the kernel themselves.

The build landscape has changed. The old guide for building an Android GKI kernel with KernelSU built in is archived reference, no longer maintained, and the current guidance points to building the LKM with the DDK, the driver development kit approach the project now documents. The how to build page in the documentation is the entry point, and it should be read in full before any toolchain is installed. KernelSU APK

What Building Involves

Building means obtaining the kernel source for the exact device, configuring it with the project support, compiling the module or the kernel image, and testing the result with the stock boot image backup ready. It needs a Linux build environment, familiarity with kernel configuration, and patience: a first build that boots cleanly is an achievement, not an expectation. The integration documentation for non GKI devices covers the deeper integration work for kernels outside the GKI format. non GKI devices

Deciding Whether to Build

Build only when the device matters enough to justify the effort and the risk, and when no supported root path covers it. For most people, the honest answer to an unsupported report is to stay unrooted or to use a root solution that supports the device. Building is for developers and experienced users, not a workaround for a casual install. checking kernel support

Frequently Asked Questions

How do I build it into my kernel?

Follow the how to build documentation, which now points to building the LKM with the DDK. The old GKI build guide is archived and no longer maintained.

Will the project provide a boot image for my phone?

No. The project states it will not and will never provide boot image files for unsupported devices.

Is building suitable for beginners?

No. It needs a Linux build environment and kernel configuration experience, with the stock boot image backup ready throughout.