Skip to content

About

High-Efficiency & Battery-Oriented Custom Kernel (GKI 2.0 / KernelSU-Next) for Realme P3 5G (RMX5079 / dongfeng)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZeroByte Kernel for Realme P3 5G (dongfeng)

Device SoC Kernel Toolchain License

High-efficiency, lightweight, and battery-oriented custom GKI 2.0 kernel specifically built for Realme P3 5G (RMX5079, codename: dongfeng / SM6650).


📱 Device Specifications

Attribute Specification
Device Realme P3 5G
Model RMX5079
Codename dongfeng / volcano
SoC Qualcomm Snapdragon 6 Gen 4 (SM6650, 4nm)
Kernel Version Linux 6.1.y GKI 2.0 (android14-6.1)
Toolchain Google AOSP Clang r487747c + ThinLTO
Target OS Realme UI 5.0 / 6.0 (Android 14 / 15) & AOSP Custom ROMs
Format AnyKernel3 Flashable ZIP (Custom ASCII Banner)

⚡ Key Highlights

  • Power Efficiency: Tickless idle (CONFIG_NO_HZ_IDLE=y) and tuned schedutil governor for optimal battery standby and deep sleep.
  • Zero-Overhead Memory: Default LZ4 ZRAM compression for rapid memory swapping with near-zero CPU overhead.
  • KMI Safe (Hardware Protection): 100% GKI 2.0 ABI compliance. Wi-Fi (qca_cld3_wlan.ko) and Audio (snd-soc-*.ko) OEM vendor modules load without CRC symbol mismatch.
  • Debloated Tracing: Stripped heavy debugging routines (SLUB_DEBUG, DEBUG_INFO_BTF, DYNAMIC_DEBUG_CORE, PM_DEBUG) to minimize RAM footprint.
  • Network Performance: TCP BBR congestion control enabled by default for lower packet latency and stable throughput.
  • ThinLTO: Link-Time Optimization enabled for optimized binary size and cache utilization.
  • Modular Configuration: Battery and performance tweaks codified cleanly in configs/zerobyte_battery.config.

📦 Kernel Variants

Every build automatically generates flashable ZIP packages available under Releases:

Variant Purpose Root Compatibility
Original Clean GKI kernel for everyday stability Play Integrity & Banking ready (Supports Magisk / APatch separately)
KernelSU Integrated kernel-level root solution Native KernelSU-Next driver built-in (Install KernelSU Manager app)

🚀 Installation Guide

Important

Always backup your stock boot partition in recovery before flashing any custom kernel!

Flashing via Custom Recovery (TWRP / OrangeFox)

  1. Download your preferred kernel variant (Original or KernelSU) from Releases.
  2. Boot into recovery (TWRP / OrangeFox).
  3. Select Install and choose the downloaded .zip file.
  4. Swipe to confirm flash (AnyKernel3 will display the ZeroByte ASCII banner).
  5. Reboot System (Wipe cache/dalvik is optional).

Alternatively, you can flash the .zip directly using KernelSU Manager or Franco Kernel Manager.


💻 Local Compilation (build.sh)

You can compile ZeroByte Kernel locally on Linux / WSL with a single command:

# Clone the repository
git clone https://github.com/zacxyonly/zerobyte-kernel.git
cd zerobyte-kernel

# Build KernelSU-Next variant (automatically handles toolchain & kernel tree):
./build.sh --variant ksu

# Build Original (clean / non-root) variant:
./build.sh --variant original

# Build both variants:
./build.sh --variant all

Compiled flashable .zip packages and SHA256 checksums will be generated in out/.


🛠️ Automated CI/CD Build

Builds are also fully automated via GitHub Actions:

  1. Navigate to Actions.
  2. Select Build ZeroByte Kernel for Realme P3 5G (RMX5079 / dongfeng).
  3. Click Run workflow (select variant and ThinLTO option).
  4. Flashable ZIP packages and SHA256 checksums will be published to Releases.

🤝 Credits


Maintained with ❤️ by @zacxyonly

About

High-Efficiency & Battery-Oriented Custom Kernel (GKI 2.0 / KernelSU-Next) for Realme P3 5G (RMX5079 / dongfeng)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages