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
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
- To start off, you’ll need to download and install the 7ZIP software on your computer
- Right-click on the Fastboot ROM TGZ file before selecting Open With -> 7-ZIP File Manager
- Once the extraction gets finished, you’ll be getting another file in TAR format
- Right-click on the TAR file before selecting 7ZIP -> Extract Here
- You’ll get all the extracted firmware files
- The partition files will be present in the Images folder
- 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
- Download and install the latest version of Magisk
- Launch it and then tap on the Install button beside Magisk
- Then, choose “Select and Patch a File” before navigating to the stock boot.img/init_boot file
- After that, select it
- Now, tap on the “Let’s Go” button present at the top right
- The boot.img/init_boot file will get patched and placed under the Downloads folder on the device
- You’ll have to transfer this file to the platform-tools folder
Step 7: Boot your device to Fastboot mode
- Connect your smartphone to the PC using USB cable while ensuring that USB debugging is enabled
- After that, go to the platform-tools folder and type in CMD in the address bar before hitting Enter to launch the Command Prompt
- Then, type in the following command in the CMD window for booting your smartphone to Fastboot Mode
adb reboot bootloader
- For verifying the Fastboot connection, you should type the following command and you’ll get back the device ID –
Step 8: Root your device via Magisk Patched Root
- To start off, you should ensure that the patched boot (magisk_patched_boot.img) is inside the platform-tools folder
- Open the CMD window inside the platform-tools folder
- After that, type the below command for booting your device to the temporary rooted OS –
fastboot boot magisk_patched_boot.img
- Launch the Magisk app before tapping on Install
- Select Direct Install and then tap on “Let’s Go” at the top right
- Once it is done, hit the Reboot button
- Your device will get booted to the permanently rooted OS