How to install firmware on Xiaomi Mi 8 Lite: the full guide

The Xiaomi Mi 8 Lite, launched in 2018, is still popular due to its design and balanced performance, but over time, the standard MIUI shell may not meet the demands of users: bugs appear, system slowdowns or just want a fresh Android. In such situations, the only solution is to reinstall the operating system, which requires care, but allows you to give the device a second life.

Before you start taking action, you need to clearly understand that flashing is an interference with the software of the phone. Incorrect actions can lead to loss of warranty or complete failure of the device. In this article, we will discuss proven methods of installing official and custom firmware, paying special attention to data preparation and security. You will learn about the intricacies of working with the bootloader and debugging tools.

Mi 8 Lite owners often face the challenge of changing regional software or switching to a global build, ranging from simple upgrades through the settings menu to a complex Fastboot-mode procedure, and we will take a detailed look at each step to minimize risks and ensure a successful outcome.

Preparatory phase and backup

Any operation with system files begins with preparation. The first thing you need to do is create a complete backup of all important data. Once you have the firmware, the information will be deleted, so save the contacts, photos and documents to an external medium or to the cloud, a critical step that will lead to the permanent loss of personal information.

Next, check the battery charge. The device must be charged at least by 60-70%, To avoid suddenly shutting down system partitions at a critical time, you'll also need a high-quality system partition. USB-cable, preferably original, and a Windows computer. ADB Fastboot and Mi Flash Tool for working with official images.

⚠️ Warning: Make sure you download the firmware for the platina model. Using files from other Xiaomi models, even with a similar name, is guaranteed to turn the smartphone into a brick».

To check compatibility and determine the exact model, go to the phone settings. In the About Phone section, find information about the processor and code name. For the Xiaomi Mi 8 Lite, it is always platina. If the firmware file name indicates otherwise (for example, dipper or vince), immediately stop using this file. Accuracy at this stage determines the success of the entire operation.

πŸ“Š What type of firmware do you plan to install?
Official Global
Official China + Google
Castomic (LineageOS)
Recovery after failure

Unlocking the bootloader: a mandatory step

Xiaomi blocks the Bootloader of its devices by default. This restriction does not allow you to make changes to the system partition or install a third-party Recovery. For firmware via Fastboot or custom recovery installation, unlocking the bootloader is mandatory. Without this step, the tools will give an access error.

The unlocking process requires you to link your Mi Account to your device and wait a certain time (usually 7 to 168 hours), you need to turn on the developer mode, activate the Factory Unlock option, and apply through the official Mi Unlock Tool utility. Only after successfully removing the lock, advanced methods of installing software become available.

  • πŸ”“ Unlocking allows you to install custom Recovery, such as TWRP.
  • πŸ”“ Access to full management of the phone’s memory partitions.
  • πŸ”“ There is a possibility of rolling back on older versions of Android or switching to other OS.
  • πŸ”“ Clean installation is guaranteed without residual files of the previous system.

It's worth noting that once the bootloader is unlocked, the data on the phone will be completely deleted for security reasons. This is a one-time procedure for each device unless you decide to lock it back. Once the process is complete, the phone will greet you with a screen with the unlocked bootloader logo every time it turns on.

πŸ’‘

Unlocking the bootloader is an irreversible action from the point of view of warranty, but a necessary condition for a deep modification of the Xiaomi system.

Installation of official firmware through Fastboot

The most reliable way to restore or update the system is to use Fastboot mode, which involves connecting the smartphone to the computer in a special diagnostic mode. To work, you will need a firmware archive with the extension.tgz (not.zip), and the Xiaomi Mi Flash Tool.

First, extract the contents of the firmware archive into the root folder of the disk, for example, C:\xiaomi\platina_global. The path must not contain Cyrillic or spaces, otherwise the program will fail. Launch the Mi Flash Tool on behalf of the administrator and plug the phone off, holding the power and volume buttons at the same time.

fastboot devices

Enter this command in the command line or press the Refresh button in the Mi Flash sleeve. If the device is identified, its serial number will appear in the list. Select the clean all firmware mode for complete data cleanup or clean all and lock if you want to return the bootloader lock (only for global firmware versions). Pressing the Flash button will start a process that takes 200 to 500 seconds.

