Getting root rights to Xiaomi Mi 8 (codenamed dipper) opens up access to hidden Android features, but requires care. This smartphone, released in 2018, is still popular thanks to the flagship hardware (Snapdragon 845 processor, 6/8 GB of RAM), but the manufacturer limits the user experience through a locked bootloader and security policy MIUI. Unlike the newer Xiaomi models, the Mi 8 unlock process is simplified โ you do not need to wait for 720 hours of account confirmation, as on devices of 2020+ years.
But even here, there are pitfalls. For example, an incorrect anti-rollback firmware can turn a phone into a brick, and a mistake when installing a TWRP can lead to a reboot cycle. In this guide, we will analyze three proven root-right methods (via Magisk, a boot image patch and an alternative OrangeFox Recovery**), discuss preparation and recovery after possible failures. All instructions are relevant for MIUI 12/13/14 based on Android 10-13.
โ ๏ธ Critical warning: Xiaomi Mi 8 with firmware older V12.0.3.0.QEACNXM (Android 10 is in place for protection ARB 4.Attempting to sew through an older version MIUI After the update, it will lead to an irreversible lock of the bootloader (hard-brick). โ The phone. โ Version. MIUI beforehand.
1. Preparation for unlocking the loader
The first step is to unlock the bootloader, without which you can't install custom recavers or patch system files. 8 process 2-3 hourly (including waiting) SMS-code from Xiaomi, but requires pre-configuration.
First, back up your data. Unlocking will reset your phone to factory settings! Use Mi Cloud or third-party utilities like Swift Backup (unrooted).
- ๐ฑ Contact and SMS (export to.vcf and.xml)
- ๐ท Photo/video in the folder DCIM (copy it to a PC)
- ๐ Wi-Fi passwords (save network list in Settings) โ Wi-Fi)
- ๐ฎ Save games (use the game cloud or Helium)
Next, link the device to your Mi Account:
- Go to Settings โ Xiaomi Account and log in.
- Turn on data synchronization.
- Activate the option Settings โ Additional โ For developers โ Unlock OEM (if there is no item, tap 7 times on the MIUI version in the About Phone section).
โ ๏ธ Note: If you have previously changed IMEI or baseband, unlocking may result in a Couldn't verify device error, which requires a rollback to the stock firmware via the Mi Flash Tool.
2 Unlock the bootloader through the Mi Unlock Tool
Xiaomiโs official tool, the Mi Unlock Tool, is the only safe way to unlock for beginners. Download the latest version from the official website (avoid third-party sources โ viruses are often planted there).
Algorithm of action:
- Install Mi Unlock Tool on Windows 7/10/11 PC (on macOS/Linux works via Wine, but bugs are possible).
- Turn off the phone and press Volume Down + Power to log into the Fastboot.
- Connect your device to your PC via the original cable (cheap cables may cause a USB device not recognized error).
- Launch the Mi Unlock Tool and log in with the same account as your phone.
- Press Unlock and wait for the SMS with the confirmation code (comes within 1-10 minutes).
Once successfully unlocked, the phone will automatically reset. Check the bootloader status with the ADB team:
fastboot oem device-infoIn the answer, look for the line Device unlocked: true. If you see false, repeat the procedure.
Registered Mi Account with a linked phone number
USB debugging and OEM unlocking enabled
Xiaomi drivers installed on PC (check in Device Manager)
Battery Charge > 60%
Backup of all data.-->
3. Installation of custom recaveri (TWRP or OrangeFox)
Xiaomi stock reavers do not allow you to install unofficial firmware or patches. For the Mi 8, two stable options are available:
- TWRP 3.7.0 is a classic recovery with MIUI 12-14 support.
- OrangeFox R11.1 is an alternative with improved interface and built-in support for Magisk.
Download the image of the recovery for dipper from the official website:
- ๐ TWRP for Mi 8
- ๐ OrangeFox for Mi 8
Installation via fastboot:
fastboot flash recovery twrp-3.7.0-dipper.img
fastboot boot twrp-3.7.0-dipper.imgAfter the first download, a request will appear to TWRP for permission to modify the system - swipe to the right, otherwise the recovery will not be able to patch files.
โ ๏ธ Attention: If after installation TWRP The phone is loaded into the stock recavator, so the anti-rollback protection is activated. MIUI Using the Mi Flash Tool with clean all mark.
What to do if TWRP does not start?
4. Getting root rights through Magisk
Magisk is a universal tool for obtaining root rights without changing the systemless root. The latest stable version is Magisk 26.4 (check the relevance on GitHub).
There are two ways to install:
- Patch boot image: Suitable for stock firmware. download the original boot.img for your version MIUI (You can get it out of the firmware package.tgz. boot.img In Magisk, press Install. โ Select and Patch a File. magisk_patched.img Fastboot: Fastboot Flash boot magisk_patched.img
- Installation through the Recovery: For custom firmware. Download Magisk-v26.4.zip. Reboot to TWRP. Install. ZIP-file via Install.
After installation, check the root rights with the Root Checker app or the team in Terminal:
suIf you see the # invitation, the root is successfully activated.
๐ก
To hide root rights from banking applications (Sberbank, Tinkoff), activate MagiskHide and add apps to the exclusion list. For Google Pay, additionally install the Universal SafetyNet Fix module.
5. Solving common problems
Even with the correct following of the instructions, errors can occur. Below is a table of the most common problems and their solutions:
| Mistake. | Reason. | Decision |
|---|---|---|
| Fastboot: unknown command | No ADB/Fastboot drivers installed | Install Platform Tools or Minimal ADB Package |
| This device isn't connected in Mi Unlock | Incorrect cable or USB port | Use the original cable and USB 2.0 port (blue USB 3.0 ports often don't work) |
| Cyclical reboot after Magisk installation | Incompatibility with the MIUI version | Sweep boot.img without a patch or upgrade Magisk to the latest version |
| Couldn't verify device when unlocking | IMEI or baseband changed | Restore the original modem via the Mi Flash Tool with firmware clean all |
| TWRP asks for password when downloading | Data Encryption (FBE) | Enter the password from the lock screen or format /data (data loss!) |
If the phone has turned into a brick (no switching on, no button response), try to recover through the phone. EDL-This will require a box of Mi Authorized Account or help from a service center.
๐ก
On Xiaomi Mi 8 with firmware newer than V12.5.1.0 (Android 11), installing Magisk via boot.img patch can result in data loss in the /data partition. Always back up TWRP before manipulation!
6. Alternative methods of obtaining root rights
If the standard methods didnโt work, consider these options:
1. Custom ROM firmware
Some firmware (like LineageOS 20 or Pixel Experience) already include root rights.
- ๐ Google Security Updates (Relevant for Android 13)
- ๐ Lack of Xiaomi services (battery savings)
- ๐ Root rights out of the box (without additional manipulations)
Cons: loss of camera functions (Mi 8 is known for excellent shooting on stock firmware) and possible bugs with VoLTE.
2.Use of OrangeFox Recovery + Magisk
OrangeFox is better adapted for MIUI 13/14 than TWRP.
- ๐ง Bypassing the DM-Verity test
- ๐ฆ Supports Magisk installation in one click
- ๐ Save data when switching between firmware
3. Unlocking through EDL (for experienced)
If the Mi Unlock Tool refuses to unlock the bootloader, you can use the emergency mode EDL.
- ๐ป Windows PC and Qualcomm 9008 drivers
- ๐ Cable with support EDL (not USB-cables fit!)
- ๐ Authorized Mi Authorized account (you can buy access on forums)
โ ๏ธ Attention: Incorrect actions in EDL damage UEFI The device, making it unsuitable for recovery even in a service center.
7. System optimization after obtaining root rights
Root rights give you access to the deep customization of the Xiaomi Mi 8.
1. Disable unnecessary MIUI services
With Titanium Backup or SD Maid, freeze:
2. Improve autonomy
Install Magisk modules:
- ๐ Battery Charge Limit โ Limiting up to 80% to save battery life
- โก Fast Charge Toggle โ Forced fast charging
3. Accelerate productivity
For gamers:
- ๐ฎ Game Turbo Magisk Module โ Optimizes the Game Turbo Magisk Module FPS play
- ๐ฅ CPU Boost โ overclocking the processor (caution, warms up!)
โ ๏ธ Attention: On the Snapdragon 845, overclocking above 2.8GHz can lead to trottling (automatic frequency reduction due to overheating.
8 How to get it all back (rolling back to drain)
If you no longer need root rights or plan to sell your phone, return the device to its original state.
- Download the latest stable MIUI firmware for Mi 8 from Xiaomiโs website (select the Fastboot version).
- Unpack the archive and launch the Mi Flash Tool.
- Connect your phone in Fastboot mode (Loudness down + Power).
- In the Mi Flash Tool, select the firmware folder and click Refresh โ Flash.
- Select Clean All (Full Reset) or Clean All and Lock (Reset + Lock bootloader) mode.
Once you've done the firmware, the phone will go back to the factory settings, and the bootloader will lock, so to get the root rights back, you'll have to repeat the whole procedure from the beginning.
โ ๏ธ Note: If you have installed custom firmware with modified anti-rollback (such as LineageOS), rollback to stock MIUI This may result in an error, so you can first run through the intermediate version. MIUI (for example, V12.0.3.0), And then it's relevant.
๐ก
Before selling the phone, be sure to clean all and lock in the Mi Flash Tool. Buyers often check the status of the bootloader through fastboot oem device-info, and an unlocked bootloader can cause bargaining.