Hovatek Forum MOBILE Android [Tutorial] How to use Qualcomm Flash Image Loader (QFIL) to flash firmware
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[Tutorial] How to use Qualcomm Flash Image Loader (QFIL) to flash firmware

[Tutorial] How to use Qualcomm Flash Image Loader (QFIL) to flash firmware

Pages (3): 1 2 3 Next
hovatek
hovatek
hovatek
Administrator
49,570
02-04-2018, 06:45 PM
#1



This is a step-by-step guide on how to use Qualcomm Flash Image Loader (QFIL) to flash stock ROMs/firmware to Qualcomm smartphones and tablets. QPST contains this and other tools. QFIL is chip-specific so it will only work on Qualcomm devices, not Mediatek, Spreadtrum, Intel etc. It enables you to flash Qualcomm CPU without a box or dongle. To know more about QFIL, read this post

Requirements


How to use QFIL to flash Qualcomm devices


Follow the steps below to flash firmware to Qualcomm Android devices using Qualcomm Flash Image Loader (QFIL)

See the video tutorial below or at https://youtu.be/W9Cz4LwAzLg

  1. Launch QFIL

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-1.webp]

  2. Connect the device to the PC while in EDL Mode (device should be in EDL before connecting to pc). No Port Available should change to Qualcomm HS-USB QDLoader 9008

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-2.webp]

  3. Under Select Build Type, tick Flat Build

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-3.webp]

  4. Under Select Programmer, click Browse

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-4.webp]

  5. In the Window that pops up, highlight the loader file (usually named prog_emmc_firehose_****.mbn) and click Open

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-5.webp]

  6. Click Load XML

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-6.webp]

  7. In the Window that pops up, highlight the rawprogram() file then click Open

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-7.webp]

  8. Another Window will automatically pop up, highlight the patch() file then click Open

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-8.webp]

  9. Click Download

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-9.webp]

  10. QFIL should start flashing the firmware, Do Not interrupt

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...IL-10.webp]

  11. You should get Download Succeed Finish Download once QFIL has successfully flashed the firmware. Disconnect the device and boot up

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...IL-11.webp]

Important notes
  • If you encounter an error then see our list of QFIL errors
  • To flash a single file e.g. recovery.img , select under the search path the folder that contains ONLY the single file
  • Some Qualcomm firmware don't contain programmer files (prog_emmc_firehose_****.mbn). While it is best you use firmware which includes a programmer file, you can (in severe cases) use the programmer file for a Qualcomm phone with the same chipset as yours.  If you get the Sahara Fail error then try a different programmer file
  • If you can, try to back up your phone's QCN / EFS partition before flashing any ROM (whether stock or custom). Some roms / tools wipe or corrupt your EFS / QCN partition resulting in Null or Invalid IMEI, Baseband, Serial Number etc. This would result in your phone being unable to detect your SIM card's network
  • You can decide to connect the phone in Emergency Download (EDL) mode at the very beginning or just before flashing but note that the Download button will not be clickable till all the required files are loaded.
  • If you still have No Port Available after connecting the phone then either the phone isn't in EDL mode or you've not installed drivers for the phone
  • The exact button combo for booting into EDL mode varies across Qualcomm devices so ensure to run a search around booting your model into EDL
  • Do Not interrupt QFIL during flashing (till the flashing process is completed) or force-flash an incompatible firmware (bootloader) as this could result in a hard brick which would then require a USB Jig or JTAG to force the phone into Download Mode.
  • QFIL will only flash firmware in Flat Build or Meta Build format. If your firmware is an OTA update.zip or in any flashable zip format then QFIL is not suited to flash firmware
  • QFIL's default storage type for flashing is EMMC (you can tell your storage type from the file name of the programmer file). If your Qualcomm device uses UFS or SPINOR then ensure to set this under Configuration > FireHose Configuration > Device Type
  • This tool is specifically for the Qualcomm chipset so the firmware should contain the mbn file, program files Qualcomm QPST bin
  • QPST is owned by Qualcomm Technologies Incorporated so credit to them for this tool

Video Transcript
Quote:In this video tutorial, I'll be explaining how to flash a Qualcomm Android device using Qualcomm Flash Image Loader or QFIL. In order to use QFIL, you need to have installed QPST. You also need to have installed your Qualcomm USB drivers. We have a guide on how to do that and of course you need to have the firmware which you intend to flash usually in this format.

Now, once you have all these in place, the next thing you'll want to do is to launch QFIL so I'll do that by searching for QFIL. If you have a desktop shortcut you could also launch the shortcut and wait for the QFIL dashboard to come up. Alright! Great! So I have this here. Now, I have no port available so I need to connect the device in EDL Mode. Now, for this particular device, to boot into EDL, I power off the device still with the battery inside, hold both volume buttons then connect it to the PC via the USB cord.

