How to flash Xiaomi Redmi 8 Pro: official and custom firmware

The firmware of Xiaomi Redmi 8 Pro (codenamed olivelite) may be required to upgrade to the current version of MIUI, install custom firmware such as LineageOS or Pixel Experience, as well as restore operability after failures. However, the process has nuances: the model supports unlocking the bootloader, but requires strict rules to avoid โ€œbrickโ€ (complete inoperability of the device).

In this guide, we will take a look at all the current firmware options: through the MIUI Updater, Recovery and Fastboot mode, and install custom firmware with an unlocked bootloader. We will focus on training, from backing up data to checking firmware compatibility. If you're a beginner, start with the official methods; experienced users will find here details on working with TWRP and ADB.

Preparation for firmware: what to do before the start

Incorrect preparation is the main cause of firmware failures. First of all, make sure you have enough battery power (at least 60%). If the device runs out during the process, it can damage system partitions. Also check your Redmi 8 Pro model:

  • ๐Ÿ“ฑ Codename: Olivelite (check in Settings) โ†’ The phone. โ†’ Version. MIUI). The olive firmware (Redmi 8) is not suitable!
  • ๐Ÿ”’ bootloader status: if previously unblocked, the official firmware through Fastboot will not be installed.
  • ๐Ÿ“ก Drivers: to work with Fastboot and ADB We need Mi drivers. USB Driver (download from the official Xiaomi website).

Back up your data. Fastboot or custom Recovery erases your files! Use Mi Cloud, Google Drive, or physical copying on your PC. Swift Backup is a good tool to back up your apps and their data.

๐Ÿ’ก

If you are flashing a device with an unlocked bootloader, save the MIUI/backup/AllBackup folder from internal memory โ€“ it stores backup copies of SMS and call logs created by MIUI.

โš ๏ธ Warning: Fastboot firmware with the bootloader locked will cause an anti-rollback error and turn the phone into a brick.Be sure to unlock the bootloader through the Mi Unlock Tool before using this method.

Method 1: Update via MIUI Updater (without loss of data)

The safest method is to upgrade through the MIUI Updater app, which is suitable for installing official stable or beta versions of MIUI without resetting, but only if you have the latest updates for your model.

Instructions:

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

If the update is stuck on the MI logo for more than 20 minutes, perform a forced reboot: press Power + Volume up for 10 seconds. If the phone does not load after that, proceed to the firmware method via Recovery.

What if MIUI Updater doesnโ€™t see the firmware file?
The file must have the correct name (example: miui_OLIVELITEGlobal_V12.5.1.0.RCPCNXM_...) And lie at the root of the internal memory (not in folders!) If the problem persists, rename the file to update.zip And check the integrity of the archive, so it's not damaged or under-pumped.

Type of firmwareSupported versionsData resettingUnlocking required
Stable MIUI (OTA)Only relevant to your modelNo.No.
MIUI betaAny, but with the risk of bugsNo.No.
Full firmware through RecoveryAnybody, including downgradeYes.No.
Fastboot (official)Any, but with a rollback check.Yes.Yes.

*Downgrade (downgrade of MIUI) can cause an anti-rollback error. Check version compatibility on Xiaomi Firmware Updater.

Method 2: Firmware through Recovery (for official ZIP-file)

The Recovery method is suitable for installing full official firmware (.zip format) or custom cores. Unlike Fastboot, it does not require unlocking the bootloader, but resets user data. Important: use only official Recovery from Xiaomi - custom (for example, TWRP) may not work correctly without unlocking.

Step-by-step:

Download firmware with.zip extension for the olivelite model|Transfer the file to the root of internal memory|Turn off the phone.|Press the power buttons. + Volume up for entrance to Recovery-->

  1. From the Recovery menu, select the language (if available) and go to Install update.zip to System.
  2. Confirm the installation and wait until the completion (the process will take 3-7 minutes).
  3. After you complete the process, select Reboot to System.

If the phone loads into Recovery after firmware or gives a DM-Verity error, reset it via Wipe Data (in the Recovery menu) and delete all data, but solve the download problem.

โš ๏ธ Note: Do not use the Wipe All Data option in Recovery for models with a locked bootloader - this may lead to the impossibility of further firmware through Fastboot without unlocking.

Method 3: Fastboot Firmware (complete reinstallation of MIUI)

Fastboot is the most reliable method for recovering bricks or installing official firmware from scratch. It requires an unlocked bootloader and erases all data. For Redmi 8 Pro (olivelite), use the Mi Flash Tool (the official utility from Xiaomi) or the fastboot command manually.

Required files and tools:

  • ๐Ÿ–ฅ๏ธ Mi Flash Tool (download from official website).
  • ๐Ÿ“ Firmware in.tgz format for olivelite (unpack it into a folder without Cyrillic characters on the way).
  • ๐Ÿ”Œ Cable USB (preferably original, with data transmission support).

Instructions:

  1. Turn off the phone and press Volume down + Power to enter the Fastboot (a hare in a hat-eared hat will appear).
  2. Connect the device to your PC and start the Mi Flash Tool.
  3. In the utility, click Select and indicate the path to the unpacked firmware.
  4. Select Clean All (Full Cleaning) or Clean All and Lock (Cleaning + Lock bootloader).
  5. Press Flash and wait until it is completed (10-20 minutes).

