Why to change the firmware on Redmi 8 and what risks it carries
Xiaomi Redmi 8 (codenamed olive) came out in 2019 with MIUI 10 based on Android 9 Pie, but official support for updates has long since ceased. Users face slowdowns, lack of new features and security vulnerabilities. The change of firmware allows you to install the current version of Android (up to Android 12 through custom builds), improve performance or upgrade to a βcleanβ Android without a MIUI shell.
However, the process is not without risks. Mistakes can lead to a "brick" (complete failure of the device), loss of warranty or problems with the security system. IMEI, Wi-Fi/Bluetooth. It is especially dangerous to install firmware from other models (Redmi). 8A or Redmi 9) β This is guaranteed to knock the phone out:
- π Purpose of firmware: update Android, remove MIUI, Improve autonomy or accelerate productivity?
- π οΈ Technical Skills: Are You Ready to Work with ADB, Fastboot and manual recovery?
- π± Phone status: is the bootloader unlocked, is there a backup of data?
If youβre a beginner, start with official firmware through the Mi Flash Tool, which is the safest way. Power users may consider custom builds like LineageOS or Pixel Experience, but they require unlocking the bootloader and installing a customized recover (TWRP).
Preparation for firmware: backup and unlock the bootloader
The first step is to save all the data. The firmware erases the internal memory, including photos, contacts and messages.
- βοΈ Cloud services: Google Photos for Media, Mi Cloud for Contacts and Notes.
- πΎ Local Copy: Connect your phone to your PC and copy files from folders DCIM, Downloads, WhatsApp.
- π± Backup apps: Swift Backup (requires root) or Titanium Backup.
Next, bootloader unlocking, without which you can't install custom software. Xiaomi officially lets you unlock the bootloader, but the process takes 72 hours of waiting (related to the company's security policy).
- Link your Mi Account to your phone in Settings β Xiaomi account.
- Activate Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Enable USB Debugging and OEM Unlocking in Settings β More β For Developers.
- Download the Mi Unlock Tool and follow the instructions.
β οΈ Note: Once unlocked, the bootloader will reset and the phone will be erased to factory status. Xiaomi may also restrict access to certain features (such as Mi Pay or Find Device).
Linked to Mi Account on phone
USB debugging enabled
Developer mode activated
Backup of all data.
Installed drivers Xiaomi on PC
-->
Firmware selection: official MIUI vs custom builds
There are two types of firmware available for Redmi 8: official (from Xiaomi) and custom (from the developer community), the first is suitable for restoring functionality or upgrading to the latest supported version of MIUI 12.5 (Android 11), the second is for installing alternative OSes.
| Type of firmware | Advantages | Deficiencies | Examples |
|---|---|---|---|
| Official MIUI | Stability, OTG support, all camera features work | Advertising, limited updates, heavy shell | MIUI 12.5 (Android 11), MIUI 12 (Android 10) |
| Castomic (AOSP) | Clean Android, no ads, regular updates | The fingerprint sensor, NFC, camera may not work | LineageOS 19, Pixel Experience 12, HavocOS |
| MIA-based (MIUI-based) | Maintained MIUI functionality, but with optimizations | Fewer updates, possible bugs | MIUI EU, Xiaomi.eu, MIUI Pro |
For official firmware, use MIUI Downloads. Choose the olive version (codenamed Redmi 8). Look for firmware on the XDA Developers or 4PDA forums, but check user reviews - some builds may contain malware.
β οΈ Attention: Firmware for Redmi 8A (Olivelite) or Redmi 9 (lancelot) are incompatible with Redmi 8! Installing someone else's firmware will lead to a "brick" with an error Invalid image.
π‘
Before downloading the firmware, check its hash amount (MD5/SHA1) using the HashMyFiles utility. This will protect against fake files with viruses.
Installation of official firmware via Fastboot (Mi Flash Tool)
The most reliable way to flash Redmi 8 is to use the Mi Flash Tool in Fastboot mode, which is suitable for recovering your phone from crashes or upgrading to the latest official version.
- π₯οΈ Windows PC (7/10/11) and installed Xiaomi drivers.
- π± Phone with unlocked loader and charge β₯50%.
- π Cable USB Type-C (preferably original).
- π Firmware in.tgz or.zip format (for example, olive_global_images_V12.5.1.0.RCNMIXM_20211012.0000.00_11.0_global_1d1a2a1b2c.tar.gz).
Step-by-step:
- Unpack the firmware in a folder without Cyrillic characters (for example, C:\MIUI\olive).
- Turn off the phone and press Volume Down + Power to enter the Fastboot (a hare in a hat-eared hat will appear on the screen).
- Connect your phone to your PC and start the Mi Flash Tool.
- Click Select and point the way to the firmware folder.
- Select Clean All (Full Cleaning) or Clean All and Lock (Cleaning + Lock bootloader).
- Press Flash and wait until it is completed (5-10 minutes).
If the process is 99% frozen or there is an anti-rollback error, you are trying to install an older version of MIUI than the one already on your phone, in which case you will have to look for firmware with the same or a newer Anti-Rollback number (for example, ARB 4).
What to do if the Mi Flash Tool can't see your phone?
Install custom firmware through TWRP Recovery
To install LineageOS, Pixel Experience or other custom builds, you will need TWRP Recovery, an alternative recovery menu. The official version for Redmi 8 is available on the TWRP website.
Installation algorithm:
- Download. twrp-3.7.0_9-0-olive.img and firmware (e.g, lineage-19.1-20230610-nightly-olive-signed.zip).
- Rename TWRP to recovery.img and place it in the folder with the platform-tools (where fastboot.exe is located).
- Turn on Fastboot on your phone and connect to your PC.
- Enter the command to install the recavers: fastboot flash recovery.img fastboot boot recovery.img
- In TWRP, run Wipe β Format Data (enter yes for confirmation).
- Go to Install and select the firmware file. Wait until it's finished.
- Optionally, install GApps (Google services) and Magisk (root).
The first launch of custom firmware can take up to 15 minutes, and if the phone has been stuck on the logo for more than 20 minutes, it means that the firmware is incompatible with your model or damaged, in which case, go back to TWRP and re-install.
π‘
Custom firmware is often devoid of proprietary camera or NFC drivers. Before installing, check on the forums which features work in the selected build.
Solving common errors in firmware
Even with accurate follow-up, there can be problems, and here are the most common mistakes and ways to fix them:
| Mistake. | Reason. | Decision |
|---|---|---|
| This device is locked (in Fastboot) | The bootloader is not unlocked | Use the Mi Unlock Tool and wait 72 hours |
| Invalid sparse file format (TWRP) | Firmware file damaged | Download the firmware again and check it out. MD5-sum |
| The phone does not turn on after the firmware | Incompatible firmware or failure during installation | Repeat the firmware through Fastboot with a full clean (Clean all) |
| No command in Recovery | Failure of standard Recovery | Install TWRP with fastboot flash recovery |
If Wi-Fi, Bluetooth or camera are no longer working after firmware, it is likely that proprietary drivers are missing from the firmware. For Redmi 8, you can download them separately (look for firmware-olive.zip on 4PDA) and install them via TWRP after the main firmware.
Another common problem is bootloop.
- π΄ Incompatibility of the firmware core with the loader version.
- π΄ Absence of file vendor.img custom-made.
- π΄ Conflict with Magisk modules.
Solution: Return to TWRP, run Wipe β Advanced Wipe (check Dalvik, Cache, System, Data) and re-install the firmware.
How to return the official firmware after custom
If custom firmware was unstable or you need all the features of MIUI (for example, for Mi Band or Mi Home), you can return to the official software.
- Download Fastboot firmware for your model from the official website.
- Unpack the archive and launch the Mi Flash Tool.
- Select Clean all and lock mode β this will return the stock Recovery and block the bootloader.
- After the firmware, the phone will automatically reboot to MIUI.
If you want to save the unlocked bootloader (for example, for future experiments), select Clean all mode without locking. However, note that some features (for example, Mi Pay or Find Device) may not work.
β οΈ Warning: After returning to the official firmware, all data will be erased and root access (if it was) will disappear.
π‘
If the IMEI is missing after returning to MIUI, restore it using the SN Write Tool (requires an authorized Xiaomi account and NV-data backup).