QFIL is used in flashing factory build images of QUALCOMM devices (especially Lenovo qualcomm devices). It actually targets these devices when they are connected to PC in Emergency mode (EDL) or Normal Boot up mode (HLOS).
This guide is to show you how you can use QFIL to flash devices in emergency mode ie when the phone is bricked or OS is corrupted
How to install QFIL
QFIL is found in QPST v2.7.416 and above installer package. So after installing QPST on your PC you will have QFIL.
Download QPST 2.27.420 from here
Extract an install it
How to flash your device with QFIL
Download an Install Qualcomm drivers from here
Turn off the device and connect to PC while holding volume up button so it will enter Emergency mode (EDL) NB: some phones requires you to hold both vol up and down
Launch QFIL (found in this folder C:\Program Files\Qualcomm\QPST\bin)
At the top of QFIL GUI you will see Qualcomm HS-USB QDLoader 9008 (COM XX) showing the device is connected properly
Under Select Build
Search Path >> Click Browse button, navigate and select firmware folder of the phone you want to flash
Now click Load XML button, from the dialogue box
Select rawprogram xml files and click OK
Again select patch XML files and click OK
Under Select Programmer
Programmer Path >> Click Browse button.
From dialogue box select the prog_emmc_firehose mbn file and click OK
Now click Download button
Wait for flash process to complete
When the blue progress bar reaches the end, and you see Waiting for reset done…, know that flash process is complete.
Keep calm the device will reboot by its self.
You can now setup the phone and enjoy………
If you keep getting SAHARA FAIL ERROR, copy firmware folder to C:\Program Files\Qualcomm\QPST\bin folder ie were QFIL is located.