[GUIDE] How to return to Stock/Flash Images with QFIL (2024)

Search This thread

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,283
7,858
Saint Paul, Minnesota
  • Feb 19, 2019
  • #1

Here is a step by step guide on how to flash the stock rom with QFIL and by extension any image.

  1. Download and install the Qualcomm drivers from here
  2. Download either of the firmware from here
  3. Download the support files (Firehose/rawprogram0.xml/patch0.xml) here
  4. Extract the firmware and support files to the same folder so you can easily access them like your desktop
  5. Download and install QPST from here
  6. Open the QFIL application (Find it in your start menu)
  7. In the "Select Build Type" field select Flat Build
  8. In the "Select Programmer" field navigate to the folder you extracted the firmware and support files to and select the prog_emmc_firehose_8909.mbn file
  9. Select the "Load XML" button and navigate to the folder you extracted the firmware and support files to and select the rawprogram0.xml and then the patch0.xml when prompted.
  10. Plug in your tablet
  11. Run the following adb command "adb reboot edl" (Now the screen should be blank but the led light should be red)
  12. If the text at the top of the QFIL application says "No Port Available" click the "Select Port..." option and pick your device. If your device isn't showing up there you didn't install the drivers properly.
  13. Click the Download Button to begin flashing your device

So the above explains how to flash everything if you want to flash individual partitions you can edit your rawprogram0.xml to only include the ones you want. (patch0.xml stays the same) I have linked below 2 examples, one of them flashes just a boot.img and one that just flashes the recovery.img. But you aren't limited to those.

Recovery
Boot

Last edited:

  • [GUIDE] How to return to Stock/Flash Images with QFIL (2)

Reactions:

GoingForwardIn2018, nvizync and Alijosekt

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,283
7,858
Saint Paul, Minnesota
  • Feb 19, 2019
  • #2

Mine just in case

  • [GUIDE] How to return to Stock/Flash Images with QFIL (4)

Reactions:

nvizync

A

animerika

New member
Dec 12, 2013
2
0
  • Mar 30, 2019
  • #4

Managed to revive my phone using the B12 files but it crashes after completing system.img, I think the problem is userdata.img, my phone boots but I lost the imei and I don't know how to get it back, I'm still trying.

N

nyhat

New member
Jun 2, 2019
4
0
  • Jun 2, 2019
  • #5

ZTE 971 not recognized by either QPST or QFIL

Thanks for all the detailed instructions. But my ZTE 971 is not visible to either qpst or qfil eventhough the phone shows in windows 8.1. In the Developer Options menu, I noticed Select USB Configuration, RNDIS (USB ethernet) option cannot be enabled. I wonder if this has anything to do with it. OEM unlocking, USB debbugging are already selected. Any suggestions, please? Thanks.

ps. I live in Turkey. I got this phone last year from AT&T and have unlocked the sim.

G

genio99

New member
Aug 23, 2019
1
0
  • Aug 23, 2019
  • #6

My PC is not detecting my ZTE MAVEN 3

I have installed all drives but still facing the issue. I am using it on Windows 10.

000Nick

Senior Member
Nov 26, 2016
61
20
  • Dec 4, 2019
  • #7

I flashed the B13 (ZPST tool shows my device as B13) with the QFIL like your guide says and it says all completed successfully and finishes, but now my phone went from only being able to boot EDL + FTM + Recovery, to now booting directly to EDL mode, which obviously means this guide completely screwed up my phone... Thanks.

R

RedneckTechVet

New member
Aug 23, 2020
4
0
  • Aug 24, 2020
  • #8

Mega says that link for the driver is invalid, but the driver is included in your QPST download anyway.

E

enrique28166562

New member
Jan 21, 2020
1
0
  • Feb 10, 2021
  • #9

000Nick said:

I flashed the B13 (ZPST tool shows my device as B13) with the QFIL like your guide says and it says all completed successfully and finishes, but now my phone went from only being able to boot EDL + FTM + Recovery, to now booting directly to EDL mode, which obviously means this guide completely screwed up my phone... Thanks.