Alright! So that changes No Port Available to Qualcomm HS-USB QDLoader. Now, the next thing you'll want to do is to load the firmware which you intend to flash. The firmware I have here is a Flat Build so under the Select Build Type, I select Flat Build then I click on Browse. Now, in this Window that opens, what you'll want to do is to navigate to the location where you have the firmware folder and then you open that and select the loader file. its usually in this format and then click on Open.

The next thing you'll want to do is to click on Load XML. Still in the firmware folder, you select the raw program file and then click on Open and then another Window will automatically open. You select the patch() file and then click on Open. Alright! So everything we need to do is in place so the next thing you'll want to do is (still with the phone connected) you click on Download and that should start the flashing process. Now, to be sure that flashing has begun ,you are going to have a blue bar loading.

That is confirmation that we have flash in progress okay? Great! So we have the blue bar loading right there so it's very important you do not interrupt the process because if you interrupt the process that is going to cause your Qualcomm Android device to get bricked and then if you are lucky, you'll be able to revive it by retrying to flash it using QFIL and if you are unlucky, you have to find a way to get the bootloader for your particular device, flash the bootloader first before you talk about flashing the firmware and that could be a very tedious process so to just avoid going through that headache, do not interrupt this process okay?

Just sit back and QFIL do its thing. So I'm at 7.21% okay 23.47% now Okay, so we are 83.83% and flashing should be completing any moment from now still have to be patient , do not interrupt the process. Okay, flashing is rounding up right now. I should get a confirmation message anytime soon showing that flash was indeed complete and successful Alright! Download Succeed. I have i right here

Finished download so you can disconnect the device and power it up. If you get an error message asking you to reset the encryption data or encryption unsuccessful just reset the phone and that should make it boot up normally.

So that's how to flash a Qualcomm Android device using Qualcomm Flash Image Loader or QFIL
This post was last modified: 16-11-2023, 04:39 PM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
rikykaku
rikykaku
rikykaku
Enthusiastic Member
11
16-01-2019, 01:38 PM
#2
But please how do i determine if a firmware in flat or meta format.
hovatek
hovatek
hovatek
Administrator
49,570
16-01-2019, 09:29 PM
#3
(16-01-2019, 01:38 PM)rikykaku But please how do i determine if a firmware in flat or meta format.

For Flat build, you select Programmer (*emmc_firehose*) file. For Meta build, you select the contents.xml and you might find multiple cache, userdata & system images.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
fernandoud
fernandoud
fernandoud
Newbie
3
12-04-2019, 11:19 PM
#4
the huawei g6 l-11 firmware doesnt have the .mbn or the xml files needed to qfil, where i can find them?
X3non
X3non
X3non
Recognized Contributor
22,062
13-04-2019, 11:32 AM
#5



(12-04-2019, 11:19 PM)fernandoud the huawei g6 l-11 firmware doesnt have the .mbn or the xml files needed to qfil, where i can find them?

create a new thread for your device issue
see https://www.hovatek.com/forum/thread-514.html for how to create a thread
Noblex
Noblex
Noblex
Respected Member
111
29-04-2019, 04:11 PM
#6
(02-04-2018, 06:45 PM)hovatek ...

I followed all the step stated, but am getting the error message
This post was last modified: 30-04-2019, 10:56 AM by X3non.
Noblex
Noblex
Noblex
Respected Member
111
29-04-2019, 04:22 PM
#7
The screenshot contains the error
Attached Files
.jpg
IMG_20190429_161748.jpg
Size: 439.82 KB / Downloads: 64
Noblex
Noblex
Noblex
Respected Member
111
30-04-2019, 08:44 AM
#8
Pls help me
X3non
X3non
X3non
Recognized Contributor
22,062
30-04-2019, 10:58 AM
#9
(29-04-2019, 04:11 PM)Noblex I followed all the step stated, but am getting the error message

(29-04-2019, 04:22 PM)Noblex The screenshot contains the error

(30-04-2019, 08:44 AM)Noblex Pls help me

stick to your thread @ https://www.hovatek.com/forum/thread-27579.html
ahhl
ahhl
ahhl
Junior Member
17
23-11-2019, 12:56 PM
#10



i just want to flash patch_recovery.img. is it possible?

from what t understand i need to create new folder, copy firehose file, rawprogam_unsparse.xml, patch0.xml and the patch_recovery.img into the new folder. is that right?

....

tested unsuccessful
This post was last modified: 24-11-2019, 06:26 AM by ahhl. Edit Reason: updated with log files
Attached Files
.txt
Log.txt
Size: 2.12 KB / Downloads: 16
Pages (3): 1 2 3 Next
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram