00:00:00
linux-5.15 android 13–16 gki + clo
力 · SYSTEM DOSSIER // PUBLIC RELEASE
力 // SYSTEM DOSSIER · V5.15 GPL-3.0 · OPEN SOURCE

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
OS / ENGINETopNotchFreaks CI/CD Kernel Hub
KERNELLinux 5.15 LTS (Android Common MSM 5.15)
SOC TARGETQualcomm Snapdragon 680 (SM6225) / 685 (SM6225-AD)
ROOT HOOKWild KernelSU + SUSFS v1.5+ Systemless Stealth
TOOLCHAINSAOSP Clang r547379 / Clang 20 (r584948b) / Greenforce
STATUS3 Active Pipelines Operational
BASE KERNEL
5.15
LTS Android Common
PIPELINES
03
YASK · Main · Advanced
SOURCE FLAVORS
GKI+CLO
Generic & Qualcomm CAF
ROOT EVASION
SUSFS
Play Integrity Stealth
力 GitHub Actions Workflow Dispatcher
gh cli generator
gh workflow run main.yml -f kernelDevice=vendor/bengal-perf_defconfig -f kernelBranch=14.0 -f buildKSU=ksu

The Three Build Workflows

01 // AUTOMATED CRON ↗
YASK Pipeline

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.

02 // RAPID MANUAL ↗
Main Build

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.

03 // DEEP TUNING ↗
Advanced Build

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

📦 AnyKernel3 Packaging

Standardized flashable ZIP generation for recovery flashing across all workflow output artifacts with auto-detection.

💉 Unified Patch System

Automated sign-builds, no-dirty flag injection, GKI boot fixup, and defconfig sanitization before compilation begins.

🔄 Dynamic Swap Expansion

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.

YASK.yml
Automated
TriggerWeekly Sunday + Manual
Targets4 Parallel Variants
LTO ModeFull LTO
KernelSUWild-KSU (Canary)
SUSFSEnabled (Full Hiding)
Baseband GuardEnabled
ToolchainAOSP Clang r547379
DeliveryGitHub Release + TG
main.yml
Manual Quick
TriggerManual Dispatch
Targetsnoksu / ksu / both
LTO ModeThin LTO
KernelSUWild-KSU (Stable)
SUSFSDisabled / Optional
Baseband GuardDisabled
ToolchainAOSP Clang r547379
DeliveryTelegram Document + Zip
advanced_build.yml
Full Control
TriggerManual Dispatch
Targetsnoksu / ksu / both
LTO ModeThin / Full (Selectable)
Optimization-O2 / -O3 / -Os
Tick Rate100 / 250 / 300 / 1000 Hz
Toolchainr584948b / Greenforce
Swap Allocated20 GB
DeliveryTelegram Document + Zip
ℹ
Recommendation Guide: For everyday daily-driver stability, flash the latest automated YASK release. For testing custom branches or new commits, run Main Build. For maximum kernel tuning and overclock/tick-rate experimentation, use Advanced Build.

Supported Devices

Qualcomm Snapdragon 680 / 685 (MSM 5.15) hardware matrix and recommended kernel branches.

ℹ
SoC Architecture: Qualcomm Snapdragon 680 (SM6225) & Snapdragon 685 (SM6225-AD) running Linux LTS kernel version 5.15 on Android 13, 14, 15, and 16.
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

GKI (Generic Kernel Image)

Standard Google-compliant kernel architecture. Ideal for generic custom ROMs and devices utilizing standardized GKI boot partitions (e.g., Redmi Pad SE).

CLO (Qualcomm CodeLinaro)

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.

⚡ Clang LTO (Link-Time Optimization)

Full cross-translation unit optimization. Eliminates dead code, inlines hot functions across object boundaries, and maximizes execution throughput.

Thin LTO Full LTO
🌐 TCP BBR + Westwood

Modern congestion control algorithms. TCP Westwood is enabled by default to dramatically reduce packet loss and bufferbloat over volatile mobile cellular data connections.

BBR v1 Westwood Default
🛡️ Baseband Guard (BBG)

Custom Linux Security Module (LSM) protecting the baseband and modem interfaces against unauthorized tampering and privilege escalation attacks.

LSM Hook Modem Isolation
🔑 Wild KernelSU + SUSFS

Next-generation kernel-based root hook. Paired with SUSFS kernel patches for complete stealth (spoofing uname, magic mount hiding, kallsyms stripping).

SUSFS v1.5+ Play Integrity Pass
🔄 Dynamic Swap & ZRAM

Runner swap allocation of up to 20 GB ensuring high memory-pressure builds succeed without clang-ld fatal terminations.

20GB Swap ZRAM Support
💉 Automated Tree Fixups

Automated git dirty flag suppression, patch signature validation, and defconfig auto-merging integrated directly into the pre-build pipeline.

Auto Patch No-Dirty

YASK — Yet Another Stable Kernel

Automated weekly production release engine generating 4 synchronized builds every Sunday.

✓
Recommended for End Users: YASK produces tested, production-grade flashable zip bundles with Full LTO and latest upstream security patches.

YASK Execution Lifecycle

01. Automated Sunday Cron Trigger
Fires automatically every Sunday via GitHub Actions schedule cron (or on-demand manual trigger).
02. 4-Variant Parallel Build Matrix
Matrix compiles 4 simultaneous variants: GKI with KSU, GKI non-KSU, CLO with KSU, CLO non-KSU using AOSP Clang r547379.
03. Full LTO & SUSFS Integration
Applies Wild-KSU canary source, integrates SUSFS patch tree, and compiles with Full Link-Time Optimization.
04. AnyKernel3 All-In-One ZIP Bundling
Packages binaries into Anykernel3_YASK-WildKSU-AIO-FULL_*.zip.
05. Dual Release Deployment
Publishes draft/release to GitHub Releases tag (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.

⚠
Case Sensitivity Notice: The parameter LTOOptimizations requires exact casing in workflow dispatch to properly propagate flags to the build environment.

Advanced Parameter Controls

Compiler Optimization Level

Select between -O2 (standard balance), -O3 (aggressive vectorization and loop unrolling for peak performance), or -Os (size optimized).

Timer Tick Frequency (HZ)

Configure kernel timer interrupt frequency between 100Hz (battery saver), 250Hz, 300Hz (standard), and 1000Hz (ultra-low latency gaming).

Toolchain Selector

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.

ℹ
Stealth Architecture: SUSFS patches intercept sys_call tables and VFS layers to hide mounted overlayfs directories, strip KernelSU symbols from /proc/kallsyms, and bypass Play Integrity / root detectors seamlessly.

SUSFS Kernel Configuration Flags

根 kconfig // susfs_core_flags.conf
# 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.

GH_TOKEN YASK Scope

GitHub Personal Access Token (PAT) with repo write permissions required to push binary releases and draft tags under YASK-NEXT.

TELEGRAM_BOT_TOKEN Global Scope

Telegram Bot API token provided by BotFather to authenticate release messages and file uploads to the community channel.

TELEGRAM_USER_ID Global Scope

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
COPIED TO CLIPBOARD