solucionaste hermano

Mod edit:
you solved brother

Last edited by a moderator:

saim2332

New member
Apr 7, 2021
1
0
  • Apr 7, 2021
  • #10

it says qhsusb_bulk when I connect the the software is not working in the mobile and it is stuck at bootloader screen but I used the press both buttons to go to edl mode method and it said in the device manager a device connected with name : qhsusb_bulk
help pls

Sahil_27

New member
May 15, 2023
1
0
  • May 15, 2023
  • #11

Hello All.
I am not able to get the following files

rawprogram.xml and patch.xml for LG G8x​

Please help me to get this files ASAP as i have hard bricked the mobile, all partitions deleted

AvenocturnO

New member
Jul 29, 2023
4
0
  • Jul 30, 2023
  • #12

deadman96385 said:

Here is a step by step guide on how to flash the stock rom with QFIL and by extension any image.

  1. Download and install the Qualcomm drivers from here
  2. Download either of the firmware from here
  3. Download the support files (Firehose/rawprogram0.xml/patch0.xml) here
  4. Extract the firmware and support files to the same folder so you can easily access them like your desktop
  5. Download and install QPST from here
  6. Open the QFIL application (Find it in your start menu)
  7. In the "Select Build Type" field select Flat Build
  8. In the "Select Programmer" field navigate to the folder you extracted the firmware and support files to and select the prog_emmc_firehose_8909.mbn file
  9. Select the "Load XML" button and navigate to the folder you extracted the firmware and support files to and select the rawprogram0.xml and then the patch0.xml when prompted.
  10. Plug in your tablet
  11. Run the following adb command "adb reboot edl" (Now the screen should be blank but the led light should be red)
  12. If the text at the top of the QFIL application says "No Port Available" click the "Select Port..." option and pick your device. If your device isn't showing up there you didn't install the drivers properly.
  13. Click the Download Button to begin flashing your device

So the above explains how to flash everything if you want to flash individual partitions you can edit your rawprogram0.xml to only include the ones you want. (patch0.xml stays the same) I have linked below 2 examples, one of them flashes just a boot.img and one that just flashes the recovery.img. But you aren't limited to those.

Recovery
Boot

Hi. Tryin' to return to an older firmware, or newer, i've found that in those stock firmwares there's not one "prog_emmc_firehose_8909.mbn", but there are four;

prog_emmc_firehose_8909_ddr.mbn
prog_emmc_firehose_8909_lite.mbn
validated_emmc_firehose_8909_ddr.mbn
validated_emmc_firehose_8909_lite.mbn

...and there are 3 .xml:

rawprogram_upgrade.xml
rawprogram_unsparse.xml
rawprogram0.xml

I guess that everything could be easyer if the prog_emmc_firehose_8909.mbn was in the folder, but it isn't. I think that these four xml files must be managed as Lenovo Smart Rescue Assistance does, a software that does not require user intevention, exerpts for start the device in Download Mode (terribly limited to the firmware that Lenovo/Motorola offers), but Qfil obviously requires that we choose a file.

And if i choose prog_emmc_firehose_8909_ddr.mbn or prog_emmc_firehose_8909_lite.mbn and rawprogram0.xml the download finishes well, but in just 10 seconds, obviously the image is partial, minimal, the tablet refuses to boot a all. If i choose rawprogram_upgrade.xml or rawprogram_unsparse.xml the process seems to works almost perfect, download finished ok, the tablets try to boot but ends in a bunch of yellow warnings and finally a recovery screen with less options than a normal one and the name of the rom in red.

I'm sorry for a so extended answer, is that there's not enough and clear info in the whole www, i'm really goin' crazy.

You must log in or register to reply here.

[GUIDE] How to return to Stock/Flash Images with QFIL (2024)

References

Top Articles
Latest Posts
Article information

Author: Tyson Zemlak

Last Updated:

Views: 6348

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tyson Zemlak

Birthday: 1992-03-17

Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

Phone: +441678032891

Job: Community-Services Orchestrator

Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.