How to reflash Xiaomi Redmi 8: official and custom firmware

Xiaomi Redmi 8 is one of the most popular budget smartphones of 2019, but even 5 years after its release it can be upgraded with a firmware update.The software update opens up access to new features, improves performance and fixes MIUI bugs. However, illiterate firmware can turn the phone into a "brick" - so it's important to follow the verified instructions.

In this guide, weโ€™ll take a look at all the current ways to run Redmi 8 (codenamed olive), from official updates via MIUI Updater to custom firmware installations like LineageOS or Pixel Experience. Youโ€™ll learn how to unlock a bootloader, choose the right firmware version, and avoid common bugs. And if something goes wrong, thereโ€™s a section at the end of this article that addresses some of the most common problems.

Preparation for Flashing: What to Do Before Starting

Flashing is not just a couple of buttons. Wrong actions can lead to data loss, device locking, or even physical damage to hardware. So the first step is a full backup of all the important data. Use Mi Cloud, Google Photos for media files, or local copying to your PC via MTP.

Also check:

  • ๐Ÿ”‹ Battery charge at least 60 percent. When discharged during firmware, the phone can turn off and turn into a brickยป.
  • ๐Ÿ”Œ Cable USB โ€” Use an original or certified Type-C cable. Cheap analogues can interrupt the connection.
  • ๐Ÿ’ป Drivers โ€“ Install Mi Flash Tool and drivers for Fastboot/ADB (You can download it on the official Xiaomi website).
  • ๐Ÿ“ฅ Firmware โ€“ download the file for your model (olive for Redmi 8) and check its integrity through the MD5-sum.

๐Ÿ’ก

If you're flashing your phone for the first time, practice on an old device or emulator, which will help you avoid making critical mistakes on the main gadget.

