Once you have unlocked the device’s bootloader, you will be in a position to flash custom/GSI ROMs, a custom recovery like TWRP, and welcome a truckload of mods onto your device. However, it is the ability to gain administrative access that has always been the go-to choice for many tech enthusiasts. If you also echo this thought, then this guide shall help you to root your Xiaomi 12/Pro/12X via Magisk patched boot. Follow along for the instructions.

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 likes. However, this is just one side of the story.

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 [FIXED], 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 your Xiaomi 12/Pro/12X via Magisk.

How to Root Xiaomi 12/Pro/12X via Magisk

The below instructions are listed under separate sections for ease of understanding. Make sure to follow the same sequence as mentioned. 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.

STEP 1: Install Android SDK

First and foremost, you will have to 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 to root your Xiaomi 12/Pro/12X via Magisk.

STEP 2: Enable USB Debugging and OEM Unlocking

Next up, you will also 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. 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 > Advanced > Developer Options > Enable USB Debugging and OEM Unlocking.

STEP 3: Unlock Xiaomi 12/12X/Pro Device Bootloader

Since this is an unofficial ROM (a custom ROM to be precise), you will need to unlock the device’s bootloader. However, doing so will wipe off all the data and could nullify the device’s warranty as well. So if that’s all well and good, then please refer to our guide on How to Unlock the Bootloader on any Xiaomi Device. Once that is done, you may move over to the next step to root your Xiaomi 12/Pro/12X via Magisk.

STEP 4: Download Xiaomi 12/Pro/12X Fastboot ROM

Next up, you will have to download the Fastboot ROM for your device. Make sure to download the same version that is currently installed on your device (you could verify the same from your device’s Build Number). As far as the downloading source is concerned, you could get it from the official MIUI site or a third-party site like XiamiFirmwareUpdate (if the official website is blocked in your region).

STEP 5: Get Xiaomi 12/Pro/12X Stock Boot.img

STEP 6: Patch Xiaomi 12/Pro/12X Boot.img via Magisk

STEP 7: Boot Xiaomi 12/Pro/12X to Fastboot Mode

STEP 8: Flash Magisk Patched Boot & Root Xiaomi 12/Pro/12X

That’s it. These were the steps to root your Xiaomi 12/Pro/12X 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. NOTE: There also exists a method to root your Xiaomi device by directly flashing the Magisk patched boot file. However, that is usually a risky approach and should be avoided. The above approach of first booting the patched file and then permanently flashing it via Direct Install of Magisk is the fail-safe method that you should opt for.

Fix: Xiaomi Stuck in Bootloop while rooting

If your device is stuck in bootloop, then you might have to disable the verity checks by flashing the vbmeta file. Here’s how it could be done:

How to Pass SafetyNet on Rooted Android 12/Android 13How to Hide Root from Apps via Magisk DenyList [Android 12]Enable Choose Update Package | Reboot to Recovery Mode: MIUI XiaomiHow to Enable VoLTE and VoWiFi on Xiaomi (Root/Non-Root)

About Chief Editor

How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 8How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 28How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 65How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 5How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 43How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 92How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 33How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 79How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 12How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 9How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 59How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 80How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 10How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 17How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 61How to Root Xiaomi 12 Pro 12X via Magisk Patched Boot - 9