How to Unlock the Bootloader and Root Xiaomi Devices Running HyperOS

How to Unlock the Bootloader and Root Xiaomi Devices Running HyperOS

Unlocking the bootloader and rooting Xiaomi devices that run on HyperOS can significantly enhance your control over the device, allowing for deeper customization and improved performance. This step-by-step guide will walk you through the process of using the Mi Unlock token and Magisk to unlock the bootloader and root your Xiaomi device.

What You Need to Know Before You Start

Understanding the Risks

Before you proceed with unlocking the bootloader and rooting your Xiaomi device, it's essential to understand the risks involved:

  • Warranty Void: Unlocking the bootloader may void the warranty of your device.
  • Security Risks: Rooting could expose your device to security vulnerabilities.
  • Data Loss: The unlocking process will erase all data on your device, so it's crucial to back up your data before proceeding.

Preparing Your Device

To prepare your Xiaomi device for bootloader unlocking and rooting, follow these steps:

  1. Backup Your Data: Ensure you have a complete backup of all your data.
  2. Enable Developer Options: Go to Settings > About phone and tap MIUI version seven times to enable Developer Options.
  3. Enable OEM Unlocking: In Developer Options, enable the OEM unlocking toggle.
  4. Enable USB Debugging: Still in Developer Options, enable the USB debugging toggle.

Step 1: Obtain the Mi Unlock Token

To unlock the bootloader on your Xiaomi device, you first need to obtain an Mi Unlock token. Follow these steps:

  1. Visit the Mi Unlock Website: Go to the official Xiaomi unlocking website and log in with your Mi account.
  2. Apply for Unlocking Permission: Fill out the application form for unlocking permission, providing a valid reason for needing to unlock the device.
  3. Wait for Approval: Xiaomi will typically take a few days to process your application. Once approved, you will receive the Mi Unlock token via email.

Step 2: Unlock the Bootloader

With the Mi Unlock token in hand, you can proceed to unlock the bootloader:

  1. Download Mi Unlock Tool: Download the Mi Unlock tool from the Xiaomi website and install it on your computer.
  2. Connect Your Device: Boot your device into Fastboot mode by turning it off and then holding the Power + Volume Down buttons. Connect the device to your computer via USB.
  3. Run Mi Unlock Tool: Launch the Mi Unlock tool and log in with the same Mi account you used to apply for the unlock token.
  4. Unlock Bootloader: Follow the on-screen instructions in the Mi Unlock tool to unlock the bootloader.

Step 3: Root Using Magisk

After unlocking the bootloader, the next step is to root your device using Magisk:

  1. Download Magisk: Download the latest version of Magisk from the official GitHub repository.
  2. Flash Magisk via Custom Recovery: Transfer the Magisk ZIP file to your device. Reboot into custom recovery mode, and flash the Magisk ZIP file.
  3. Complete Rooting Process: After flashing, reboot your device. Install the Magisk Manager app to manage root permissions.

Conclusion

Unlocking the bootloader and rooting your Xiaomi device running HyperOS with an Mi Unlock token and Magisk opens up a new world of possibilities for device customization and optimization. While the process involves certain risks, following the above steps carefully will help you achieve a successful unlock and root. Always remember to take the necessary precautions, such as backing up your data and ensuring you have the correct files and applications for your device model.

Back to blog

Leave a comment