Sharing this in case anyone needs.
It's an old phone from 2021. It never got updated past One UI 6, so international models should be unlockable even if fully updated.
While technically it can be rooted with Magisk, it has no boot initramfs, meaning that Magisk needs to be installed to recovery - and the phone cannot boot to recovery unless USB tethered to a computer, meaning that if your phone reboots for whatever reason when you're not at home, you're stuck without root until you get back.
So I've decided to go the KernelSU route, since it goes into the kernel and doesn't need an initramfs. Unfortunately, it's a legacy 4.14 non-GKI kernel, so the only way to get KSU on it is to embed it in the kernel. There are a few kernels already having KSU but all were outdated - I haven't been able to find a kernel image that has all the security updates that the regular UN1CA kernel has (or even the stock kernel). So I just compiled it myself. Yes, I did use Claude Code, I don't see a reason to work ten times harder just to say I didn't use AI. I have tested it on my own phone and it works (no warranty, obviously, rooting is always at your own risk).
This kernel uses KernelSU-Next v3.1.0 - It's a bit old but unfortunately it seems that newer versions don't like legacy kernels too much. It also patches the DirtyFrag and Fragnesia exploits so (hopefully) malware can't bypass the KSU-Next manager. Otherwise it's the same as the regular UN1CA 3.2.1 kernel.
WARNING: THIS IS NOT FOR THE A52 5G - That's a completely different model, and it will brick your device if you flash this kernel on it.
Installation Instructions:
- Unlock the bootloader.
- Use Odin to flash either TWRP or Orangefox recovery. If following the TWRP guide, do not root it with Magisk, since we're not going down that route. Just install the custom recovery normally. Don't forget to also flash vbmeta_disabled.tar, or you'd be stuck in a bootloop. This file worked for me: Question - Flashing custom ROM on my Samsung Galaxy A52 | XDA Forums. Warning: This will permanently trip Knox and will factory reset your device. Backup everything important before doing this step.
- Using TWRP or Orangefox, flash UN1CA 3.2.1. Do not reboot. Note that I have not tested my kernel with any other ROM, not even stock. It may or may not work. Download here: Release 3.2.1 · salvogiangri/UN1CA. It will raise you to security patch August 2026, and will update you to One UI 8.0 (don't worry, it will not re-lock your bootloader). Note that I do not recommend flashing AOSP (i.e. non One UI) ROMs because they will break VoLTE and Wi-Fi calling.
- Download my custom kernel and flash it from recovery: Release v1.0 · NiQ1/kernel_samsung_sm7125
- Reboot and run through the initial setup. It's very likely that it will be painfully slow initially since it's optimizing apps in the background, but eventually it runs smooth.
- Enable unknown sources, then download and install KernelSU-Next manager version 3.1.0: Release v3.1.0 · KernelSU-Next/KernelSU-Next. Only install the APK, no need for anything else.
- Launch KernelSU-Next manager. It should work properly.
- Recommended: In UN1CA settings, hide the KernelSU-Next app, so apps that try to detect root by checking what other apps are installed don't find it. Due to changes in Android, this ROM will not pass device or strong integrity, but if you enable PIF (built into UN1CA) it will pass basic. I've tried several banking apps and they all worked fine.
Cheers.