Magisk Root For Any Xiaomi/Redmi/Poco [Guide]

This guide will walk you through the process of using Magisk to root any Xiaomi, Redmi, or Poco device. Rooting your device with Magisk can give you more control over your device and allow you to install custom ROMs, modify system settings, and access root-only apps. However, rooting your device can also void its warranty and potentially cause security risks.

The Xiaomi offering has always been the best in this sector when it comes to custom development. These devices have the most customization choices available to them, including custom firmware, custom recoveries like TWRP, PBRP, or OrangeFox, and a wide variety of mods.

You’ll need to root your Xiaomi/Redmi/Poco device using a Magisk Patched boot.img file before you can install the vast majority of these modifications. And we will demonstrate that process for you here. Let’s jump right in, shall we?

Benefits of rooting Xiaomi/Poco/Redmi

You can try out a wide variety of modifications to your device once you have rooted it by flashing the Magisk-patched boot. img using Fastboot Commands. Some examples are installing a third-party operating system (ROM), recovery (such as TWRP), or kernel (also known as “rooting”). Flashing Magisk Modules, Xposed Framework, Substratum Themes, Viper4Android, and similar apps is another option. This, however, is only one side of the argument.

Among the many advantages of rooting your Xiaomi, Poco, or Redmi device are:

Customization and Personalization

By gaining root access, you can make changes to your Xiaomi/Poco/Redmi device that aren’t supported by the manufacturer. The user interface, as well as the look and feel of the device, can be customized.

Enhanced Performance

Your Xiaomi, Poco, or Redmi device may benefit from being rooted. CPU and RAM can be overclocked to reduce load times and maximize performance.

Removal of Pre-installed Apps

You can free up space on your Xiaomi/Poco/Redmi device by uninstalling unused pre-installed apps after you root your device.

Access to Root-only Apps

When you root your Xiaomi, Poco, or Redmi device, you gain access to a world of software that isn’t available through the Google Play Store. These apps have the potential to expand your device’s capabilities.

Wi-Fi and Bluetooth Tethering

If you have rooted your Xiaomi, Poco, or Redmi device, you can use it as a mobile hotspot or Bluetooth dongle. If you have multiple devices that could benefit from accessing the internet, this feature could come in handy.

Custom ROMs and Kernels

When you root a Xiaomi, Poco, or Redmi device, you unlock the ability to use third-party operating systems and kernels. Custom ROMs are forks of the Android operating system that add new functionality and skinning options. Battery life, performance, and stability can all benefit from custom kernels.

Risks of rooting Xiaomi/Poco/Redmi

While there are many advantages to rooting your Xiaomi/Poco/Redmi device, you should be aware of the risks involved.

Voided Warranty

If you root your Xiaomi, Poco, or Redmi device, the warranty will be voided. In the event that your device experiences a malfunction, you will be responsible for paying for the necessary repairs.

Security Risks

The security of your Xiaomi, Poco, or Redmi device is compromised if you root it. Because rooting disables the device’s safety features.

IMPORTANT: Rooting Android 13 is different from the previous OS!

Up until Android 12, all that’s required to install Magisk is to extract the boot.img from the sock firmware, patch it with Magisk, boot your device with the patched file via the fastboot boot command, and then use Magisk’s Direct Install feature.

With Android 13, however, things have changed a little bit. The boot.img file is not required for devices that already come pre-installed with Android 13, such as the Xiaomi 13.

boot.img, and recovery.img files

A file called init boot.img, which can be derived from the original firmware, must be used instead. The init boot could then be patched with Magisk before being flashed with Fastboot [currently, there is no way to temporarily boot a patched init boot via Fastboot, making Magisk’s Direct Install unavailable]. Instead, use the fastboot flash command to immediately apply the modified init boot.

If your device came with an older version of OS and has since received the Android 13 update, such as the Poco F4, then you do not need to use the init boot file. Instead, you should continue to use the older method of rooting your device by patching the boot.img file. However, do keep in mind that this rule only applies to the devices that come pre-installed with Android 13 out of the box.

