# Generic GKI Devices


This page covers the BakaSU installation process for generic GKI devices.

Before starting, identify the device kernel version and KMI, then read the [general installation guide](https://bakasu.org/guide/install).

## LKM Installation

After installing BakaSU Manager, tap `Not Installed` to open the installation screen, then select **LKM patching/installation**.

Select the `boot`, `init_boot`, or `vendor_boot` image matching the installed firmware. The Manager selects the LKM file from the system KMI, patches the image, and writes `KernelSU_patched_*.img` to the download directory.

::: info Tips
Devices that require `vendor_boot` patching are quite rare, so normally only the `init_boot` file needs to be patched.
:::

Flash the patched image to its corresponding partition, reboot, and open the Manager again to confirm the installation status.

::: info Tip
We also provide an online tool for patching `init_boot`, `boot`, or `vendor_boot`.
:::

[Online LKM patching](https://bakasu.org/guide/install/gki#lkm)

::: warning
The image and target partition must match. Back up important data and prepare stock images and recovery tools before flashing.
:::

## GKI Installation

See the [Google documentation](https://source.android.com/docs/setup/build/building-kernels) and the [BakaSU build guide](https://bakasu.org/guide/build#introduction) for details.
