Home > Xiaomi

How to Root Redmi Note 12 Pro/Pro+ 5G via Magisk

In this guide, we will show you the steps to root your Redmi Note 12 Pro/Pro+ 5G via Magisk. The Notes series from the Chinese OEM has always been known to be among the most active players in custom development. This time around, the twelfth iteration beholds the MediaTek chipset, and there are bound to be a few restrictions in the modding community.

However, if there’s one this that is least likely to be affected, it is the ability to gain administrative access by rooting your Redmi Note 12 Pro/Pro+ 5G via Magisk patched boot.img. Once you do so, you will be in a position to welcome a plethora of mods and tweaks onto your device. So without any further delay, let’s show you how this task could be carried out.

Benefits and Risks of Rooting

Once you root your device by flashing the Magisk patched boot.img via Fastboot Commands, you will be in a position to try out a plethora of customizations on your device. These include the likes of flashing custom ROMs, installing a custom recovery like TWRP, or flashing a custom kernel. Along the same lines, you could also flash Magisk Modules, Xposed Framework, Substratum Themes, Viper4Android, and the like. However, this is just one side of the story.

Benefits and Risks of Rooting

Carrying out this process also has its downsides. First off, the process requires an unlocked bootloader. Doing so will wipe off all the data and could nullify the device’s warranty as well. Likewise, WideVine L1 will be degraded to L3, resulting in the inability to stream Netflix in HD [FIXED]. Then the SafetyNet will be triggered, which might cause issues with banking apps [FIXED]. So if all that’s well and good, then let’s get started with the steps to root the Redmi Note 12 Pro/Pro+ 5G via Magisk.

How to Root Redmi Note 12 Pro/Pro+ 5G via Magisk

Root Redmi Note 12 Pro

The below instructions are listed under separate sections for ease of understanding. Make sure to follow in the exact same sequence as mentioned below. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

Install Android SDK

install adb platform tools windows

To begin with, install the Android SDK Platform Tools on your PC. This is the official ADB and Fastboot binary provided by Google and is the only recommended one. So download it and then extract it to any convenient location on your PC. Doing so will give you the platform tools folder, which will be used throughout this guide.

Enable USB Debugging and OEM Unlocking

Next up, you will have to enable USB Debugging and OEM Unlocking on your device. The former will make your device recognizable by the PC in ADB mode. This will then allow you to boot your device to Fastboot Mode.

Root Redmi Note 12 Pro

On the other hand, OEM Unlocking is required to carry out the bootloader unlocking process. So head over to Settings > About Phone > Tap on MIUI Number 7 times > Go back to Settings > System > Developer Options > Enable USB Debugging and OEM Unlocking.

Unlock Bootloader on Redmi Note 12 Pro/Pro+ 5G

You will also have to unlock the bootloader on your Redmi Note 12 Pro/Pro+ 5G if you wish to root it via Magisk. Do keep in mind that doing so will wipe off all the data and might make the device’s warranty null and void as well. So if that’s well and good, then refer to our guide to Unlock Bootloader on any Xiaomi Device.

Root Redmi Note 12 Pro

Download Redmi Note 12 Pro/Pro+ 5G Fastboot ROM

Next up, download the Fastboot ROM for your device. As for this guide, I am using the Redmi Note 12 Pro/Pro+ (ruby) Fastboot Stable ROM version V13.0.4.0.SMOINXM [Direct Download Link]. You are free to try any version of your choice, but it is recommended to try the newer builds only and of your region. To download the firmware, you may use the official MIUI Forum.

Root Redmi Note 12 Pro

Extract Stock Boot.img

  1. Extract the ROM to any convenient location on your PC.
  2. Once extracted, go to the Images folder.
  3. Within that, you should see all the partition files in IMG format.
  4. Copy the boot.img file from there and send it to your device.Root Redmi Note 12 Pro

Patch Redmi Note 12 Pro/Pro+ 5G Stock Boot via Magisk

  1. First off, install the Magisk App on your device.
  2. Then tap on the Install button situated next to Magisk.
  3. From the Method section, choose Select and Patch a file.
    Root Redmi Note 12 Pro
  4. Browse to the extracted boot.img file and select it.
  5. Then tap on the Let’s Go option situated at the top right.
  6. Magisk will now load the boot.img file and will patch it accordingly.
  7. Once that is done, you would get the Download Complete message.
    Root Redmi Note 12 Pro
  8. The patched boot image file will be saved in Internal Storage > Downloads.
  9. Make sure to rename it to magisk_patched.img, if that is already not the case.Root Redmi Note 12 Pro