How to Root any Xiaomi/Redmi/Poco via Magisk

Root any Xiaomi/Redmi/Poco via Magisk

The instructions that follow are broken up into several different sections so that they are easier to follow. Make sure that you proceed in the same order as it was described. In the event that there is a thermonuclear war, if your alarm doesn’t wake you up, or if anything happens to your device or its data as a result of following the steps outlined below, neither AMS nor its members will be held responsible

STEP 1: Install Android SDK

Install Android SDK and Platform Tools

Installing the Android Software Development Kit Platform Tools on your personal computer is the first and most important step. This binary, which is the official version of ADB and Fastboot provided by Google, is the only one that is recommended.

Therefore, download it, and then extract it to any location on your computer that is convenient for you. After you have done so, you will have access to the platform tools folder, which is going to be utilized throughout the rest of this guide to root your Xiaomi, Redmi, or Poco device.

STEP 2: Enable USB Debugging and OEM Unlocking

Next, you will need to make sure that both the OEM unlocking and the USB debugging settings are enabled on your device. The first option will allow your device to be recognized by the computer when it is in ADB mode. After you have done this, you will be able to boot your device into the fastboot mode. On the other hand, in order to unlock the bootloader, you will first need to have your OEM-locked device unlocked.

Enable USB Debugging and OEM Unlocking

Go to Settings > About Phone now. seven times on the MIUI Number > Reopen the Developer Options window in Settings > System > Advanced. Enable OEM unlocking and USB debugging.

STEP 3: Unlock Xiaomi/Redmi/Poco Bootloader

The bootloader of the device must then be unlocked. But doing so will remove all the data and might void the device’s warranty. For more information on how to unlock the bootloader on any Xiaomi device, please see our guide. After completing that, you can proceed to the following step to use Magisk to root your Xiaomi, Poco, or Redmi.

Magisk Root For Any Xiaomi/Redmi/Poco [Guide]

STEP 4: Download Xiaomi Fastboot ROM

The next step is to get your device’s Fastboot ROM. Make sure you get the same version as what’s already on your device (you can check this by looking at the Build Number). As for where to get it, there are a couple of options: the official MIUI site or a third-party service like Xiaomi Firmware Updater (if the official website is blocked in your region).

STEP 5: Get Xiaomi/Poco/Redmi Stock Boot.img

  • Start by getting the 7ZIP software and installing it on your PC. To access it, open 7-ZIP File Manager by right-clicking the Fastboot ROM TGZ file.

Fastboot ROM TGZ file

  • When the extraction is done, you’ll have a new file in TAR format.

new file in TAR format

  • So right-click on the TAR file and choose 7ZIP > Extract Here.

TAR file and choose 7ZIP

  • You will now have all of the extracted firmware files, with the partition files in the Images folder.

extracted firmware files

  • Now, go to the Images folder, and copy the boot.img or init boot.img file (depending on whether your device came with Android 13 or an older version) and move it to your device.

boot.img file

STEP 6: Patch Boot/Init_boot via Magisk

  • Get the most recent version of the Magisk App and install it.
  • Then run it and tap the Install button next to Magisk.
  • After that, choose “Select and Patch a File,” and find the stock boot.img/init boot file, and select it.

Select and Patch a File

  • Then tap the Let’s Go button in the upper right corner.

upper right corner.

  • Your device will now patch the boot.img/init boot file and put it in the Downloads folder.
  • You should copy this file to your PC’s platform tools folder.

atch the boot.imginit boot file

STEP 7: Boot Xiaomi/Poco/Redmi to Fastboot Mode

  • Use a USB cable to link your device to the computer. Make sure USB Debugging is enabled.
  • Then go to the platform-tools folder, type CMD in the address bar, and hit Enter. The Command Prompt will open when you do this.

CMD and press Enter

  • In the CMD window, type the following command to start your device in Fastboot Mode:
