How to root your Xiaomi/Redmi/Poco devices via Magisk

OEMs like Google, Samsung, and OnePlus lead the way when it comes to custom development. However, brands like Xiaomi, Redmi, and Poco are also not that far behind as they offer tons of customizable options.

Whether it is customized firmware, access to more options, custom recoveries like TWRP, or more, you can have it all. Before you welcome abode these tweaks on your device, you’ll first need to gain administrative access. You will have to root your Xiaomi/Redmi/Poco devices via Magisk.

If you’re in the same boat, then this is the right place for you. In this guide, you will get to know how to root your Xiaomi/Redmi/Poco devices via Magisk.

How to root your Xiaomi/Redmi/Poco devices via Magisk

root your Xiaomi/Redmi/Poco devices via Magisk

Step 1: Install Android SDK

To start off, install the Android SDK Platform Tools on your PC or computer. It’s the official ADB and Fastboot binary provided by Google. You should download it and extract it to a convenient location on your PC. Doing this will give you the necessary platform-tools folder.

Step 2: Enable USB Debugging and OEM Unlocking

Then, you will need to enable USB Debugging and OEM Unlocking on your smartphone. The former makes your smartphone recognizable by the PC in ADB mode. Meanwhile, it’ll allow you to easily boot your smartphone to Fastboot Mode.

OEM Unlocking will be needed to carry out the bootloader unlocking process. You’ll need to go to Settings -> About Phone -> Tap on Build Number 7 times -> Return to Settings -> System -> Advanced -> Developer Options -> Enable USB Debugging and OEM Unlocking.

Step 3: Unlock the Bootloader on your smartphone

You’ll also need to unlock the bootloader on your Xiaomi/Redmi/Poco device if you’re looking to root your phone. Remember that doing this will wipe off the data and might even make your device’s warranty null and void.

Detailed Guide: How to Unlock bootloader on Xioami, Redmi and Poco Phones (MIUI Unlock Bootloader Guide)

Step 4: Download the Fastboot ROM

Next, you’ll need to download the Fastboot ROM for your smartphone. You should ensure that you’re downloading the same version that is currently installed the device. As far as the downloading source is concerned, you can get it from the official MIUI site or any third-party site like Xiaomi Firmware Updater.

Step 5: Get the Xiaomi/Poco/Redmi Stock Boot.img

  1. To start off, you’ll need to download and install the 7ZIP software on your computer
  2. Right-click on the Fastboot ROM TGZ file before selecting Open With -> 7-ZIP File Manager
  3. Once the extraction gets finished, you’ll be getting another file in TAR format
  4. Right-click on the TAR file before selecting 7ZIP -> Extract Here
  5. You’ll get all the extracted firmware files
  6. The partition files will be present in the Images folder
  7. Then, head over to the Images folder and copy the boot.img file or init_boot.img before transferring it to your device

Step 6: Patch Boot/Init_boot file through Magisk

  1. Download and install the latest version of Magisk
  2. Launch it and then tap on the Install button beside Magisk
  3. Then, choose “Select and Patch a File” before navigating to the stock boot.img/init_boot file
  4. After that, select it
  5. Now, tap on the “Let’s Go” button present at the top right
  6. The boot.img/init_boot file will get patched and placed under the Downloads folder on the device
  7. You’ll have to transfer this file to the platform-tools folder

Step 7: Boot your device to Fastboot mode

  1. Connect your smartphone to the PC using USB cable while ensuring that USB debugging is enabled
  2. After that, go to the platform-tools folder and type in CMD in the address bar before hitting Enter to launch the Command Prompt
  3. Then, type in the following command in the CMD window for booting your smartphone to Fastboot Mode
adb reboot bootloader
  1. For verifying the Fastboot connection, you should type the following command and you’ll get back the device ID –
fastboot device

Step 8: Root your device via Magisk Patched Root

  1. To start off, you should ensure that the patched boot (magisk_patched_boot.img) is inside the platform-tools folder
  2. Open the CMD window inside the platform-tools folder
  3. After that, type the below command for booting your device to the temporary rooted OS –
fastboot boot magisk_patched_boot.img
  1. Launch the Magisk app before tapping on Install
  2. Select Direct Install and then tap on “Let’s Go” at the top right
  3. Once it is done, hit the Reboot button
  4. Your device will get booted to the permanently rooted OS
Aviral Sharma
Aviral Sharma
Aviral Sharma is a talented and passionate writer who has been using words to express his thoughts ever since he learnt how to hold a pen. He is passionate about outer space, history, sports and most importantly technology. Aviral is a regular writer for rootmygalaxy.net and has been getting better by the day. He currently own Samsung Galaxy S24 Ultra, iPhone 13 and a HP Pavilion laptop

Leave a Comment