[Samsung Galaxy A52s 5G] RisenID:
#include <std_disclaimer.h>

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about doing this to your device
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Disclaimer:

I am not responsible about any damage of any kind that this kernel may cause.

You are allowed to use this kernel in your project with proper credits and links to this thread or source code.

You are allowed to base your projects on my sources by giving proper credits to the original authors.

Bugs can be reported here in XDA or via the community's Telegram Group. Please be more clear as possible and make sure you provide detailed info when reporting bugs.

What's KernelSU?

KernelSU is a root solution for Android GKI devices, it works in kernel mode and grant root permission to userspace application directly in kernel space.

The main feature of KernelSU is it is Kernel-based. KernelSU works in kernel mode, so it can provide kernel interface we never had before. For example, we can add hardware breakpoint to any process in kernel mode; We can access physical memory of any process without anybody being aware of; We can intercept any syscall in kernel space; etc.

And also, KernelSU provides a module system via overlayfs, which allows you to load your custom plugin into system. It also provides a mechanism to modify files in /system partition.

Read more about KernelSU here: https://kernelsu.org/

Features

Built from A528BXXU5FWK4 kernel source code

Linux 5.4.233, based on LA.UM.9.14.r1-22000-LAHAINA.QSSI12.0

Pure stock kernel, only minor changes were applied

Built with Clang 11.0.2 (r383902b1) Toolchain

Samsung Knox features disabled (RKP, FIVE, Defex etc.)

(Almost) All of samsung debug killed

Switchable SELinux status

Camera bootloader lock fix included

Supported devices

All the Galaxy A52s 5G device's variants are supported. This includes:

SM-A528B (a52sxqxx)

SM-A528B (a52sxqzt)

SM-A528N (a52sxqks)

How to install?

Download and install a custom recovery (TWRP/OrangeFox);

If you do have Magisk installed, please uninstall it via the Magisk Manager app;

Download the KernelSU flashable zip in Post #2, make sure to download the correct version depending your currently installed ROM;

Reboot to recovery: to do so power off your device, connect it to a computer via an USB cable and hold both volume up and power on buttons;

If you desire to restore back your currently installed kernel, make a backup of the following partitions: Boot, DTBO, Vendor Boot, Vendor Image;

Flash the KernelSU zip you previously downloaded, reboot to system if the install went fine;

Install the KernelSU Manager app;

Source code

Kernel source code: https://github.com/RisenID/kernel_samsung_ascendia_sm7325

KernelSU source code: https://github.com/tiann/KernelSU

Credits

Samsung OSRC for providing the kernel source code

KernelSU Team for their awesome work

@BlackMesa123 for all of his work on his kernel that is a base for this project

@Simon1511 for providing the required kernel patches for AOSP

@DavidArsene for his camera fix

The A52s Testers Team for testing out the kernel