HyperOS & MIUI Ecosystem

How to Root Xiaomi, Redmi & POCO with Magisk

Master installation guide for Xiaomi, Redmi, and POCO smartphones (POCO F6, F5, X6 Pro, X3 Pro, Xiaomi 14, 13, Redmi Note 13, 12, 11, 10, K70, K60) running HyperOS or MIUI. Learn how to navigate the official Mi Unlock Tool 168-hour countdown, extract stock boot images from Fastboot TGZ packages, and prevent DM-Verity bootloops.

Xiaomi / Redmi / POCO Technical Rooting Profile

  • Supported Brands: Xiaomi, Redmi, POCO, Black Shark.
  • Operating Systems: Xiaomi HyperOS 1.0 / 2.0 and MIUI 14 / 13 / 12.
  • Flashing Tool: Official Mi Unlock Tool (for unlocking) + standard Fastboot CLI (for flashing).
  • Target Partition: init_boot.img (devices launching on Android 13/14+) or boot.img (older devices).
  • Hardware Security: Relockable AVB 2.0; hardware warranty is respected in India and select international regions even after unlocking.

The Mi Unlock Tool 168-Hour Waiting Period Explained

Unlike Google Pixel or OnePlus devices which unlock instantly via Fastboot, Xiaomi enforces a server-side cryptographic token waiting period to prevent unauthorized retailer modification:

Mi Unlock Token Binding Process
# Prerequisites for Xiaomi Bootloader Unlocking: 1. Valid Mi Account logged into the device for at least 30 days. 2. Active SIM card with mobile data enabled (Wi-Fi MUST be turned off during binding!). 3. Developer Options -> "Mi Unlock Status" -> Tap "Add account and device". # The 168-Hour (7-Day) Countdown: When you connect to the official Mi Unlock Tool on your PC and click Unlock, Xiaomi's authentication servers will return: "Please unlock after 168 hours of using your device." * DO NOT log out of your Mi Account or factory reset during this 7-day period, or the countdown timer will reset to 0!

Step-by-Step Installation Walkthrough: Fastboot Method

Step 1: Complete Bootloader Unlocking

  1. After the 168-hour countdown expires, power off your device.
  2. Hold down Power + Volume Down to enter Fastboot Mode (the orange Fastboot logo or classic Mi bunny will appear).
  3. Connect your phone to your PC, open Mi Unlock Tool, and click Unlock.
  4. The tool will verify the server token and unlock the bootloader, wiping all user data.

Step 2: Obtain Stock Fastboot ROM (.tgz)

Always download the official Fastboot ROM (packaged as a .tgz archive), NOT a Recovery ROM (.zip). Extract the TGZ archive to reveal the images/ folder containing:

  • images/init_boot.img (for devices launched with Android 13/14+)
  • images/boot.img (for devices launched with Android 12 or earlier)
  • images/vbmeta.img (used for DM-Verity disabling if required)

Step 3: Patch Image via Magisk App

ADB Patching Commands
# 1. Install Magisk APK on phone $adb install -r Magisk-v30.7.apk # 2. Push stock boot or init_boot image to Download folder $adb push images/boot.img /sdcard/Download/ # 3. In Magisk App: Tap Install -> Select and Patch a File -> Choose boot.img # 4. Pull the patched image back to PC $adb pull /sdcard/Download/magisk_patched_*.img magisk_patched.img

Step 4: Flash in Fastboot Mode

Fastboot Terminal Commands
# Reboot device into Fastboot Mode (Power + Vol Down) $adb reboot bootloader # Optional safety flag on select Xiaomi devices to prevent DM-Verity bootloops: $fastboot flash --disable-verity --disable-verification vbmeta images/vbmeta.img # Flash patched Magisk image: $fastboot flash boot magisk_patched.img # Reboot phone: $fastboot reboot

Xiaomi & POCO Troubleshooting & Error Recovery

My Xiaomi phone shows a black screen with "The system has been destroyed". How do I fix this?

