/sm-a566b

Kernel for Samsung Galaxy A56 (SM-A566B)

Primary LanguageCGNU General Public License v3.0GPL-3.0

📌 Notice

I’m taking a break for now until then, this project will be temporarily archived.


Samsung Galaxy A56 (SM‑A566B)

⚠️ Toolchains are not included in this repository. ⚠️

To keep the Git history lean and avoid limits, download the required toolchains yourself and drop them in prebuilts/.

Warning about upcoming One UI 8.0

Please do not update to One UI 8.0 when it's released by Samsung.

Samsung has removed the option to unlock the bootloader in this version.

More details: XDA Forum Thread

If you're into rooting, custom ROMs, or device modding, it's highly recommended to stay on One UI 7 for now.

Introduction

This repository contains everything needed to build a custom kernel for the Samsung Galaxy A56 (SM‑A566B). It is based on kernel source A566BXXS5AYFB

My device is running just fine with A566BXXS6AYGE firmware.

Patch Kernel

chmod +x setup_next.sh
./setup_next.sh # Install KernelSU-Next
chmod +x setup_susfs.sh
./setup_susfs.sh # Install SUSFS ඞ
chmod +x setup_scope_min_manual_hook.sh
./setup_scope_min_manual_hook.sh # Install Scope-Minimized Manual Hooks 

Build Kernel

chmod +x build_script.sh
./build_script.sh
chmod +x create_boot-img.sh
./create_boot-img.sh # Create boot.img & boot.img.tar (Need stock boot.img in magiskboot)

Download from Samsung/Google

Download sources and toolchains from:

repo init -u https://android.googlesource.com/kernel/manifest -b common-android15-6.6
repo sync

you may need to adjust the paths in build_script.sh

Disclaimer

The author(s) accept no liability for damages, data loss or warranty voids.

Flashing custom images trigger Knox permanently.

Prebuilt Releases

If you just want a working kernel including KernelSU Next and susfs, download the latest release:

🚨 There is confirmation that the kernel is compatible with the SM-A566E, but compatibility is not guaranteed.


Community / Support

For discussions and testing builds, join the Telegram group:

👉 Join Lucius Kernel Group

Credits

Special thanks to the following projects and contributors:


Enjoy! 🚀