[Xiaomi Mi A2 Lite Guides, News, & Discussion] user-001:
EDL FLASHING (For windows only)​

EDL flashing can be helpful when flashing every partition of device is needed either for clean stock base or after brick or after some failure.

EDL flashing can be the final resort when everything else fails.

PREREQUISITES

1) A good USB cable, your phone

2) A PC with either windows or linux

3) Fastboot drivers from google and edl drivers from qualcomm

4) Platform tools from google

5)Fastboot rom. This should be full rom in .tgz format.

6)Xiaomi flash tool (LATEST VERSION AVAILABLE)

Install the adb and fastboot drivers from google. If you are on windows 10 or greater then you can also use "windows update > optional updates" to update adb and fastboot drivers + edl drivers. For the installation of drivers always use trusted sources and don't turn of driver signature enforcement if you can.

Extract the platform tools in a convenient folder, we will be doing our operations from this folder for fastboot and adb opeartions. Extract the fastboot ROM and place that in convenient folder as well. And for xiaomi flash tool extract the zip and launch XiaoMiFlash.exe .

If you can access fastboot in you phone then the phone can be booted into edl mode through fastboot else you have to take out back cover and short the testpoint pins to make the device boot into edl mode (see the attached image ).

If you can access fastboot. Boot into fastboot and type the following command in terminal.

To check if device is connected properly and drivers are properly installed

If no devices is shown then connect device properly with good usb cable and check the drivers.

fastboot devices

To boot phone into edl mode. This is only possible if the bootloader is unlocked else testpoint-edl is the only option

fastboot oem edl

The device should be shown as COM device in device manager ( Windows ). If not then either drivers aren't installed properly or your phone isn't in edl mode.

Now click on refresh button in xiaomi flash tool. Your device should be recognized as com device. Set the path to the images folder ( extracted fastboot rom ). Select CLEAN ALL option . If everything is good then click

on FLASH. The flashing process should start now. After the process completes keep pressing power button to boot device into the currently installed ROM.

Just install the rom and setup once even if you're going to flash custom rom next. This reduces various problems which may come in custom ROMs.

If any error occurs then try the following:

Make sure you are using latest flash tool.

Good fastboot rom (shouldn't be corrupted )

Good USB cable and try different ports of the PC.

The flashing should be done immediately after booting to edl. If not then take out battery and reconnect it if you have back cover open(In case of hard brick). Or keep pressing power button and volume down to boot into fastboot and boot to edl mode again from the above instructions(If fastboot is accessible)

For booting to edl using testpoint:

> Take out backcover

> Disconnect battery

> Short the pins

> Flash

> Connect battery after flashing is complete

> Keep pressing power button to boot into system.