Boot Redmi Note 12 Pro/Pro+ 5G to Fastboot Mode

  1. Connect your device to the PC via a USB cable. Make sure USB Debugging is enabled.
  2. Then head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
    command-prompt-inside-adb
  3. Type in the following command in the CMD window to boot your device to Fastboot Mode
    adb reboot bootloader

    Root Redmi Note 12 Pro

You should now see the famous MI Bunny Logo along with the Fastboot text written underneath it, signifying that the device has successfully booted to Fastboot. Let’s now move over to the final set of instructions and root Note 12 Pro/Pro+ 5G via Magisk.

Flash Magisk Patched Boot.img and Root Redmi Note 12 Pro/Pro+ 5G

  1. Make sure that you have transferred the magisk_patched.img file to the platform tools folder.
  2. Now boot your device using the patched boot.img file [also read FAQ at the end]:
    fastboot boot magisk_patched.img

    Root Redmi Note 12 Pro

  3. Now launch the Magisk app and tap on the Install button next to Magisk.
  4. Then select Automatic Installation (or Direct Installation) and wait for the process to complete.
    Root Redmi Note 12 Pro
  5. Once done, tap on the Reboot button that appears at the bottom right. Your device will now boot to the rooted OS

That’s it. These were the steps to root your Redmi Note 12 Pro/Pro+ 5G via Magisk. If you have any queries concerning the aforementioned steps, do let us know in the comments section. We will get back to you with a solution at the earliest.

FAQ: Fastboot Boot Boot.img vs Fastboot Flash Boot Boot.img

Instead of directly flashing the patched boot via fastboot flash boot magisk_patched.img, we first temporarily booted it via fastboot boot magisk_patched.img and then used the Direct Install method of Magisk. While a tad longer, but it is the recommended method for your device. This is because by first temporarily booting via the patched file, we could check if everything is working well and good.

Root Redmi Note 12 Pro

If it doesn’t, then you just need to do a simple reboot and the patched boot will be replaced by stock and your device will be booted to the OS. On the other hand, if everything works well and good, then you could permanently flash the patched boot via the Direct Install method.

How to Fix Redmi Note 12 Pro/Pro+ 5G Stuck in Bootloop after Root

If your Redmi Note 12 Pro/Pro+ 5G is stuck in a bootloop, then you should try the below-listed tweaks to fix the underlying issue and make the device boot to the OS:

Disable DM-Verity

  1. Extract vbmeta.img from the Fastboot ROM and transfer it to the platform-tools folder.
  2. Then execute the below command to flash vbmeta and disable dm-verity:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    
  3. Now type in the below command to boot your device using the patched boot.img file
    fastboot boot magisk_patched.img
  4. If your device boots up, then simply perform Direct Install via Magisk as discussed above.

Switch Slots

Use the below two commands to switch the active slot and reboot via the second slot.

fastboot set_active other
fastboot reboot

Root Redmi Note 12 Pro

Flash Stock Boot

Next up, you should consider flashing the stock boot.img files to both slots:

fastboot flash boot_a boot.img 
fastboot flash boot_b boot.img
fastboot reboot

Flash Fastboot ROM

If none of the aforementioned methods spelled out success, then your last course of action should be to flash the entire Fastboot ROM on your device. To do so, please check out our guide on How to Unbrick Redmi Note 12 Pro/Pro+ 5G via Fastboot Commands

Root Redmi Note 12 Pro

That’s it. These were the steps to root the Note 12 Pro/Pro+ 5G via Magisk without using TWRP Recovery. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

Share:
  • For my Redmi Note Pro 5g ( Miui Global 14.0.8.0 SMOEUXM)
    fastboot boot magisk_patched.img did not work.
    Instead i risked to flash it without testing.
    Here -fastboot flash boot magisk_patched.img- did not work too, either
    fastboot flash boot_a magisk_patched.img .
    fastboot flash boot_b magisk_patched.img worked but no root success.i used fastboot flash boot_ab magisk_patched.img -and this helped.
    In booted system magisk made a patch to booted boot.img and rootchecker showed that i´ve got superuser rights.

  • Hi, my redmi note 12 pro plus 5g has a N in the ROM code like SMOMIXN which seems to be a fake global rom and it not found nowhere. The bootloader is locked and I don’t know what to do in order to root it with your method.

  • i got error at code (fastboot boot magisk_patched.img) booting failed (status read faile d (too many links))
    can some one help me