: This is a non-negotiable first step; without it, flashing a modified boot image will result in a security error.
Open the Magisk App and select -> Select and Patch a File .
Navigate to your file and start the process. Magisk will output a file typically named magisk_patched_*.tar or *.img in your Download folder.
: Ensure the firmware version exactly matches A035FXXU1AVF5
Transfer the patched file back to your PC. Use Odin3 to flash the file. Place the patched AP file in the AP slot.