Xiaomi Mi 8
Snapdragon 845
Xiaomi
In this article, we will discuss all the available ways to flash the Mi 8: from the official update via MIUI Updater to install custom firmware such as LineageOS or Pixel Experience. Particular attention will be paid to unlocking the bootloader, without which it is impossible to install alternative software, as well as errors that users face. If you are a beginner, do not worry: we will explain each step in detail so that even without experience you can successfully update your smartphone.
Before you start, consider that flashing can nullify the warranty if it's still valid, and if you don't do it right, you can turn the phone into a brick. But if you follow the instructions, the risks are minimal. Ready? Then let's get started!
1. Preparation for flashing: what to do before the start
The Xiaomi Mi 8 flashing requires pre-preparedness, and without it, you risk losing data, crashing or even damaging your device.
β Back up all your data. The firmware erases your internal memory, so transfer your photos, contacts and files to your computer or the cloud. Use Mi Mover or Google Photos for automatic backup.
β Check the device model. Not all firmware is suitable for all Mi 8 modifications. Check your version in Settings β About Phone β Model. For example, Mi 8 SE (codename sirius) and standard Mi 8 (dipper) require different files!
β Charge the phone to at least 60 percent. Interrupting the process due to battery drain may make it impossible to turn on the device.
β Install the drivers you need. Fastboot and ADB PCs require Xiaomi and Google drivers USB. Download them from Xiaomi's official website or through the Mi Unlock Tool.
Make a backup of data | Check the device model | Charge the phone β₯60% | Install ADB/Fastboot drivers | Download the firmware for your model-->
If you plan to install custom firmware, you'll need to unlock the bootloader, and that's in the next section.
2. Unlock the bootloader on Xiaomi Mi 8
Official MIUI firmware can be installed with a locked bootloader, but custom ones (like LineageOS or HavocOS) require unlocking. Xiaomi allows this, but the process is not as simple as before.
β οΈ Warning: Unlocking will reset all data on the phone! also note that Xiaomi may refuse to unlock if the Mi Account is tied to the device for less than 7 days.
Here's the step-by-step instruction:
- Link your Mi Account to your phone. Go to Settings β Mi Account and log in. Make sure the device is tied to your account for at least a week.
- Download Mi Unlock Tool. The official utility is available on the Xiaomi website (authentication will be required).
- Activate Developer Mode. Go to Settings β About Phone and 7 times click on MIUI Version. Then to Settings β Additional β For developers, turn on USB Debugging and OEM Unlock.
- Connect your phone to your PC in Fastboot mode. To do this, turn off the device, then press Volume Down + Power until the hare appears in the eardress cap.
- Run the Mi Unlock Tool and follow the instructions. The utility will check whether it can unlock and, if all is well, start the process (usually takes 1-3 minutes).
If the utility gives you a "Couldn't unlock" error, try:
- π Reconnect the phone in Fastboot mode.
- π Use the other USB-port (preferably) USB 2.0).
- π Wait 72-168 hours if you have a new account.
What if the Mi Unlock Tool canβt see the device?
3. Ways to flash the Xiaomi Mi 8
There are three main methods of flashing the Mi 8, each of which is suitable for different purposes, depending on which firmware you want to install and how deeply you are willing to interfere with the system.
| Method | Type of firmware | Do you need unlocking? | Difficulty | When to use |
|---|---|---|---|---|
| MIUI Updater | Official (stable/beta) | β No. | β | Update without losing data |
| Recovery (TWRP) | Castomy or official | β Yes. | βββ | To install ZIP- firmware |
| Fastboot (MiFlash) | Official or custom | β Yes. | ββββ | To restore a "brick" or clean installation |
Letβs look at each method in more detail.
3.1 Update via MIUI Updater (the easiest way)
If you need to upgrade the Mi 8 to the latest official version of MIUI without losing data, this method is best. It does not require unlocking the bootloader and runs directly from the system.
Instructions:
- Open Settings β About the phone β System update.
- Click on the three dots in the upper right corner and select Select the firmware file.
- Specify the path to the downloaded firmware file (.zip format for Recovery).
- Confirm the installation and wait for the reboot.
β οΈ Warning: If you downloaded firmware for another model (e.g., Mi 8 SE instead of Mi 8), the phone may stop turning on. Always check the device's code name (dipper for the standard version).
3.2 Installation via TWRP Recovery
To install custom firmware (such as LineageOS 20 or Pixel Experience), you will need TWRP Recovery, an alternative recovery menu, which you need to flash through Fastboot, and then install the firmware.
Steps:
- Download TWRP for Mi 8 (twrp-3.7.0_9-0-dipper.img file).
- Connect your phone in Fastboot mode (clamp Volume down + Power).
- Open the command line in the folder with ADB and execute: fastboot flash recovery twrp-3.7.0_9-0-dipper.img fastboot boot twrp-3.7.0_9-0-dipper.img
- From the TWRP menu, select Wipe β Advanced Wipe and select Dalvik, Cache, System, Data.
- Return to the main menu, click Install and select ZIP-firmware.
After installation, the first start can take 10-15 minutes β do not interrupt the process!
Official MIUI|LineageOS|Pixel Experience|HavocOS|Another custom |Not yet decided-->
Firmware via Fastboot (MiFlash)
This method is used to completely reinstall the system, for example, if the phone is not turning on or you need to return the stock firmware.Requires an unlocked bootloader and a PC with the MiFlash Tool installed.
Instructions:
- Download Fastboot firmware for Mi 8 (select the version for your model!).
- Unpack the archive in a folder without Cyrillic characters (for example, C:\Mi8_Fastboot).
- Connect your phone in Fastboot mode.
- Launch MiFlash, press Select and specify the firmware folder.
- At the bottom, choose Clean all (full cleaning) or Clean all and lock (if you want to lock the bootloader after you have firmware).
- Press Flash and wait until it is completed (usually 5-10 minutes).
Important: If MiFlash gives you a "cannot receive hello packet" error, try reconnecting your phone or using another USB-port. Also check that Device Manager defines your phone as "Android Bootloader Interface."
4. Where to download firmware for Xiaomi Mi 8
The right firmware depends on the stability of the device, and here are the reliable sources for downloading:
- π₯ Official firmware MIUI: πΉ Xiaomi official website (choose Mi 8 β dipper). πΉ Xiaomi Firmware Updater (the latest version).
- π₯ Castom firmware: πΉ XDA Developers (discussed Mi 8 threads). πΉ LineageOS (official builds for dipper). πΉ Pixel Experience (clean Android firmware).
β οΈ Warning: Download firmware only from trusted sources! Files from torrents or little-known sites may contain viruses or be corrupted.
Before downloading, check:
- π Does the code name (dipper for Mi 8, sirius for Mi 8 SE) match?
- π Android version (e.g. LineageOS 20 Android 13).
- π Assembly date (fresh firmware is usually more stable).
π‘
If you are installing custom firmware for the first time, choose builds marked "Stable" or "Official." Nightly builds may contain bugs.
5. Typical firmware errors and their solutions
Even when following instructions, users often encounter problems, and here are the most common errors and ways to correct them:
| Mistake. | Reason. | Decision |
|---|---|---|
| Error: cannot load'twrp.img' | Wrong path to file or corrupted image | Check the file name and folder (no spaces/Cyrillic). Download TWRP again. |
| This package is for"dipper" devices; this is a"sirius". | Firmware for another model | Download firmware for dipper (for Mi 8) or sirius (for Mi 8 SE). |
| Phone stuck on MI logo | Incompatible firmware or incomplete installation | Fastboot with a full clean (Clean all) |
| MiFlash:"flash_all_lock.bat failed" | The bootloader is blocked or damaged | Unlock the bootloader again through the Mi Unlock Tool. |
| No network after firmware | No modems are installed (firmware) | Run firmware separately through TWRP or Fastboot. |
If the phone doesnβt turn on after firmware (black screen, no button response), try:
- Press Volume up + Power for 20-30 seconds (forced reboot).
- Connect to charging for 10-15 minutes (sometimes helps with discharge).
- Swipe stock firmware through Fastboot with a full cleanup.
π‘
If the phone doesn't boot after firmware, don't panic: 90% of the time, it can be restored via Fastboot. The main thing is not to interrupt the process and use the correct firmware files.
6.What to do after a successful firmware
Your Xiaomi Mi 8 is well-stitched, but to keep the device running smoothly, take a few extra steps:
π§ Set up the system:
- πΉ Go through the initial setup (language selection, Wi-Fi connection).
- πΉ Restore data from the backup (contacts, photos, applications).
- πΉ Update Google Play Services and other system applications.
π§ Check the performance:
- πΉ Test the camera, sound, network (mobile internet, Wi-Fi, Bluetooth).
- πΉ Make sure the fingerprint sensor and NFC are working (if you used custom firmware).
π§ Optimize your performance:
- πΉ Disable unnecessary applications in Settings β Apps.
- πΉ Enable Developer Mode and activate GPU- Acceleration (if the firmware supports).
- πΉ Install Magisk for root rights (optional).
If you have installed custom firmware, it is also recommended to flash:
- πΉ NikGapps (an alternative to Google Apps if they are not included in firmware).
- πΉ Magisk for root access and modules (e.g. ViPER4Android for audio enhancement).
7.Alternative firmware for Xiaomi Mi 8: what to choose
If youβre tired of MIUI or want to try pure Android, here are the best custom firmware for the Mi 8 in 2026:
| Firmware | Basis | Pluses | Cons | Reference |
|---|---|---|---|---|
| LineageOS 20 | Android 13 | β Pure Android without Blaatwareβ Regular updates | β No proprietary features MIUIβ Camera worse than stock | Download |
| Pixel Experience | Android 13/14 | β Interface as on Google Pixelβ Good optimization | β Sometimes gesture bugs | Download |
| HavocOS | Android 13 | β Multiple customizationsβ Easy and fast | β Fewer updates | Download |
| MIUI EU | MIUI (without Chinese services) | β All features MIUI without bloatβ Weekly updates | β Requires unlocking the loader | Download |
π‘ Tip: If you want a camera, you should stay on MIUI or install firmware with ported modem and camera (e.g., MIUI EU with a GCam patch).