Flashing Magisk patched images incorrectly on devices like the OnePlus 12R can cause boot issues because these devices use a dual-boot or A/B partition system where the init_boot partition is distinct from the boot partition. Flashing the patched init_boot image to the wrong partition (boot) likely means the actual bootloader/init_boot hasn't been patched properly, causing the phone to get stuck in fastboot mode or not boot normally.
What happened:
- You patched the
init_boot.img (correct image to patch for your device), but flashed it to the boot partition (wrong).
- The
boot partition now has a patched init_boot image, and init_boot has an unpatched or stock image.
- Device can't boot properly because it boots from
init_boot (or expects the patched init_boot img there).
How to fix this:
1. Re-flash the stock factory images for both partitions (boot and init_boot) to unbrick fully:
Since you're stuck in fastboot mode, you can manually flash the stock images again to restore a bootable state.
- Download the full official OnePlus 12R firmware package from the OnePlus site or trusted sources.
- Extract the firmware to get stock
boot.img and init_boot.img.
- Flash the images in the correct partitions:
fastboot flash boot boot.img
fastboot flash init_boot init_boot.img
- This will restore both partitions to stock images.
2. Now, to properly root using Magisk again:
- Patch only the
init_boot.img using Magisk Manager.
- Then flash the patched
init_boot.img ONLY (not boot):
fastboot flash init_boot patched_init_boot.img
- Do not flash patched images to
boot partition.
Summary:
- Get official stock boot and init_boot images.
- Flash stock images to respective partitions:
fastboot flash boot boot.img
fastboot flash init_boot init_boot.img
- Reboot your phone to confirm stock firmware boots.
- Patch only
init_boot.img with Magisk Manager.
- Flash the patched init_boot image back:
fastboot flash init_boot patched_init_boot.img
- Reboot and verify root.
Additional notes:
- Make sure your fastboot binary supports your device properly.
- Sometimes the device uses a
vbmeta partition to verify boot integrity. After flashing patched images, you may need to disable AVB/verity (if applicable):
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
(but do this only if advised by your rooting guide, as improper vbmeta flashing can cause problems)
If you need exact stock firmware or help flashing, let me know your device build number or provide the firmware link, and I can guide more specifically.