High-performance kernel engine for Snapdragon 680/685.
A hand-crafted automated compilation matrix engineered for Qualcomm SM6225 (MSM 5.15) Linux trees. Featuring weekly Sunday cron builds, granular manual tuning, Wild KernelSU integration, and SUSFS stealth capabilities.
/\_/\ ( o.o ) > ^ < TNF.ARCH
The Three Build Workflows
Automated weekly release triggered every Sunday. Builds 4 parallel variants (GKI/CLO × KSU/noksu) with Clang Full LTO, Wild-KSU canary, and Baseband Guard. Deploys GitHub Release & Telegram notification.
Lightweight manual dispatch workflow for quick prototyping from any repository branch. Supports noksu, ksu, or both with Thin LTO and stable Wild-KSU. Direct Telegram document delivery.
Deep tuning compilation engine. Configure compiler optimization (-O2, -O3, -Os), timer frequency (100–1000 Hz), LTO thin/full, and dual toolchain switching (AOSP Clang vs Greenforce).
Shared Infrastructure Core
Standardized flashable ZIP generation for recovery flashing across all workflow output artifacts with auto-detection.
Automated sign-builds, no-dirty flag injection, GKI boot fixup, and defconfig sanitization before compilation begins.
10–20 GB runner swap space allocation to completely prevent Out-Of-Memory (OOM) compiler crashes during heavy LTO linking.
Build Workflows Compared
Side-by-side technical specification of the three CI/CD workflow pipelines.
Supported Devices
Qualcomm Snapdragon 680 / 685 (MSM 5.15) hardware matrix and recommended kernel branches.
| Device Model | Codename | SoC Platform | Recommended Build | Defconfig Target |
|---|---|---|---|---|
| Redmi Note 12 4G | topaz / tapas | Snapdragon 685 | CLO (CAF) | vendor/bengal-perf_defconfig |
| Redmi Note 13 4G | sapphire / sapphiren | Snapdragon 685 | CLO (CAF) | vendor/bengal-perf_defconfig |
| Redmi Pad SE | xun | Snapdragon 680 | GKI (Generic) | gki_defconfig |
GKI vs CLO Image Guide
Standard Google-compliant kernel architecture. Ideal for generic custom ROMs and devices utilizing standardized GKI boot partitions (e.g., Redmi Pad SE).
Qualcomm proprietary optimized tree tailored with chipset-specific driver enhancements for Snapdragon 685 display panels and camera sensors.
Kernel Engine Features
Key architectural improvements, security modules, and performance patches integrated into the kernel.
Full cross-translation unit optimization. Eliminates dead code, inlines hot functions across object boundaries, and maximizes execution throughput.
Modern congestion control algorithms. TCP Westwood is enabled by default to dramatically reduce packet loss and bufferbloat over volatile mobile cellular data connections.
Custom Linux Security Module (LSM) protecting the baseband and modem interfaces against unauthorized tampering and privilege escalation attacks.
Next-generation kernel-based root hook. Paired with SUSFS kernel patches for complete stealth (spoofing uname, magic mount hiding, kallsyms stripping).
Runner swap allocation of up to 20 GB ensuring high memory-pressure builds succeed without clang-ld fatal terminations.
Automated git dirty flag suppression, patch signature validation, and defconfig auto-merging integrated directly into the pre-build pipeline.
YASK — Yet Another Stable Kernel
Automated weekly production release engine generating 4 synchronized builds every Sunday.
YASK Execution Lifecycle
Anykernel3_YASK-WildKSU-AIO-FULL_*.zip.YASK-NEXT) and sends interactive Telegram photo message with changelog.Main Build Workflow
Quick turnaround compilation workflow for rapid kernel testing and debugging.
The Main Build (main.yml) is designed for developer experimentation. It uses Thin LTO for rapid compilation times while retaining performance optimizations, and packages stable Wild-KSU.
Workflow Input Parameters
| Input Variable | Type | Description | Default / Example |
|---|---|---|---|
| kernelSourceURL | string | Git URL of the target kernel source tree | https://github.com/... |
| kernelBranch | string | Target branch to clone and checkout | 14.0, 15.0, staging |
| kernelDevice | string | Target device defconfig name | vendor/bengal-perf_defconfig |
| buildKSU | choice | KSU inclusion mode: noksu, ksu, or both |
ksu |
Advanced Build Engine
Fine-grained compilation parameter matrix for kernel engineers and tuners.
LTOOptimizations requires exact casing in workflow dispatch to properly propagate flags to the build environment.
Advanced Parameter Controls
Select between -O2 (standard balance), -O3 (aggressive vectorization and loop unrolling for peak performance), or -Os (size optimized).
Configure kernel timer interrupt frequency between 100Hz (battery saver), 250Hz, 300Hz (standard), and 1000Hz (ultra-low latency gaming).
Switch between standard Google AOSP Clang (clang-r584948b) and custom optimized Greenforce Clang with latest LLVM backend patches.
Comprehensive Build Matrix
Unified matrix overview of all pipelines and target configurations.
| Workflow | Target Variants | LTO Optimization | Compiler Suite | Output Format |
|---|---|---|---|---|
| YASK (Automated) | GKI-KSU, CLO-KSU, GKI-noksu, CLO-noksu | Full LTO | AOSP Clang r547379 | GitHub Release + Telegram |
| Main Build | Dynamic (noksu / ksu / both) | Thin LTO | AOSP Clang r547379 | Telegram Document ZIP |
| Advanced Build | Dynamic (noksu / ksu / both) | Selectable (Thin/Full) | r584948b / Greenforce | Telegram Document ZIP |
KernelSU & SUSFS Integration
Kernel-level privilege management combined with SUSFS evasion mechanisms.
/proc/kallsyms, and bypass Play Integrity / root detectors seamlessly.
SUSFS Kernel Configuration Flags
# Core SUSFS KernelSU Stealth Configuration
CONFIG_KSU_SUSFS=y
CONFIG_KSU_SUSFS_HAS_MAGIC_MOUNT=y
CONFIG_KSU_SUSFS_SUS_PATH=y
CONFIG_KSU_SUSFS_SUS_MOUNT=y
CONFIG_KSU_SUSFS_SUS_KSTAT=y
CONFIG_KSU_SUSFS_SUS_OVERLAYFS=y
CONFIG_KSU_SUSFS_TRY_UMOUNT=y
CONFIG_KSU_SUSFS_SPOOF_UNAME=y
CONFIG_KSU_SUSFS_HIDE_KSU_SUSFS_SYMBOLS=y
CONFIG_KSU_SUSFS_OPEN_REDIRECT=y
Clang Compiler Toolchains
LLVM/Clang compiler toolchains utilized across the build infrastructure.
| Toolchain Identifier | Branch / Version | Workflows Used | Optimization Notes |
|---|---|---|---|
| clang-r547379 | AOSP Clang 18.0 | YASK Main | Standard Google AOSP production compiler with Full LTO stability. |
| clang-r584948b | AOSP Clang 20.0 | Advanced | Bleeding-edge AOSP toolchain with enhanced loop vectorizer passes. |
| greenforce_clang | Custom LLVM 19+ | Advanced | Optimized with Polly loop optimizer and Cortex-A53 / Kryo 265 tuning. |
GitHub Actions Workflow Inputs
Reference table of all input variables accepted by workflow dispatch triggers.
| Variable Name | Workflows | Allowed Values | Purpose |
|---|---|---|---|
| kernelSourceURL | Main, Advanced | Git URI | Specifies the repository source URL. |
| kernelBranch | Main, Advanced | Branch Name | Specifies the git branch to checkout. |
| kernelDevice | Main, Advanced | Defconfig file | Device defconfig file location. |
| buildKSU | All | noksu, ksu, both | Selects KernelSU packaging mode. |
| LTOOptimizations | Advanced | thin, full | Selects Clang Link-Time Optimization tier. |
| optimizationLevel | Advanced | O2, O3, Os | Compiler optimization pass level. |
| tickRate | Advanced | 100, 250, 300, 1000 | Kernel timer interrupt frequency in Hz. |
| buildToolchains | Advanced | android-tools, custom-tools | Chooses AOSP Clang vs Greenforce Clang. |
Repository Secrets
Required GitHub Actions repository environment secrets for automated deployment.
GitHub Personal Access Token (PAT) with repo write permissions required to push binary releases and draft tags under YASK-NEXT.
Telegram Bot API token provided by BotFather to authenticate release messages and file uploads to the community channel.
Numeric Telegram Chat / Channel ID where build logs, status photos, and compiled flashable ZIP documents are delivered.
Artifacts & Distribution
Flashable AnyKernel3 ZIP naming standards and delivery pipeline channels.
| Workflow Pipeline | Generated ZIP Filename Pattern | Delivery Endpoint |
|---|---|---|
| YASK (Automated) | Anykernel3_YASK-WildKSU-AIO-FULL_*.zip |
GitHub Release Tag + Telegram Photo Preview |
| Main Build | Anykernel3_WildKSU_*.zip |
Telegram Direct Document + GitHub Actions Artifact |
| Advanced Build | Anykernel3_*.zip |
Telegram Direct Document + GitHub Actions Artifact |