How to reflash Xiaomi Mi A2 Lite: the complete guide

The Xiaomi Mi A2 Lite, part of the Android One program, once delighted users with a clean interface and timely updates. However, official support for the device has long since ceased, and it remained on an outdated version of the operating system without new security patches.

In this situation, the only way to extend the life of the gadget is to install custom firmware on your own, which allows you to get fresh Android, improve performance and expand the functionality of the device.

The process of software replacement requires careful and strict follow-up of instructions, and errors at any stage can lead to the failure of the device, so you need to carefully prepare before starting work.

Preparation for flashing and necessary tools

Before you start to take action, you should collect all the necessary components. A2 Lite, Windows-based computer and high-quality USB-cable.

Make sure to back up all the important data. During the process of unlocking the bootloader, all the information on the device will be permanently deleted.

You also need to charge your smartphone battery to at least 60-70%, and a sudden power outage while recording system partitions can turn your phone into a brick.

⚠️ Note: You perform all actions to modify the software at your own risk.The author of the article is not responsible for the possible failure of the device.

You will need special ADB and Fastboot drivers to work, which can be installed separately or used by Google’s platform tools.

Unlocking the Bootloader bootloader

The first and most important step is unlocking the bootloader, and without this procedure, you can't install third-party backups or modify system files.

Go to the phone's settings menu and find "About Phone" and press the build number seven times in a row to activate the developer mode.

Next, go to System β†’ Developer For, and turn on the "Factory Unlock" option. After that, link your Mi Account to your device.

  • πŸ“± Download the official Mi Unlock Tool utility to your computer.
  • πŸ”Œ Transfer the smartphone to Fastboot mode, clamping the volume buttons down and power.
  • πŸ”“ Run the program on PC and follow the instructions to unlock.

The process can take anywhere from a few minutes to 168 hours (7 days) if it is the first unlock for a given account.The Xiaomi security system requires a wait to protect against data theft.

πŸ“Š Have you been stuck with waiting waiting?
No, it unlocked right away.
Waited 3 days
Waited a full week
I haven't tried it yet.

After successful unlocking, an open lock icon will appear on the boot screen, confirming that the path to installing new software is open.

Installation of custom TWRP Recovery

The regular recovery menu does not allow installing third-party firmware, and for this you need to implement TWRP Recovery, a modified recovery environment.

Download the current twrp.img image specially assembled for the daisy model (codename Mi A2 Lite).

Connect your phone in Fastboot mode to your computer. Open the command line in the ADB tool folder and type in the command to run the image:

fastboot flash recovery twrp_daisy.img

It is important to prevent the phone from automatically restarting to standard mode immediately after firmware, and you need to manually switch modes using volume buttons.

⚠️ Note: If the phone boots into a normal system immediately after firmware TWRP, standard recaveri will rewrite the custom and the procedure will have to be repeated.

To fix the result, use the button combination to log into Recovery Mode or the command fastboot boot. twrp_daisy.img first-launch.

Choosing the right firmware for Xiaomi Mi A2 Lite

The choice of operating system depends on your goals: maximum stability, the latest features or minimalism. There are many options available for the Mi A2 Lite.

LineageOS, Pixel Experience and ArrowOS are popular firmware, which are based on pure Android and provide high speed.

Name of firmwareBasisStabilityRecommendation
LineageOSAndroid 11/12Tall.Daily use
Pixel ExperienceAndroid 10/11MediumGoogle fans
ArrowOSAndroid 11Very high.Maximum productivity
crDroidAndroid 11/12Tall.Fine tuning

Download firmware files only from trusted resources, such as the XDA Developers forum or official developer sites. Files usually have the.zip extension.

Where do I look for drivers?
ADB and Fastboot drivers are best downloaded from the official Android Developer website or use the minimalist installer from wugfresh, which automatically puts everything you need.

You’ll also need GApps (Google Apps) if they’re not built into firmware. Most builds recommend NikGapps or OpenGApps.

Process of installing a new operating system

After downloading the firmware file and necessary additions to the internal memory or SD-map, move to installation. TWRP Recovery.

The first thing you need to do is clear the data, and then select Wipe, then Advanced Wipe, and then select the Dalvik, Cache, System, and Data sections.

  • 🧹 Do not clean the Internal Storage section if the firmware file is there.
  • πŸ“‚ Go to the Install menu and select the downloaded firmware archive.
  • βœ… Confirm the swipe and wait for the process to end.

If the firmware does not contain built-in Google services, install the GApps archive immediately after it. Banking applications may require the installation of a Magisk patch.

β˜‘οΈ Checklist before first loading

Done: 0 / 5

After installing all the components, press Reboot System. The first download can take 3 to 10 minutes, be patient.

Solving Typical Errors and Problems

Flashing can be a complex process, and users often experience a cyclical reboot or no network.

If the phone is stuck on the logo, try to clear the Data partition again and reflash the system, and the problem may be in the incompatible version of the recaveri.

⚠️ Note: When you switch from one version of Android to another (for example, from 9 to 11), be sure to do a full reset, otherwise file conflicts will lead to errors.

The lack of communication or Bluetooth is often solved by flashing the modem and the firmware bootloader. These files must match the Android version of the firmware being installed.

For diagnostics, use system logs or refer to the developer topic on the forum. Bootloader errors often indicate damage to system partitions.

πŸ’‘

Save the original persist.img file from your device before any manipulations, and its loss can cause sensors and cameras to fail.

Final setup and optimization

After the new system is successfully launched, it is recommended to make an initial setup: Turn off unnecessary animations in the developer menu to speed up the interface.

Check all the modules: the camera, the microphone, the GPS and the fingerprint sensor. On custom firmware, the drivers may work differently.

To extend battery life, calibrate the battery and use energy-efficient cores if supported, especially for the Mi A2 Lite with its less powerful processor.

How to get back to the official firmware Xiaomi?
To return to the original state, you will need to download the Fastboot stock firmware for your regional version. Unpack the archive and use the script. flash_all.bat (Windows or flash_all.sh (Linux/Mac), You'll have to put your phone in Fastboot mode before you get it, and remember, that'll delete all the data completely.
Is it safe to use banking applications?
On an unlocked bootloader, some banks may refuse to work. To circumvent this restriction, you need to use Magisk Hide or Zygisk, hiding the fact that the system is modified from applications.
What do I do if IMEI is missing?
If the IMEI was lost after the firmware, then the persist or modem partition was damaged. It is necessary to restore the backup copy of these partitions made before the experiments, otherwise it will be impossible to restore the network without special equipment.
Do I need to format data when I first install it?
Yes, when switching from official firmware to custom or when changing the version of Android, formatting the Data (Format Data) partition is strictly necessary for the correct operation of encryption and the system as a whole.

πŸ’‘

The successful reflashing of the Xiaomi Mi A2 Lite gives the device a second life, allowing you to use modern applications and receive current security updates.