How to reflash Xiaomi Mi 8A: official and custom firmware

Xiaomi Mi 8A (codenamed olivelite) is a budget smartphone of 2019, which is still popular due to balanced performance and support for custom firmware. However, over time, even this device begins to β€œbrake” on stock MIUI, and official updates stop coming out. Flashing can return the device to its former performance, add new features or even install Android 13/14 through informal builds.

In this guide, we will analyze all the current ways to flash the Mi 8A: from the official update via MIUI Updater to install custom firmware like LineageOS or Pixel Experience. Particular attention will be paid to unlocking the bootloader - without it it it is impossible to install alternative software, and the process has nuances for this model, you will also learn how to avoid the "brick" (turning the phone into a "brick") and what to do if something goes wrong.

Preparation for Firmware Reflashing: What You Need to Know Before Starting

Firmware is not just a system upgrade, it is a complete software replacement. For the Xiaomi Mi 8A, the process is complicated by the fact that the manufacturer blocks the bootloader, and it must be unlocked officially through the Mi Unlock Tool. Without this step, custom firmware installation is impossible.

Before you start, check:

  • πŸ”‹ Battery charge at least 60 percent. If discharged during firmware, the phone may fail.
  • πŸ“± Device model – flashing from another model (for example, Mi 8 Lite) will lead to inoperability.
  • πŸ” Backup – all data (photos, contacts, messages) will be deleted. Use Mi Cloud or Google Drive.
  • πŸ–₯️ Computer – to unlock the bootloader and firmware through Fastboot you need a Windows PC (Linux/macOS Require additional drivers).

Also prepare:

  • πŸ”Œ Cable USB β€” Original or high quality (cheap cables can interrupt the connection).
  • πŸ“ Firmware – official (from the Xiaomi website) or custom (from the forum) XDA).
  • πŸ› οΈ Tools: Mi Flash Tool (for official firmware), Platform Tools (for Fastboot), TWRP (custom-fix).

⚠️ Attention: If your Mi is yours 8A It was purchased in China (the C-suffix version in the model name), and you'll need a device-linked Mi Account with a confirmed phone number to unlock the bootloader.

πŸ“Š What type of firmware do you plan to install?
Official MIUI
LineageOS (Pixel Experience)
Stock but different version (Global/EEA)
I haven't decided yet.

Step 1: Unlock the bootloader on Xiaomi Mi 8A

The bootloader on all Xiaomi smartphones is locked by default. To unlock it, you need to:

  1. Attach Mi Account to your phone in settings (Settings β†’ Xiaomi Account).
  2. Enable USB Debugging and OEM Unlock in Settings β†’ About Phone β†’ MIUI Version (tap 7 times on version to activate the developer menu).
  3. Download Mi Unlock Tool and log in to the program.
  4. Connect your phone in Fastboot mode (clip Volume down + Power when the device is off).
  5. Click Unlock in the program and wait until it is completed (usually takes 3-5 minutes).

The following are the key features for the Mi 8A:

  • πŸ”„ Once unlocked, the phone will perform a full reset (wipe).
  • ⏳ Sometimes you have to wait 72 to 168 hours after you have linked your account (Xiaomi blocks unlocking for new accounts).
  • 🚫 If the phone has been previously unlocked, re-locking is possible only through the official service.

⚠️ Note: Some of the Mi's firmware 8A Option Unlocking OEM It may disappear after the updates. If it's not, it'll roll back to an older version. MIUI (for example, V12.0.3.0) often solves the problem.

β˜‘οΈ Preparation for unlocking the loader

Done: 0 / 5

Step 2: Choosing a firmware for Xiaomi Mi 8A

There are three types of firmware available for the Mi 8A:

Type of firmwareAdvantagesDeficienciesWhere to download
Official MIUIStability, OTG support, all camera features workLots of Bloatware, Advertising, Slow UpdatesOfficial website
Castomic (AOSP)Clean Android, regular updates, no adsNFC, Widevine L1 (Netflix HD) may not workXDA Developers
Ported MIUINew MIUI features on old phonePossible bugs, unstable workDeveloper Telegram chats

For beginners, it is recommended to start with the official firmware (for example, the latest stable version of MIUI 12.5 for olivelite).

  • πŸ“± Pixel Experience – pure Android with features from Google Pixel.
  • πŸ”„ LineageOS is a minimalist Android with long-term support.
  • 🎯 Havoc-OS - customizable firmware with many settings.

Before downloading, check:

  • πŸ”– The code name should be for olivelite (not platina – it is Mi 8 Lite).
  • πŸ“… Assemblage Date – Fresh firmware (2023–2026) is usually more stable.
  • πŸ”’ Type of unlocking – some custom firmware requires a relocked bootloader).

πŸ’‘

If you choose custom firmware, pay attention to user reviews in the theme on XDA. Especially check whether VoLTE (calls over 4G) works - this feature is missing on some builds.

Step 3: Install the official firmware through Fastboot

This method is suitable for recovering your phone after a crash or installing a clean version of MIUI.

  • πŸ–₯️ Computer with Mi Flash Tool.
  • πŸ“ Firmware in.tgz format (for example, olivelite_global_images_V12.0.3.0.PCPCNXM_20210310.0000.00_10.0_global_0d844b3e0f.tgz).
  • πŸ”Œ Cable USB and unlocked loader.

Step-by-step:

  1. Unpack the firmware in a folder without Cyrillic characters (for example, C:\Mi8A_firmware\).
  2. Turn off the phone and press Volume Down + Power to log into the Fastboot.
  3. Connect your phone to your PC and start MiFlash.exe.
  4. Click Select and point the way to the firmware folder.
  5. Select Clean All or Clean All and Lock (if you want to lock the bootloader again).
  6. Press Flash and wait until it is completed (5-10 minutes).

If the process is 99% frozen:

  • πŸ”„ Turn off the phone, pinch the power. + Volume up 20 seconds for forced reboot.
  • πŸ”Œ Try another one. USB-port.
  • πŸ–₯️ Run MiFlash on behalf of the administrator.

⚠️ Warning: Clean all and lock mode will block the bootloader back. If you plan to install custom firmware in the future, choose Clean all.

What if MiFlash can’t see the phone?
1. Install Google USB Driver.2 drivers. In Device Manager, check if the phone is defined as Android Bootloader Interface.3. Try using another PC or virtual machine with Windows 10.

Step 4: Install custom firmware through TWRP

LineageOS, Pixel Experience or other custom firmware will require custom recavers – TWRP. The official version for the Mi 8A is available on twrp.me (despite the name Mi 8 Lite, it is suitable for the Mi 8A, as the hardware platforms are identical).

Instructions:

  1. Download TWRP for olivelite (.img file) and firmware (.zip file).
  2. Move the firmware to the phone or SD-map.
  3. Open the command line in the folder with Platform Tools and type: fastboot flash recovery twrp-3.7.0_9-0-olivelite.img fastboot boot twrp-3.7.0_9-0-olivelite.img
  4. In TWRP, run Wipe β†’ Format Data (enter yes for confirmation).
  5. Install the firmware through Install β†’ Choose. ZIP-file.
  6. After installation, swipe Magisk (if root is needed) and restart.

Typical errors and decisions:

  • 🚫 Error 7 when installing - firmware is not suitable for your model.
  • πŸ”„ Hanging on the logo - run the Wipe Dalvik/Cache into TWRP.
  • πŸ“΅ No network – Set up vendor and firmware for your model.

For the Mi 8A, it is especially important to flash the correct modem (modem.img and vendor.img files), otherwise mobile and Wi-Fi will not work.

πŸ’‘