This error indicates that Android Verified Boot (AVB) detected an altered boot partition with DM-Verity enforcement enabled. To fix it: reboot to Fastboot mode (hold Power + Vol Down), flash stock vbmeta.img with disabled verification flags (fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img), then flash your stock boot.img.

Why does Mi Unlock Tool show "Account not bound" or fail to add device in HyperOS?

On Xiaomi HyperOS, bootloader unlocking requires a verified Mi Account. In the Global version, you must register in the Xiaomi Community App under the "Me -> Unlock Bootloader" section. In China ROMs, you must have Level 5 Community status. Always ensure Wi-Fi is disconnected and Mobile Data is active when tapping "Add account and device".

Supported Models & Dedicated Rooting Guides

Select your exact hardware model below to view verified partition patching, firmware extraction, and Fastboot flashing instructions:

Xiaomi 15, 15 Pro & 15 Ultra (HyperOS 2.0)

2024–2025

SoC: Qualcomm Snapdragon 8 Elite (3nm, Oryon CPU, Adreno 830 GPU) |...
Target Partition: init_boot.img (GKI Architecture — Extracted from off...

Action: Open Model Manual →

POCO F7, F7 Pro & POCO F7 Ultra

2025

SoC: Snapdragon 8 Gen 3 (F7 Pro) / Snapdragon 8 Elite (F7 Ultra) / ...
Target Partition: init_boot.img (GKI 2.0 — Never patch boot.img on POC...

Action: Open Model Manual →

Redmi K80, K80 Pro & K80 Ultra

2024–2025

SoC: Snapdragon 8 Elite (K80 Pro) / Snapdragon 8 Gen 3 (K80) / Dime...
Target Partition: init_boot.img (GKI Architecture on Snapdragon K80/K8...

Action: Open Model Manual →

Redmi Note 14, 14 Pro & Note 14 Pro+ 5G

2024–2025

SoC: Snapdragon 7s Gen 3 (Pro+) / Dimensity 7300-Ultra (Pro) / Dime...
Target Partition: init_boot.img (Qualcomm Pro+) / boot.img (Dimensity ...

Action: Open Model Manual →

Xiaomi 14, 14 Pro & 14 Ultra (HyperOS)

2024–2025

SoC: Qualcomm Snapdragon 8 Gen 3 (4nm TSMC)
Target Partition: init_boot.img (HyperOS GKI Architecture)

Action: Open Model Manual →

POCO F6, F6 Pro, POCO F5 & F5 Pro

2023–2024

SoC: Snapdragon 8s Gen 3 / 8 Gen 2 / Snapdragon 7+ Gen 2
Target Partition: init_boot.img (GKI Architecture)

Action: Open Model Manual →

POCO X6 Pro, POCO X6, X5 Pro & X3 Pro

2023–2024

SoC: MediaTek Dimensity 8300-Ultra / Snapdragon 7s Gen 2
Target Partition: init_boot.img (X6/X6 Pro) or boot.img (X3 Pro legacy)

Action: Open Model Manual →

Redmi K70 Pro, K70, K70 Ultra & K60 Series

2023–2024

SoC: Snapdragon 8 Gen 3 / Dimensity 9300+ / Snapdragon 8 Gen 2
Target Partition: init_boot.img

Action: Open Model Manual →

Redmi Note 13 Pro+ 5G, Note 13 & Note 12 Series

2023–2024

SoC: MediaTek Dimensity 7200-Ultra / Snapdragon 7s Gen 2 / Dimensit...
Target Partition: init_boot.img (Note 13) / boot.img (Note 12)

Action: Open Model Manual →

Redmi 9C, 9A, 10, 12 & 13C Series

2020–2024

SoC: MediaTek Helio G35 / G85 / G88 (12nm Architecture)
Target Partition: boot.img (Non-GKI Legacy Architecture)

Action: Open Model Manual →
Source & Verification Standard

Verified against official upstream release Magisk v30.7 on Xiaomi HyperOS and MIUI. Primary reference: topjohnwu/Magisk on GitHub.