Hovatek
  • Need instant replies? Try Private Support
  • Blog
  • Home
Login Register Ask Question Hello There, Guest!


  1. Hovatek Forum
  2. MOBILE PHONES HELP SECTION
  3. Android
Pages (2): 1 2 Next »
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5



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

hovatek
hovatek
Administrator
*******
Posts: 45,547
Threads: 1,148
Joined: Oct 2013
Reputation: 393
#1

04-02-2018, 06:45 PM

This is a step-by-step guide on how to use Qualcomm Flash Image Loader (QFIL) to flash stock rom / 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 flash Qualcomm CPU without a box or dongle. To know more about QFIL, read this post

Requirements

  • Download and Install Qualcomm USB drivers
  • Firmware  / stock rom you wish to flash
  • Download QPST and install or QFIL Standalone
  • Boot the device into Emergency Download Mode / EDL Mode
  • PC
  • USB cable

How to use QFIL


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...QFIL-1.jpg]

  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...QFIL-2.jpg]

  3. Under Select Build Type, tick Flat Build

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...QFIL-3.jpg]

  4. Under Select Programmer, click Browse

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...QFIL-4.jpg]

  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...QFIL-5.jpg]

  6. Click Load XML

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...QFIL-6.jpg]

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

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...QFIL-7.jpg]

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

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...QFIL-8.jpg]

  9. Click Download

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...QFIL-9.jpg]

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

    [Image: How-to-flash-a-Qualcomm-Android-phones-f...FIL-10.jpg]

  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...FIL-11.jpg]

Important notes
  • To flash a single file e.g recovery.img , select under search path the folder that contains ONLY the single file
  • Some Qualcomm firmware do not contain programmer files (prog_emmc_firehose_****.mbn). While its best you use a 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 backup 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. These 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 its 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 a firmware which is 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 credits 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 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



Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.


(This post was last modified: 11-09-2019, 07:54 AM by hovatek. )
Website Find
Reply
X
Thanks to hovatek



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


rikykaku
rikykaku
Enthusiastic Member
Posts: 11
Threads: 5
Joined: Jan 2019
Reputation: 0
#2

01-16-2019, 01:38 PM
But please how do i determine if a firmware in flat or meta format.
Find
Reply
X
Thanks to rikykaku



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


hovatek
hovatek
Administrator
*******
Posts: 45,547
Threads: 1,148
Joined: Oct 2013
Reputation: 393
#3

01-16-2019, 09:29 PM
(01-16-2019, 01:38 PM)rikykaku Wrote:  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.


Website Find
Reply
X
Thanks to hovatek



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


fernandoud
fernandoud
Newbie
Posts: 3
Threads: 1
Joined: Apr 2019
Reputation: 0
#4

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



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


X3non
X3non
Hovatek Representative
Posts: 12,803
Threads: 466
Joined: Jul 2014
Reputation: 255
#5

04-13-2019, 11:32 AM
(04-12-2019, 11:19 PM)fernandoud Wrote:  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://forum.hovatek.com/thread-514.html for how to create a thread

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Find
Reply
X
Thanks to X3non



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


Noblex
Noblex
Respected Member
****
Posts: 101
Threads: 14
Joined: Feb 2019
Reputation: 1
#6

04-29-2019, 04:11 PM
(04-02-2018, 06:45 PM)hovatek Wrote:  ...

I followed all the step stated, but am getting the error message
(This post was last modified: 04-30-2019, 10:56 AM by X3non. )
Find
Reply
X
Thanks to Noblex



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


Noblex
Noblex
Respected Member
****
Posts: 101
Threads: 14
Joined: Feb 2019
Reputation: 1
#7

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


Attached Files
.jpg IMG_20190429_161748.jpg Size: 439.82 KB  Downloads: 16
Find
Reply
X
Thanks to Noblex



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


Noblex
Noblex
Respected Member
****
Posts: 101
Threads: 14
Joined: Feb 2019
Reputation: 1
#8

04-30-2019, 08:44 AM
Pls help me
Find
Reply
X
Thanks to Noblex



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


X3non
X3non
Hovatek Representative
Posts: 12,803
Threads: 466
Joined: Jul 2014
Reputation: 255
#9

04-30-2019, 10:58 AM
(04-29-2019, 04:11 PM)Noblex Wrote:  I followed all the step stated, but am getting the error message

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

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

stick to your thread @ https://forum.hovatek.com/thread-27579.html

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Find
Reply
X
Thanks to X3non



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


ahhl
ahhl
Junior Member
*
Posts: 17
Threads: 1
Joined: Apr 2019
Reputation: 0
#10

11-23-2019, 12:56 PM
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


Attached Files
.txt Log.txt Size: 2.12 KB  Downloads: 1
(This post was last modified: 11-24-2019, 06:26 AM by ahhl. Edit Reason: updated with log files )
Find
Reply
X
Thanks to ahhl



You're adding reputation because of this user's post, which is linked in their profile. A comment isn't needed, but if you want to leave one, please enter it below.


« Next Oldest | Next Newest »


Pages (2): 1 2 Next »






Possibly Related Threads…
Thread / Author Replies Views Last Post
How to use QFIL to flash to a single partition on Qualcomm
X3non
0
48
Last Post by X3non
Yesterday, 10:12 AM
How to use QFIL to backup firmware from Qualcomm Android
X3non
0
118
Last Post by X3non
Yesterday, 09:47 AM
What is QFIL and how does it work?
David Ahmed
2
461
Last Post by MOUTCHATCHO24
11-08-2019, 10:50 AM
How to write IMEI to Qualcomm Android using QFIL & QCN file
hovatek
2
2,621
Last Post by X3non
09-28-2019, 09:34 AM
i fix my lg g4 on qfil 9008 and it worked for some few days and goes off again
addae
5
255
Last Post by freshtyt
09-20-2019, 10:36 AM
Qualcomm Flash Image Loader (QFIL) errors & fixes
X3non
0
177
Last Post by X3non
09-18-2019, 10:13 AM
QFIL shows the error while backup
alysatip
7
353
Last Post by hovatek
09-13-2019, 08:14 PM
QFIL Flashing Error "REDMI 2 2014818 8GB"
mousepotato
17
913
Last Post by hovatek
08-27-2019, 05:17 AM
Lenovo z6 lite qfil flash Sahara error
janii
4
711
Last Post by hovatek
08-25-2019, 12:54 AM
How to use QFIL to backup & restore QCN to Qualcomm
hovatek
4
5,118
Last Post by X3non
04-29-2019, 12:01 PM

  • View a Printable Version


Users browsing this thread: 1 Guest(s)
  1. Hovatek Forum
  2. MOBILE PHONES HELP SECTION
  3. Android

About

The Hovatek Forum is a free Tech. Support Forum. We provide solutions to all your device related problems and questions. We'll love to have you participate in discussions here whether you're a Newbie or Experienced.

         

Forum Team

Powered By MyBB. Crafted by EreeCorp.
Linear Mode
Threaded Mode