Home > Xiaomi

How to Root Xiaomi Mix Fold 2 via Magisk Patched Boot

In this guide, we will show you the steps to root your Xiaomi Mix Fold 2 via Magisk Patched boot.img file. In the foldable smartphone domain, Xiaomi is without the shadow of a doubt the only player that could give Samsung some tough competition. Well build quality [with no visible crease in between], impressive specs sheet and at the same time, more affordable than its counterpart, well it seems to have check-marked most of the prerequisites.

Then if we turn our attention toward custom development, the Chinese OEM has always stood out from the crowds, and this foldable device is slowly but surely following this footstep. Be it for flashing GSI ROMs,  installing OrangeFox/TWRP recovery, or welcoming a plethora of mods onto your device, there’s a lot to look forward to.

However, it is the ability to gain administrative privileges that have always been at the top of the priority queue for the tech enthusiast. If you also echo the same thought process, then this guide shall help you root your Xiaomi Mix Fold 2 via Magisk Patched boot.img file. Follow along.

Benefits and Risks of Rooting

root Xiaomi Mix Fold 2

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.

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 Xiaomi Mix Fold 2 via Magisk.

How to Root Xiaomi Mix Fold 2 via Magisk Patched Boot

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.

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 Xiaomi Mix Fold 2

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 Xiaomi Mix Fold 2

You will also have to unlock the bootloader on your Xiaomi Mix Fold 2 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 Xiaomi Mix Fold 2

Download Xiaomi Mix Fold 2 Fastboot ROM

Next up, download the Fastboot ROM for your device. Make sure to download the same firmware version that is currently installed onto your device. You may either download the same from the MI official site or via third-party sites such as Xiaomi Firmware Updater. As for this guide, I am using V13.1.16.0.SLRCNXM [Direct Download Link].

root Xiaomi Mix Fold 2

Extract Stock Boot.img

Once you have downloaded the ROM, extract it to any convenient location on your PC. Once extracted, go to the Images folder. Within that, you should see all the partition files in IMG format. Copy the boot.img file and send it to your device.

root Xiaomi Mix Fold 2

Patch Xiaomi Mix Fold 2 Stock Boot.img via Magisk

  1. First off, install the Magisk App onto your Redmi K50/Pro.
  2. Then tap on the Install button situated next to Magisk.
  3. From the Method section, choose Select and Patch a file.
    root Xiaomi Mix Fold 2
  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 Xiaomi Mix Fold 2
  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.

Boot Xiaomi Mix Fold 2 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 Xiaomi Mix Fold 2

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 Xiaomi Mix Fold 2 via Magisk.

Flash Magisk Patched Boot.img and Root Xiaomi Mix Fold 2

  1. To begin with, make sure that you have transferred the magisk_patched.img file to the platform-tools folder.
  2. Now type in the below command in the CMD window (that is opened inside the platform-tools folder) to flash the Magisk Patched file:
    fastboot flash boot magisk_patched.img

    root Xiaomi Mix Fold 2

  3. Once that is done, reboot your device to the OS via the following command:
    fastboot reboot

That’s it. These were the steps to root the Xiaomi Mix Fold 2 via Magisk. 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: