[Samsung Galaxy A52 4G] axljohn:
This thread is assuming you are on stock ROM and have Android and Samsung drivers on your computer.

Step 0: ALWAYS PREPARE STOCK FIRMWARE AS BACKUP FOR ODIN

...........Download your firmware according to your region

...........Also make sure you are on the latest firmware on your phone

Step 1: Unlocking bootloader [important]

...........step a: Enable Developer options

...........step b: Enable OEM unlocking [important]

...........step c: Power off the phone

...........step d: Connect the USB cable. While connecting, press and hold Vol+ and Vol-

...........step e: Press and hold Vol+ to enter device unlock mode. Press Vol+ again to

...................confirm. This will erase ALL data on your phone (including internal

...................storage) and reboot. You will now be greeted with a yellow warning.

...................This is normal everytime you reboot

...........step f: Complete the setup, enable Developer options again and look for OEM

...................unlocking option. It should be greyed out [important]. If not, just

...................connect to the internet for 10 minutes and it will reappear. Again,

...................it should be greyed out [important]

Step 2: Installing TWRP [mandatory]

...........step a: Download TWRP.tar, VBMetaDisabler.tar, MultiDisabler.zip, and

...................DisableDMVerity.zip. Put the .zips on your sdcard

...........step b: Power off the phone

...........step c: Connect the USB cable. While connecting, press and hold Vol+ and Vol-

...........step d: Press Vol+ once to enter Download mode

...........step e: On Odin, disable Auto Reboot [important], add TWRP.tar on AP, then

...................press Start.

...........step f: Once completed, remove USB.

...........step g: Press and hold Power and Vol- to turn off. IMMEDIATELY plug back USB

...................while pressing and holding Vol+ and Vol-. DO NOT LET THE PHONE RESET

...................OR YOU WILL HAVE TO DO THIS ALL OVER AGAIN

...........step h: When in Download mode again, go to Odin and add VBMetaDisabler.tar on

...................AP then Start.

...........step i: Once completed, remove USB.

...........step j: Press and hold Power and Vol- to turn off. Let go then IMMEDIATELY

...................plug back USB while pressing and holding Vol+ and Power to enter

...................recovery. At this point there will be a red warning. Don't release the

...................buttons until the red warning disappears. The device will reboot twice.

...........step k: Once inside TWRP, press Wipe then Format Data then type yes.

...........step l: Press home, press Install then select MultiDisabler.zip, Add more

...................Zips, select DisableDMVerity.zip, then Swipe to confirm Flash

...........step m: Press home, Reboot, Recovery

Step 3: Installing GSIs [repeatable]

...........step a: Download ChonDoeFlasher.zip, GSI of your choice, KakarotKernel.zip,

...................GApps.zip (optional), and add-ons of your choice. Once you

...................downloaded your GSI (.xz format), extract its .img and rename it to

...................system.img. Put the .img on your sdcard along with the other .zips. It

...................should be all on the same folder

...........step b: On TWRP, Press Wipe, Advanced Wipe, tick Dalvik, Data, and Cache,

...................Swipe to Wipe, then press home

...........step c: Press Install, select ChonDoeFlasher.zip, Add more Zips,

...................KakarotKernel.zip, Add more Zips, GApps.zip (if needed), Add more Zips,

...................your add-ons, then Swipe to Flash

...........step d: Once finished, press home, Wipe, Format Data, type yes

...........step e: Press Reboot System and welcome to the club :cool:

TROUBLEHOOTING

...........If you ever get stuck in a bootloop (Samsung logo appearing again and again) in

...........Step 1 or Step 2, wait until the cycle stops then hold Vol+ and Vol- while

...........connecting USB. On your PC, extract your firmware .zip. It should contain 5 .md5

...........files. On Odin, load these files according to their buttons (AP file in AP

...........button, BL file in BL button, CP file in CP button, CSC file in CSC

...........button). HOME_CSC file isn't needed and just leave the USERDATA button blank.

...........Enable Auto-reboot and press Start. Once it's finished, repeat step f of step 1.

...........If you ever get stuck in a bootloop in Step 3, wait until the cycle stops then

...........press and hold Vol+ and Power while connecting USB. Don't release the buttons

...........until the red warning disappears. It will take you back to TWRP. There, make the

...........necessary steps to fix the problem, which varies from GSI to GSI or from the

............zips that you flashed.

CREDITS ...@neel0210 for KakarotKernel

...........@ShaDisNX255 for OrangeFoxRecovery

...........@RealVelosh for TWRP

...........@redymedan for his YouTube guides

...........@AndroidHowTo for his ChonDoeFlasher.zip

...........Samsung and Google for sources