[Samsung Galaxy A53 5G] mytja:
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. This can't be reverted in any way, so think twice before flashing it.

Bugs should be reported here on XDA. Please as clear as possible and make sure you provide detailed info when reporting bugs.

How to install?

Download Odin (use Odin3 for Windows and Odin4 for Linux) and Samsung's USB drivers (if Windows doesn't detect your device by itself).

Make sure your bootloader is unlocked.

Go into download mode by running adb reboot download or pressing volume up and volume down buttons simultaneously whilst the device is booting and having USB-C charger plugged into the phone.

Download the file, as is in this XDA thread, or through a mirror or through a GitHub mirror.

Put the file into AP and flash it. If you're on Linux, AP flash can be achieved with -a flag on odin4.

Boot into recovery by running adb reboot recovery or pressing volume up and power button simultaneously whilst the device is booting and having USB-C charger plugged in.

After installation, please run multidisabler inside TWRP terminal so as to disable Samsung's recovery reverting. This should not factory reset your device.

How to decrypt/encrypt internal storage?

By default, all Samsung devices have encrypted internal storage. This is present for security reasons, however this means that TWRP cannot access internal storage and therefore shows 0MB as the size of internal storage.

This can be mitigated by running decrypt or encrypt anytime from TWRP terminal, however note that this WILL format entire internal storage. Decrypting will also make your internal storage accessible to anybody who can (physically) take a hold of your phone.

TWRP can always access SD card if you have one and perhaps even USB OTG, however this hasn't been tested yet.

This TWRP is universal and should work for both A536B and A536E, although it's only tested on A536B. Patched vbmeta is already included. This recovery HAS working MTP.

Bugs:

You tell!

Sources:

A53 kernel: https://github.com/mytja/android_kernel_samsung_a53x/tree/twrp-12.1

TWRP device tree: https://github.com/mytja/android_device_samsung_a53x

Changelog:

06. 07. 2024 (release 001) (dd. mm. yyyy)

Initial release

Credits

As listed in the repository:

Gabriel for his initial device tree and ExynosUnbound kernel, upon which this device tree is based,

mohammad.afaneh92 for his device tree and kernel, upon which Gabriel's device tree is based,

Salvo Giangreco for his device tree for A54 and kernel for A54, from which I took some patches and inspiration,

and everyone from this XDA thread, which was super useful whilst updating this device tree.