Attention to MIUI! Redmi 8 supports two firmware branches:

  • ๐ŸŒ Global (MIUI Global โ€“ for the international market, with Google Services.
  • ๐Ÿ‡จ๐Ÿ‡ณ China (MIUI China โ€“ no Google services, but with additional features for China.

Installing an incompatible version will cause errors in the modems or camera. You can check the current firmware in Settings โ†’ About Phone โ†’ MIUI version.

๐Ÿ“Š What kind of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Stock Android without MIUI
I haven't decided yet.

Method 1: Update via MIUI Updater (without unlocking the bootloader)

The safest method is to upgrade through the built-in System Update app, which is suitable for installing official firmware without loss of data and does not require unlocking the bootloader, but this way you can only upgrade to the latest version of MIUI for your region.

Instructions:

  1. Open Settings โ†’ About the phone โ†’ System update.
  2. Click on the icon ยซโ‹ฎยป (three dots) in the upper right corner and select Select firmware file.
  3. Specify the path to the downloaded firmware file (.zip format).
  4. Confirm the installation and wait for the restart (it will take 5-15 minutes).

Limitations of the method:

  • โŒ You can't downgrade the story. MIUI (downgrade).
  • โŒ Custom firmware is not supported.
  • โŒ If the firmware file is damaged, the phone will hang on the Mi logo.
What to do if the update is suspended?
If the MIUI Updater update process stalled during the Install Update phase, wait 20 to 30 minutes. If nothing changes, force the phone to restart by holding Power + Volume up for 10 seconds. After the reboot, try again or use the method via Recovery.

Method 2: Firmware through Recovery (for official and some custom firmware)

The Recovery method is suitable for installing official firmware (including downgrade) and some custom ROMs if they support installation via TWRP. The advantage is that you do not need a PC connection, but the bootloader must be unlocked.

Step-by-step:

  1. Download the firmware in.zip format and move it to the root directory of internal memory (not in folders!).
  2. Turn off the phone, then press Power + Volume up to enter Recovery.
  3. In standard Mi Recovery, select the language, then: Install update.zip to System One โ†’ specify the firmware file โ†’ confirm.
  4. If you have TWRP, select Install, specify the file, and make Swipe to Confirm Flash.
  5. After installation, select Reboot System.

โ˜‘๏ธ Preparing for Firmware Through Recovery

Done: 0 / 5

The difference between Mi Recovery and TWRP is:

ParameterMi Recovery (stock)TWRP (castomic)
Installation of official firmwareโœ… Yes.โœ… Yes.
Installation of custom firmwareโŒ No.โœ… Yes.
Data backupโŒ No.โœ… Yeah, Nandroid backup)
Requires unlocking of the loaderโŒ No (for official firmware)โœ… Yes.
Support for OTGโŒ No.โœ… Yes.

Important: If you install custom firmware through TWRP, be sure to run Wipe โ†’ Format Data (enter yes for confirmation).

Method 3: Fastboot Firmware (for power users)

Fastboot is the most reliable method for installing official firmware, especially if the phone is not booting, and it requires a connection to a PC and an unlocked bootloader.

  • ๐Ÿ”„ Recovery of the phone after a failure.
  • ๐Ÿ“‰ downhreid MIUI.
  • ๐Ÿ”ง Fixing errors after a failed firmware through Recovery.

Instructions for Windows:

  1. Unpack the archive with the firmware (.tgz format) in the folder with the Mi Flash Tool.
  2. Turn off the phone and press Power + Volume down to enter the Fastboot (the image of a hare in a hat-eared will appear).
  3. Connect your phone to your PC and start the Mi Flash Tool.
  4. In the program, click Select, specify the folder with unpacked firmware.
  5. Select firmware mode: Clean all โ€“ clean (recommended); Clean all and lock โ€“ clean + lock bootloader (only for official firmware!); Save user data โ€“ data storage (not always stable).

Flash

๐Ÿ’ก

Clean all and lock mode will block the bootloader after the firmware is installed. Use it only if you install an official MIUI and do not plan custom ROMs!

Common errors when running through Fastboot:

  • ๐Ÿšซ anti_rollback โ€” It happens when you try to install the old version. MIUI. Solution: only new versions are used.
  • ๐Ÿšซ flash_write_failed โ€” cable or port problems USB. Try another cable or PC.
  • ๐Ÿšซ Freezing by 40-50% โ€“ often associated with antivirus that blocks the Mi Flash Tool.

Unlocking the bootloader: a mandatory step for custom firmware

The Redmi 8 bootloader is locked by default. To install custom firmware (like LineageOS or Havoc-OS), it needs to be unlocked. The process takes up to 72 hours due to Xiaomi's policy, but once unlocked, you'll have full control of the device.

Step-by-step:

  1. Link your Mi Account to your phone in Settings โ†’ Xiaomi Account.
  2. Turn on USB Debugging in Settings โ†’ About Phone โ†’ MIUI Version (click 7 times on MIUI Version, then go back to Additional Settings โ†’ For Developers).
  3. Download Mi Unlock Tool from the official website.
  4. Turn off the phone, press Power + Volume down to log into Fastboot.
  5. Connect your phone to your PC, launch the Mi Unlock Tool, and log in to your Mi Account.
  6. Press Unlock. If the message "Wait 72 hours" appears, wait for the specified time and try again.

๐Ÿ’ก

If the Mi Unlock Tool gives you a โ€œCouldnโ€™t unlockโ€ error, try using another Windows 10/11 PC or disable driver verification via gpedit.msc (for power users).

What does unlock the loader give:

  • โœ… Possibility to establish TWRP custom-made.
  • โœ… Removal of embedded applications MIUI (debloat).
  • โœ… Rooting (Getting root rights).

Risks of unlocking:

  • โš ๏ธ Resetting all data (including internal memory!).
  • โš ๏ธ Loss of warranty (if it is still valid).
  • โš ๏ธ Vulnerability to malware (if not monitored for security).

Install custom firmware: LineageOS, Pixel Experience and others

If you don't like MIUI with its advertising and restrictions, you can install custom firmware based on Android. Redmi 8 is available:

  • ๐Ÿ“ฑ LineageOS โ€“ pure Android without unnecessary applications.
  • ๐Ÿ“ฑ Pixel Experience โ€“ firmware with the interface and features of Google Pixel.
  • ๐Ÿ“ฑ Havoc-OS - customizable firmware with many settings.
  • ๐Ÿ“ฑ ArrowOS โ€“ Balance between performance and functionality.

Requirements for installing custom firmware:

  • โœ… Unlocked loader.
  • โœ… Established custom recovery (TWRP).
  • โœ… Compatible firmware for the olive model.
  • โœ… Gapps (Google services, if not included in firmware).

Instructions for installing Pixel Experience:

  1. Download firmware and Gapps (like NikGapps or OpenGapps) for ARM64, Android 12/13.
  2. Reboot to TWRP (Nutrition + Volume Up).
  3. Run Wipe โ†’ Advanced Wipe and mark Dalvik, Cache, System, Data.
  4. Install firmware, then Gapps (order is important!).
  5. Reboot System: The first launch can take 10-15 minutes.
How to check the compatibility of the firmware?
Before installing custom firmware, make sure it is designed for the olive (Redmi 8) firmware for Redmi. 8A (olivelite or Redmi 8T Check the information on the forums. XDA Developers or 4PDA.

Problems after installing custom firmware:

  • ๐Ÿ”Š No sound โ€“ check if vendor files are installed from official firmware.
  • ๐Ÿ“ถ No network, maybe the firmware doesn't support your region. Try a different build.
  • ๐Ÿ”‹ Fast battery discharge โ€“ calibrate the battery (discharge to 0%, then charge to 100% without interruptions).

Solving problems after flashing

Even if you follow all the instructions, sometimes you get mistakes, and here are the most common problems and solutions.

Problem.Possible causeDecision
Phone not turned on (black screen)Incorrect firmware or interrupted processSwipe the official MIUI through Fastboot with a full clean (Clean all)
Hanging on the Mi logoModule conflict or lack of vendorRe-install firmware with Wipe Dalvik/Cache
Mistake. anti_rollbackMIUI Downgrade AttemptSwitch only a new version or an official global stable version
No IMEI or network.Damaged modem or EFSRestore EFS via TWRP or flash the stock vendor
The camera's not working.No drivers or conflict with GappsInstall ANX Camera or flash firmware with Camera2API support

If the phone has become a brick:

โš ๏ธ Warning: If the phone doesnโ€™t respond to buttons and isnโ€™t detected by a PC after firmware, try the Test Point method (for power users!).It requires disassembling the device and closing the contacts on the board to force login. EDL-Without rationing skills, you should go to the service center.

To recover through EDL, you will need:

  • ๐Ÿ”ง Qualcomm HS-USB QDLoader 9008 driver.
  • ๐Ÿ’พ Firmware in.mbn format for Redmi 8.
  • ๐Ÿ–ฅ๏ธ Mi Flash Pro or QFilm.

FAQ: Frequent questions about Redmi 8 flashing

Can I flash Redmi 8 without unlocking the bootloader?
Yes, but only official firmware via MIUI Updater or Recovery.
How to return the official MIUI after custom firmware?
Download the official Fastboot firmware for your model, then run it through the Clear all Mi Flash Tool. If the bootloader is unlocked, it will remain unlocked.
Why does Google Pay not work after the firmware?
This is due to an unlocked bootloader or root rights. Google Pay doesn't work on devices with uncertified Android.Solutions: Install Magisk and activate the MagiskHide module. Use alternatives: Samsung Pay, SberPay or Mir Pay-enabled banking apps.
How to check the anti-rollback version?
The anti-rollback version can be found in TWRP (Info section) or through the command fastboot getvar anti. For Redmi 8, the current version is 4. Installing firmware with a lower version will lead to locking the device.
Should we be able to get Redmi 8 in 2026?
If you are satisfied with the performance, but do not like it MIUI, Custom firmware (like LineageOS) can extend the life of a phone, but don't expect miracles: โœ… Pros: pure Android, no advertising, new features. โŒ Cons: camera or network bugs are possible, there are no official security updates. For everyday use, it is better to stay on the last official official security update. MIUI.