[Samsung Galaxy A52s 5G] BlackMesa123:
Team Win Recovery Project

#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 custom binary may cause.

Please pay attention to this post & related ones before proceeding and follow the guide correctly. I will not offer support for any issues that have been already stated.

Your Knox Warranty Bit will be blown once you flash this or others custom binaries, preventing you to use Knox features. It can't be resetted in any way, so think twice before flashing this.

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 TWRP?

Oh come on, you know what it is - don't try to fool me!

In case you're serious, though...

Team Win Recovery Project is a custom recovery for Android devices.

It allows you to back up and restore your data, flash custom ROMs to your device, repair broken file systems, root your device and more.

Read more about TWRP here: https://twrp.me/about/

How do I flash and set it up correctly?

Please notice that the following guide is meant for full stock devices, if you've already rooted your device you can skip it and flash directly the recovery without any extra steps.

Before starting, make sure to backup all your data and important files stored in your phone, since this procedure will format your data partition.

Download Odin3, Samsung's Android USB Drivers, the latest TWRP's tar and a disabled vbmeta image.

Make sure your phone's bootloader is unlocked, follow the guide below in case it isn't:

Spoiler content hidden.

Connect your phone to your PC and boot in Download Mode (power off your device and hold both volume up and volume down buttons).

Open Odin3, select the TWRP tar by clicking the "AP" button and the patched vbmeta tar by clicking "USERDATA", then press the Start button.

Reboot your phone in recovery mode: while it still plugged in your PC, hold both the power and volume up buttons.

Once TWRP has booted you need to format again your data partition in order to be able to boot in system again. To do so touch Wipe>Format Data and follow the instructions in screen.

Bugs:

Decryption will only work if no password/PIN/pattern is set in Android (One UI 4.x/5.x).

Download:

Galaxy A52s 5G (a52sxq):

twrp.me

Bootloader/Modem collection:

GitHub

Sources:

Kernel source code: https://github.com/BlackMesa123/android_kernel_samsung_sm7325/tree/sep-15/twrp-12.1

Device tree: https://github.com/TeamWin/android_device_samsung_a52sxq

Changelog:

Check Post #2.

A52s 5G Community Telegram Groups:

General

Development

Credits:

Samsung for the kernel source code

TeamWin for their awesome recovery

@Captain_Throwback for his help and troubleshooting

@ShaDisNX255 & @ronardnx for testing out the recovery