This Repositoriy contains a quick wrap up of rooting a Samsung A20e with Magisk and Odin on a Linux distro.
Unlock OEM-Bootunloader on the mobile. Create folder "src" on laptop.
Download here.
Copy to "src".
Download odin4 from here. Direct download link here. Set executable bit (chmod +c ./odin4). Copy in file tree one level below "src".
Download Stockroms from here.
Copy to "src".
Copy both "AP_A202FXXU5CWF2_CL26555245_QB67141591_REV00_user_low_ship_meta_OS11.tar.md5" and magisk onto mobile phone. Switch from laptop to mobile: first, install magisk from apk. Start Magisk, select install without recovery. Select copied AP-file. When done, magisk created a patched AP-version in the Download-folder on the mobile. Copy patched magisk AP-file from "Download"-Folder to "src".
Shutdown mobile. Remove USB-cable. Enter "Download"-mode: hold both volume-buttons. While holding both buttons, connect mobile to laptop. Download mode starts.
To flash, use the following command on the laptop command line. Note, the AP-File is the patched magisk AP-file, not the stock AP-file, see the "-a"-parameter in the command.
./odin4 -c ./src/a20e/SAMFW.COM_SM-A202F_DBT_A202FXXU5CWF2_fac/CP_A202FXXU5CWF1_CP24415051_CL26555245_QB66592928_REV00_user_low_ship.tar.md5 -a ./src/magisk_patched-27000_K238j.tar -b ./src/SAMFW.COM_SM-A202F_DBT_A202FXXU5CWF2_fac/BL_A202FXXU5CWF2_CL26555245_QB67141591_REV00_user_low_ship.tar.md5 -s ./src/SAMFW.COM_SM-A202F_DBT_A202FXXU5CWF2_fac/CSC_OMC_OXM_A202FOXM5CWF2_CL26555245_QB67141591_REV00_user_low_ship.tar.md5
The device reboots, when mobile turns black press "volume up" and "power on". System should enter recovery mode, execute factory reset with "Wipe data/factory reset".
Afterwards, setup the mobile device. Reinstall magisk (copy from "src" to device, install).
Done, Root access acquired.
When stuck in bootloop or whatsoever, flash stockrom:
Recovery:
./odin4 -c ./src/SAMFW.COM_SM-A202F_DBT_A202FXXU5CWF2_fac/CP_A202FXXU5CWF1_CP24415051_CL26555245_QB66592928_REV00_user_low_ship.tar.md5 -a ./src/SAMFW.COM_SM-A202F_DBT_A202FXXU5CWF2_fac/AP_A202FXXU5CWF2_CL26555245_QB67141591_REV00_user_low_ship_meta_OS11.tar.md5 -b ./src/SAMFW.COM_SM-A202F_DBT_A202FXXU5CWF2_fac/BL_A202FXXU5CWF2_CL26555245_QB67141591_REV00_user_low_ship.tar.md5
Install adb on laptop: sudo apt-get install android-tools-adb
Start shell connection to mobile adb shell
Start root session su
(after execution confirm in magisk on mobile)
Hack stuff :)