A highly optimized and customizable kernel build system for Redmi 12C / Poco C55 (codename: earth), based on LineageOS 23.2 (Android 15) source.
This repository features automated multi-variant building, integrating cutting-edge root and security solutions like KernelSU-Next, SukiSU-Ultra, and SUSFS.
- Multi-Variant Builds: Compile vanilla, KernelSU-Next, SukiSU-Ultra, or SUSFS-patched variants with a single command.
- SUSFS Integration: Complete automated patching of KernelSU-Next and SukiSU-Ultra with SUSFS v1.5.5 (cloaking paths, spoofing uname, try-umount, open-redirect, hiding symbols, etc.).
- AnyKernel3 Ramdisk Modding: Automatically packages the compiled kernel
Image.gz-dtbinto flashable ZIPs tailored forearthdevices. - OS-Aware Build Toolchain: Built-in support for both Linux (Ubuntu) and macOS (Darwin) build environments.
- CI/CD Pipeline: Fully configured GitHub Actions workflow for automated matrix building and publication of GitHub releases.
| Variant | Root / Hiding Solution | Build Command | Description |
|---|---|---|---|
| Vanilla | None | ./build.sh vanilla |
Clean stock-like build (No Root / systemless mods) |
| KSU-Next | KernelSU-Next | ./build.sh ksu-next |
KernelSU-Next root |
| SukiSU | SukiSU-Ultra | ./build.sh sukisu |
SukiSU-Ultra root |
| KSU-Next + SUSFS | KernelSU-Next + SUSFS v1.5.5 | ./build.sh ksu-next+susfs |
KernelSU-Next with full SUSFS cloaking |
| SukiSU + SUSFS | SukiSU-Ultra + SUSFS v1.5.5 | ./build.sh sukisu-ultra+susfs |
SukiSU-Ultra with full SUSFS cloaking |
If you want to use the pre-compiled kernel directly on your device, download the latest flashable ZIPs from the releases section:
👉 Download Latest Pre-built ZIPs
Each release contains pre-compiled flashable ZIP files for all supported variants. Once downloaded, follow the Flash Instructions.
If you prefer to compile and build your own custom version of the kernel instead, follow the guidelines below.
Ensure you have Homebrew installed, then run:
brew install llvm make zipThe build script automatically detects macOS and locates the Homebrew LLVM/Clang toolchain.
Install the required build dependencies:
sudo apt-get update
sudo apt-get install -y clang-17 lld-17 llvm-17 gcc-aarch64-linux-gnu bc flex bison make libssl-dev libelf-dev libyaml-dev zip unzip python3Since this repository relies on submodules for KernelSU-Next and SukiSU-Ultra, ensure you clone recursively:
git clone --recursive <repository-url>
# Or if already cloned:
git submodule update --init --recursiveTo compile the kernel and generate flashable ZIPs, execute build.sh:
# Build ALL variants
./build.sh
# Build a specific variant (e.g. KernelSU-Next with SUSFS)
./build.sh ksu-next+susfs
# Build multiple specific variants
./build.sh vanilla ksu-next+susfsAll build outputs (flashable ZIPs) are saved in the releases/ directory.
The build system manages the kernel source by swapping the KernelSU directory link to point to either the KernelSU-Next or SukiSU submodules depending on the target variant.
- KernelSU-Next: Linked to the
KernelSU-Next/directory (checkout:v3.2.0-legacyfor builds). - SukiSU-Ultra: Linked to the
SukiSU/directory (checkout:mainorbuiltindepending on the variant).
The build script takes care of checking out the correct commits/branches, applying the necessary patches (for SUSFS variants), and restoring the repository state after compilation.
The repository includes a GitHub Actions configuration located in .github/workflows/build.yml.bak (can be renamed to .github/workflows/build.yml to activate).
- Matrix Build: Builds all 5 variants in parallel.
- Auto-Release: When pushing to the main branch (
lineage-23.2), it automatically packages, tags, and drafts a GitHub Release containing all five variant ZIPs and dynamically generated release notes.
- Reboot your device into LineageOS Recovery:
adb reboot recovery
- Navigate to Apply Update > Apply from ADB.
- Connect your phone to your PC/Mac and run:
adb sideload KernelSU-Next-Earth.zip
- Note: You will encounter a "Signature verification failed" warning. This is completely normal for unofficial zips. Select Yes / Continue to proceed with the installation.
- Reboot to the system.
- Reboot your device into your custom recovery.
- Locate the downloaded
KernelSU-Next-Earth.zipfile. - Swipe to flash.
- Reboot to the system.