If the Mi Flash Tool is 0x80070002 error, check:

  • The correctness of the firmware selected (should be for olivelite).
  • The lack of Chinese characters on the way to the firmware folder.
  • USB port performance (try another port or cable)

Through MIUI Updater | Through Recovery | Through Fastboot (Mi Flash Tool) |TWRP |Do not stitch it yourself-->

Method 4: Install custom firmware (TWRP + LineageOS/Pixel Experience)

Custom firmware like LineageOS or Pixel Experience offers more customization options, but requires an unlocked bootloader and TWRP installation. Unofficial builds are available for the Redmi 8 Pro as there is no official support from the development teams.

Important: Before installing custom firmware, be sure to check the compatibility of the kernel and Android version. For example, firmware based on Android 12 may not work with the kernels assembled for Android 11.

Instructions:

  1. Unlock the bootloader via the Mi Unlock Tool (can take up to 720 hours to wait for new Xiaomi accounts).
  2. Install. TWRP Fastboot: Fastboot Flash Recovery twrp-3.7.0_9-0-olivelite.img fastboot boot twrp-3.7.0_9-0-olivelite.img
  3. In TWRP, run Wipe โ†’ Format Data (enter yes for confirmation).
  4. Install firmware (Install) and, if necessary, Gapps (Google services).
  5. Reboot to the system.

After installing custom firmware, Wi-Fi or the NFC module may not work. This is due to the lack of proprietary drivers from Xiaomi. The solution is to install them manually through TWRP (look for olivelite files on XDA Developers forums).

๐Ÿ’ก

Custom firmware strips you of Xiaomiโ€™s official warranty and may contain bugs. Before installing, check reviews about a particular build on thematic forums.

Solving Firmware Errors in Redmi 8 Pro

Even if you follow the instructions, you can get errors, and the most common problems and solutions are:

Mistake.Reason.Decision
Anti-rollback check failDowngrade attempt on older version of MIUISweep the current firmware through Fastboot or contact the service
DM-Verity corruptionDamage to the system partition after firmwareRun Wipe Data in Recovery or run the full firmware through Fastboot
Mi Flash: 0x80070002The Wrong Path to Firmware or DriversCheck the path to the folder (without Cyrillic), reinstall the drivers
Hanging on the MI logoModule conflict or incomplete firmwareRepeat the firmware via Fastboot with the Clean All option

If after firmware through Fastboot the phone does not turn on and does not respond to buttons, try emergency mode EDL.

  1. Turn the phone off the PC.
  2. Close the test points on the motherboard (requires disassembly of the device).
  3. Connect to a PC โ€“ the device will be defined as Qualcomm HS-USB QDLoader 9008.
  4. Sweat through the Mi Flash Tool in EDL mode.

โš ๏ธ Attention: Regime EDL Requires an authorized Xiaomi account (for service centers). IMEI and modem lock.

How to check the success of the firmware

After the firmware is completed, you need to make sure that the system is working correctly.

  • ๐Ÿ“ž IMEI: Enter *#06# - the original must be displayed. IMEI (If not, then continue the partition via Fastboot).
  • ๐Ÿ“ถ Network: check the work SIM-map (2G/3G/4G) data transmission.
  • ๐Ÿ”‹ Charging: connect the charger โ€“ the indicator should show the charging process.
  • ๐ŸŽต Sound: Test speakers and microphone (for example, through voice recording).

If you have problems with the sensors (gyroscope, accelerometer) or the camera, the reason may be incompatibility of the firmware with the hardware platform.

  1. Install a different firmware version (for example, try EEA instead of Global).
  2. Sweep vendor and firmware files separately through Fastboot.
  3. Return to the official MIUI if the custom firmware is unstable.

๐Ÿ’ก

After you have installed the custom firmware, calibrate the battery: completely discharge the phone, then charge to 100% without interruption, which will help the system correctly determine the level of charge.

FAQ: Frequent questions about Redmi firmware 8 Pro

Can I flash Redmi 8 Pro without unlocking the bootloader?
Yes, but only through MIUI Updater or Recovery (official) ZIP-Fastboot and custom firmware require unlocking.
How to find out the anti-rollback version for Redmi 8 Pro?
The rollback version can be checked in Fastboot command: fastboot getvar anti Compare it to the version in the firmware name (for example, V12.5.1.0).
Why does the touchscreen not work after the firmware?
This is a typical problem when installing incompatible firmware. Solution: Sweat the original vendor file through Fastboot. Install firmware with the correct version of the kernel (e.g., for Android 10, not 11). Check the integrity of the touchscreen plume (may require disassembly).
How to return the official MIUI after custom firmware?
Download the official firmware in.tgz format for olivelite and swipe through the Mi Flash Tool in Clean all and lock mode. This will return stock Recovery and block the bootloader.
Where to download the official firmware for Redmi 8 Pro?
Official firmware is available on resources: MIUI Official ROMs (global and Chinese versions), Xiaomi Firmware Updater (archive of all versions), XDA Developers (custom builds and modifications). Before downloading, check the compliance of the model (olivelite) and the region (Global/EEA/China).