adb reboot bootloader
  • Now type in the below command to verify the Fastboot Connection
fastboot devices

Identifying your Device in ADB or Fastboot Mode

STEP 8A: Root Xiaomi via Magisk Patched Boot

  • This step is for devices that came with an operating system version that was older than Android 13 and have since been updated to Android 13.
  • First, check that the patched boot image (magisk patched boot.img) is in the platform-tools folder.
  • Then, inside this platform-tools folder, open the CMD window. Now, type the following command into your device’s keyboard to start it up on the temporary rooted OS.
fastboot boot magisk_patched_boot.img
magisk_patched_boot.img
  • Now, open the Magisk app and hit the Install button.
  • Then choose Direct Install and tap Let’s Go in the upper right corner.

choose Direct Install

  • Now, open the Magisk app and hit the Install button.
  • Then choose Direct Install and tap Let’s Go in the upper right corner.

STEP 8B: Root Xiaomi via Magisk Patched Init_Boot

  • This step is for devices that already came with Android 13 installed.
  • Type in the below command in the CMD window to flash the patched init boot.img file:
fastboot flash init_boot magisk_patched.img
  • Make sure that magisk patched.img is changed to the name of the init boot.img file that has been changed.
  • If the above command didn’t work, use the below command to manually flash the init boot file to both slots:
fastboot flash init_boot_a magisk_patched_boot.img
fastboot flash init_boot_b magisk_patched_boot.img
  • The rooted OS should now load on your device. If it doesn’t happen, you can do it yourself with the command below:
fastboot reboot

All done. This is how to use Magisk to root your Xiaomi/Poco/Redmi. If you have any questions about the steps listed above, please let us know in the comments. We’ll get back to you as soon as possible with an answer.

FAQ 1: Fastboot Boot vs Fastboot Flash Boot

You can also root your Xiaomi device by flashing the Magisk-patched boot file directly. But that’s usually a risky way to do things and you should avoid it. The fail-safe way to do it is to first boot the patched file and then flash it permanently with Direct Install of Magisk, as described above.

This is because we could check if everything is working well by temporarily booting from the patched file first. If it doesn’t, all you have to do is restart your device, and the patched boot will be replaced by the stock boot, and your device will boot to the OS. On the other hand, if everything works well, you could use the Direct Install method to permanently flash the patched boot.

FAQ 2: Fix Xiaomi/Poco/Redmi Stuck in Bootloop while rooting

Case 1: While using Fastboot Boot Magisk Patched

If your device is stuck in a bootloop while it is temporarily booting the magisk patched boot.img, just restart it and the stock boot will replace the patched boot.img. Once you are in the operating system, check the boot.img file you used and then try flashing again.

Case 2: While using Fastboot Flash Patched Boot/Init_boot

If you flashed it permanently, on the other hand, you’ll need to flash the stock boot.img file as shown below: Go to the Fastboot ROM that you just extracted, copy the boot.img/init boot.img file, and move it to the platform-tools folder.

Then, use a USB cable to connect your device to the PC and boot it into Fastboot Mode. Now, open a CMD window in the platform-tools folder and run the following command if you rooted your phone by patching boot.img.

  • fastboot flash boot boot.img

If you got root via patched init boot, on the other hand, run the command below:

  • fastboot flash init_boot magisk_patched.img

Finally, type the command below into your device’s keyboard, and it will start up in the rooted OS.

  • fastboot reboot

Case 3: Disable DM Verity

If none of the above methods worked, you’ll have to flash the vbmeta file to turn off the verification checks. 
Here’s one way to do it:
  • First, take the downloaded Fastboot ROM and extract the vbmeta.img file from it.

Then, move this vbmeta file to the platform-tools folder and open the CMD window in this folder: After that, connect your device to your PC and force-boot it into Fastboot Mode. Now, run the command below to flash vbmeta and turn off the verification:

  1. fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

After that, you can move on to the rest of the steps for rooting (see STEP 8).

Leave a Reply

Your email address will not be published. Required fields are marked *