The most common way to root this phone is by patching the stock file using
There is currently specifically for the A5 2020 on the TWRP.me website (files listed for "a5" are typically for the Samsung Galaxy A5).
Before attempting to flash TWRP, you must complete these essential steps: Unlock the Bootloader
Key flags in BoardConfig.mk :