Custom firmware on the Mi 8A often requires additional firmware from the fireware and the vendor, without which the camera, sensors, or communication may not work.

Step 5: Solving problems after flashing

Even if installed correctly, firmware can get into trouble, and here are the most common ones and how to fix them:

Problem.Possible causeDecision
Phone not turned on (black screen)Incorrect firmware or interrupted processRepeat the firmware through Fastboot with a full clean (Clean all)
Hanging on the MI logo or downloadKernel conflict or lack of vendor filesInstall the firmware again, having previously asked for the vendor and firmware
No mobile network or Wi-FiThere is no modem or incorrect firmware regionScroll the right modem.img for your region (EEA/Global)
The camera is not working or it makes an error.Libcamera libraries are not availableInstall the patch. ANX_Camera Or run a stock vendor

If your phone has turned into a brick (no button response, no PC detection), try:

  1. Press Power + Volume up for 30 seconds (hardware reset).
  2. Connect to charging for 1-2 hours - sometimes helps with the discharge of the battery.
  3. Squeeze through EDL-Mode (requires an authorized Xiaomi account and boxing Mi Flash Pro).

There is a loophole for the Mi 8A to recover through EDL without boxing, with the MiFlashPro utility and the patched firehose file, but this method requires experience and can lead to a complete loss of warranty.

Step 6: Optimize the system after flashing

After successful firmware installation, several steps are recommended to improve performance and stability:

  • πŸ”§ Setting up Dalvik/Cache: V TWRP run the Wipe β†’ Advanced Wipe β†’ Dalvik / ART Cache.
  • πŸ“΅ Battery calibration: Discharge the phone to 0%, then charge to 100% without interruptions (helps to reset incorrect battery data).
  • πŸ›‘οΈ Disabling unnecessary services: In the developer settings (Settings) β†’ The phone. β†’ Version. MIUI) Turn off animations and background processes.
  • πŸ”„ Magisk Update: If you use root, update Magisk and modules through Magisk Manager.

For custom firmware on the Mi 8A, it is useful to install:

  • 🎯 NikGapps – Google’s Minimum Service Package (Saves Space and Battery).
  • πŸ”‹ Kernel Adiutor – for fine tuning the core and increasing autonomy.
  • πŸ“± GCam – ported camera app from Google (better than stock on many firmware).

If after firmware the phone became faster discharge, check:

  • πŸ”Œ Background processes in Settings β†’ Battery.
  • πŸ“‘ Mobile Communications – Only Enable 3G roaming, if 4G unstable.
  • πŸ”„ Auto Sync – Disable unnecessary accounts in Settings β†’ Accounts.

FAQ: Frequent questions about reflashing Xiaomi Mi 8A

Can I flash the Mi 8A without unlocking the bootloader?
No. Installing any unofficial firmware requires an unlocked bootloader, with the only exception being an upgrade via MIUI Updater (but this is not a flashing, but an update to the current version).
Which is the best firmware for Mi 8A games?
For games, the official MIUI with background processes disabled or custom firmware based on Android 10 (like Havoc-OS) with the Perseus kernel are recommended. These builds are optimized for the Snapdragon 665 and give less lag in games.
Lost the data after the firmware. Can it be recovered?
If you haven't done a backup, the odds are minimal. Try programs like DiskDigger or Recuva, but they only work if the data hasn't been overwritten by the new firmware. In the future, use TWRP Backup before firmware.
How to return the stock firmware if the phone does not turn on?
Download the official firmware for olivelite and run it through Fastboot in Clean All mode. If the phone is not identified, try it. EDL-Mode (requires Xiaomi authorization).
The custom firmware doesn't work on NFC. How do you fix it?
The problem is typical for AOSP-firmware on Mi 8A. Solutions: Sweat the patch NFC_fix.zip (look 4PDA or XDA). Get back to the stock. MIUI β€” NFC It works out of the box. Try ArrowOS firmware. NFC Often works without additional patches.