How to root xiaomi devices – HMZ Tutorials
Welcome to our comprehensive tutorial for how to root your Xiaomi phone. Rooting your device gives you administrative access to your phone’s operating system, allowing you to customize it to your liking and install apps that require root access.
Step 1: Enable Developer Options
To begin, you need to enable Developer Options on your Xiaomi phone model. This allows you to access advanced device settings.
- Go to Settings on your phone.
- Click on my device.
- Click on all specs
- Tap multiple times on miui version
- There you go, developer options is enabled
Step 2: Enable USB Debugging
This allows your phone to communicate with your computer for debugging and other development purposes.
- Go back to the main Settings page.
- Tap on Additional settings.
- Scroll down and select Developer options.
- Toggle on the USB debugging option.
Step 3: Unlock Bootloader
Before you can root your Xiaomi phone model, you need to unlock the bootloader. And set up your phone following those steps
After adding the account, follow these steps below 👇
- Visit the official Xiaomi website
- Download the tool Mi unlock
- Extract the zip file that you downloaded in a new folder.
- Open the tool
- You’ll need to log in with your xiaomi account that is linked to your xiaomi phone you want to root
- Click on unlock
IF THE TOOL TELL YOU THAT YOU NEED TO WAIT 7 DAYS TO UNLOCK YOUR DEVICE, THEN STOP WHAT YOU’RE DOING, AND GET BACK TO THIS POST AFTER 7 DAYS
Step 4: Install Custom Recovery
Once you have unlocked the bootloader after waiting 7 days 🙂
you can install a custom recovery like TWRP. This will allow you to flash custom ROMs and root your Xiaomi phone.
- Download android adb (Click here for a tutorial)
- Next, Download the TWRP recovery image for your Xiaomi phone model from the official TWRP website.
- Connect your phone to your computer via USB cable.
- Open a command prompt (CMD) window on your computer and run the following command:
adb devices
If your device is listed, you’re ready to proceed. If not, make sure you have the necessary drivers installed and USB debugging enabled.
Next, run the following command to flash the TWRP recovery image:
fastboot flash recovery twrp.img
Replace twrp.img
with the actual filename of the TWRP recovery image you downloaded.
Step 5: How to Root Your Xiaomi Phone with magisk
Now that you have a custom recovery installed, you can root your Xiaomi phone model by installing Magisk
- Download the latest version of Magisk from the official Magisk GitHub repository.
IF YOU DOWNLOAD THE APK FILE OF MAGISK, JUST RENAME IT AS .ZIP FILE AND FLASH IT.
- Transfer the Magisk ZIP file to your phone’s internal storage.
- Boot your phone into recovery mode by pressing a specific key combination (varies by Xiaomi phone model). Power key + vol up
- In TWRP recovery, tap on Install and select the Magisk ZIP file.
- Swipe to confirm the installation.
- After the installation is complete, reboot your phone.
Congratulations! You have successfully rooted your Xiaomi Phone. You now have full control over your device and can enjoy the benefits of custom ROMs, system tweaks, and more.