: This is the most critical step. Rooting is impossible if the bootloader is locked.
: Modern Samsung devices typically use a patched boot.img or recovery.img rather than a single "root file." Download the exact U4 firmware for the samsung-a013g-u4-android-10-root-file
: Explicitly state that rooting will trip the Knox security flag, permanently disabling features like Samsung Pay and Secure Folder. : This is the most critical step
: Rooting requires a factory reset, which wipes all user data. samsung-a013g-u4-android-10-root-file
Transfer the patched file back to a PC and flash it via Odin in the AP slot.