β˜‘οΈ Checklist before Fastboot firmware

Done: 0 / 5

Firmware through Recovery (TWRP) manually

The method through Recovery is convenient when there is no access to a computer or you need to install a custom build. To do this, a third-party Recovery should be installed on the Xiaomi Mi 8 Lite, most often TWRP. The firmware file in.zip format is downloaded directly to the device’s internal memory or SD-map.

Enter Recovery mode by clamping down the power and volume buttons. From the TWRP menu, select Wipe and reset the Dalvik, Cache, System and Data partitions (Data format is mandatory when switching between Android versions). After cleaning, go back to the main menu and click Install, selecting the previously downloaded archive with firmware.

Type of dischargeWhat's cleansedWhen to apply
Wipe CacheTemporary application filesSmall system errors
Wipe DalvikAndroid virtual machine cacheAfter the firmware update
Format DataAll data, including internal memoryWhen switching to another OS or Android version
Advanced WipeSelective sections (System, Vendor)For advanced users when cleaning

Once you have selected the file, confirm the slider's swipe action. The installation process will take a few minutes. When completed, be sure to press the Wipe Cache/Dalvik button and then the Reboot System. The first run can last up to 10 minutes, don't worry if the Mi logo lingers on the screen.

What if TWRP doesn’t see the firmware file?
If the TWRP file manager doesn't display the archive, it's possible that the internal memory is encrypted. Try entering the screen unlock password in the window that appears, or move the firmware file to an external microSD card.

Solving Typical Errors and Problems

When you run the Mi 8 Lite, you often run into errors, and one of the most common is Missmatching image and device, which occurs when you try to flash a global version onto a Chinese device, or vice versa, if the bootloader is locked, and you either unlock the bootloader or look for the firmware that matches the region of the device.

Another common problem is the bootloop. If the phone is endlessly rebooted, try resetting your settings via Recovery (Wipe Data). If that doesn't help, it may be damaged, and you'll need to reflash through Fastboot with full formatting.

⚠️ Warning: The error "All partition flashing is not allowed" in the Mi Flash Tool means that you are trying to flash the locked bootloader with a script for unlocked.

There are also driver issues. If your computer can't see your phone in Fastboot mode, check Windows Device Manager. The device can appear as "Unknown Device." In this case, you need to manually update the driver, indicating the path to the folder with Xiaomi drivers or the universal Google USB Driver drivers.

πŸ’‘

Use it. USB-port 2.0 instead 3.0/3.1 Connecting older devices in Fastboot mode often solves problems with unstable connection.

Optimizing the system after installation

Once you have successfully installed a new firmware, the system requires initial setup: Don't rush to install hundreds of apps at once. Give your smartphone 15-20 minutes to run in the background to index files and optimize your database, which will greatly improve the autonomy and speed of the early days.

You should check for security updates in the settings menu right away. Even if you've been installing a fresh firmware, patches may have been released during the development of the firmware, and you should also adjust the energy saving settings, as the new system may otherwise consume the battery of the Mi 8 Lite.

  • πŸš€ Turn off unnecessary animations in the Developer menuΒ».
  • πŸš€ Check the permissions for Google system applications and MIUI.
  • πŸš€ Set up automatic synchronization of contacts and photos.
  • πŸš€ Remove pre-installed garbage (bloatware) if the firmware is customized.

The final touch will be to calibrate the screen and sensor if you notice a touch interface malfunctioning. Most modern MIUI or Android builds do this automatically, but custom firmware may require manual code entry into the engineering menu. Your Xiaomi Mi 8 Lite is now ready for full-fledged operation.

Is it safe to stitch your phone if the battery is worn out?
If the battery wears more than 20-30%, the voltage may drop critically during partition recording, causing the process to interrupt and the phone to break.
Can I switch from Chinese firmware to global without unlocking?
Officially, no. Transitioning between regions (CN -> Global) requires unlocking the bootloader, and trying to do that through the update menu will give you an error, and the only way is to completely flash through Fastboot with the BL unlocked.
Will IMEI reset after firmware?
When using official firmware and the right tools, IMEI is not reset because this partition is protected, but if you do not act correctly from the partition table in custom assemblies, you can theoretically lose identifiers.