Transfer the patched file back to a PC and flash it via in the AP slot.
Samsung galaxy A10 : How to Root using Magisk and Patch Boot Transfer the patched file back to a PC
Use the on the phone to patch the AP file from that firmware. Transfer the patched file back to a PC