Transfer to your phone the boot_a.bin or boot_b.bin that you backed up in the COMPORT# folder. Download and install Magisk Manager. Open Magisk Manager and beside Magisk hit "Install" then "Select and Patch a File" and select the boot_a.bin or boot_b.bin.
So first off, verify if your device is A/B Partition or not using this guide: . If it is indeed A/B, then proceeded with the steps to flash the stock boot.img. However, if it turns out to be A-only, then refer to the steps to flash the stock recovery.img file. Flash Stock Boot.img via TWRP [For A/B Devices] Download the stock boot.img for your
This will definetly backup the boot code itself and nothing else: [root@host]# dd if=/dev/sda of=/tmp/mbr.img_backup bs=446 count=1. Next you want to wipe the MBR clean including partition table which you don't wish to save together with bootcode signature: [root@host]# dd if=/dev/zero of=/dev/sda bs=512 count=1. And now you restore the boot code:
1) Extract Boot image file from boot.img.lz4 file and rename to .tar. First, download the desired Samsung Firmware (Stock ROM) for your device model. Extract the firmware zip file on your computer within a folder. (The boot image file should be named as AP_xxx) The firmware will contain .lz4 extension. You may see something like boot.img.lz4
STEP 1: Enable USB Debugging and OEM Unlock. STEP 2: Unlock Bootloader Without Fastboot Mode. STEP 3: Download MTK Bypass Package. STEP 4: Install Python. STEP 5: Install MTK USB Drivers. STEP 6: Disable MTK Protection. STEP 7: Boot Device to BROM Mode. STEP 8A: Root MediaTek Via TWRP Tweak.
Process the full OTA or factory image. PixelFlasher will extract boot.img (or init_boot.img for Pixel 7 or newer devices) file from the image and populate it in the list below (5). Select boot.img (or init_boot.img for Pixel 7 or newer devices) from the list, the selected file can be patched (6), or flashed (10).
NMr2.
backup boot img without root