• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

How To Guide Repair your ASUS ROG Phone 5 with EDL mode

Search This thread
The firehose + patch files worked for me. Thanks to Jamshid66 for sharing the full pack.

But to be clear - I used the firehose components for getting access to flashing only in my case. Have not tested the attached ROM that comes with it. If this factory rom whipes things like IMEI, or if it messes up anything between WW & CN versions and things like that, I'd be careful with using the whole thing...

Sounds like this "friend" from China downloaded the package from one of the paid sites and didn't really know how to use it, either.

Anyway, this is what I was talking about before. It was pretty easy to track down using Google and searching "edl restore wiped imei" (as in first result)

 

tgxspk

Member
Oct 8, 2021
5
2
Try flashing a good boot.img to the device from EDL. If that works it may get you from hard brick >> bootloader >> RAW flash from fastboot >> normal ASUS firmware update to whatever version you want/need.

If you just bought the device and didn't unlock it, save the headache and return it ASUS..
Yeah i will have to go to a service center and get it fixed but sadly i had it rooted so warranty is voided. This didn’t worked for me maybe a hardware problem i bought this like 2 months ago. Really disappointed.
 

DEZMAND

Member
Dec 7, 2014
11
1
ASUS ROG Phone 5
If anyone does not mind, make a copy of the copy using QPST QSN File in DIAG mode.This, you can help restore IMEI

Will help a lot

I am currently waiting for a good solution to restore IMEI
I have tried several ways and I have not received an answer yet, but if I find a suitable solution, I will definitely share it
see for a fee !!!
 
Last edited:

Attachments

  • Screenshot_20211010-121818186.jpg
    Screenshot_20211010-121818186.jpg
    113.3 KB · Views: 41
  • Like
Reactions: Mr.PvT and ps000000

Andrologic

Senior Member
Apr 29, 2016
182
1
79
Huawei Mate 20 X
ASUS ROG Phone 3
Sharing below guide per latest findings for assisting unlucky users who have bricked the ROG5 and stuck in EDL mode.

Notes:
  • I'm not responsible for any broken devices using these steps.
  • This is intended as a last resort solution for saving a fully bricked device stuck in EDL mode.
  • If your device has a working bootloader, it is strongly recommended to attempt a normal RAW flash and exhaust all other options before this.
  • Below steps will not fix lost IMEI.


Required:
  • The ROG5 factory flash package shared by @Jamshid66 in this thread (the firehose files from this specific pack are absolutely required )
  • Extracted image files ".img's" from your firmware
  • Qualcomm Flash Image Loader tool (QFIL)
  • Bricked ROG 5 in EDL mode (9008 mode)

Steps:

1. Download jamshid66's factory EDL zip and extract it to somewhere on your pc

2. If you don't have the .img's for your firmware you need to extract these too. Download the firmware file you need and do a payload dump using Pyhthon payload dumper or any other tool (there are guides showing how to do this if needed, not going to cover it here).

3. Launch the QFIL tool with Admin privileges

4. Under 'Firehose Configuration', make sure download protocol is set to "Sahara" and device type is set to "ufs" (important)

5. Connect ROG5 in EDL mode using the side port and verify it's recognized as a Qualcomm device in 9008 mode. Make sure you have no firewalls or virus protection in the way.

6. Under "Select Programmer", point the path to the extracted directory from (1)

7. Select firehose file (try "prog_firehose_ddr.elf" if it doesn't work use "prog_firehose_lite.elf" (I think I used the lite file)

8. QFIL should automatically catch the RawProgram and Patch XML's, if not, just point it to rawprogram0.xml and patch0.xml manually.


Now we're ready to flash. Do NOT use "Downlad Content" - this will start flashing the content of the possibly bad pack to your device which may break things. Instead:



Method 1 - Manual EDL Flash (tested by me and worked)

10. Under "Tools" open "Partition Manager". If you've done everything correctly, you should now have access to the partition tree of your device.

11. Select each partition one by one (example "boot")

12. Right click on the partition and select "Manage Partition Data"

13. Select "Erase" (to clean up partition and remove any bad files)

14. Repeat (12) and now select "Load Image"

15. Select the respective .img file from your extracted ROM (e.g "boot.img"). You should see a message that file has been flashed successfully in the status window.

16. Repeat (12)-(15) to rebuild all partitions

17. Once you close, QFIL will reset your device and if successful your device will leave EDL mode and start normally. You're now unbricked.


Tip: If you know the bad partition that caused your device to brick, flash that first (like boot.img) and restart - You may not need to flash everything



Method 2 - Full flash (not tested yet)

10a. Copy the firehose and rawprog+patch files to the incomplete WW/CN EDL roms posted by the OP of this thread

11a. Try to do a full flash using QFIL or MiFlash

Method 2 should be tested too. If it works it may be a more convenient way for most users.
 
Last edited:

jerryhou85

Forum Moderator
Staff member
Moderator Information
Dear all, I read all 11 pages from OP to last post in this wonderful Sunday evening... and I am sorry to say that there are too many off topic posts in this thread.

First, this thread is a howto on fixing a bricked phone and trust me, I can feel your frustration when bricked phone did not revive successfully. I have been there as well. From what I read, there is no 100% working solution right now for this issue and flashing "factory" files does not help much either. Hope you all find a good solution eventually.

Second, during this journey to "the fix", usually we need to interact with others to discuss and find a way. When I say "discuss", I mean we talk like a normal person in real life scenario to collarbrate to solve an issue, not finger pointing saying "you! do this! you! do that! and you bad!". It is not helping to solve the issue at all and it is not a good/civil way to treat a fellow member on XDA in such harsh words.

Last, 99.99% users on XDA are not paid and spend their own time to help each other. Some users may have years of knowledge and some may be rather new, but we need to respect all users' contributions because we are not born with Android knowledge but learn it step by step along the journey. No matter what answers you got, appreicate it and learn from it. "If the cap fits, wear it."

Sorry for wall of text and you may see some posts disappear from this thread. Do not worry, that's my magic. :D

Hope this is my last moderation post on this thread. After this, I may delete off topic posts without notice. :p

Regards
Jerry
Forum Moderator
 
Sharing below guide per latest findings for assisting unlucky users who have bricked the ROG5 and stuck in EDL mode.

Notes:
  • I'm not responsible for any broken devices using these steps.
  • This is intended as a solution for saving a fully bricked device stuck in EDL mode.
  • If your device has a working bootloader, it is strongly recommended to attempt a normal RAW flash and exhaust all other options before this.
  • Below steps will not fix lost IMEI/Serials.


Required:
  • The ROG5 factory flash package shared by @Jamshid66 in this thread (the firehose files from this specific pack is absolutely required )
  • Unpacked image files ".img's" from your firmware
  • Qualcomm Flash Image Loader tool (QFIL)
  • Bricked ROG 5 in EDL mode (9008 mode)

Steps:

1. Download jamshid66's factory EDL zip and extract it to somewhere on your pc

2. If you don't have the .img's for your firmware you need to extract these. Download the firmware file you need and do a payload dump using Pyhthon payload dumper (or any other tool (there are guides showing how to do this if needed. not going to cover it here).

3. Launch the QFIL tool with Admin privileges

4. Under 'Firehose Configuration', make sure download protocol is set to "Sahara" and device type is set to "ufs" (important)

5. Connect ROG5 in EDL mode using the side port and verify it's recognized as a Qualcomm device in 9008 mode. Make sure you have no firewalls or virus protection in the way.

6. Under "Select Programmer", point the path to the extracted directory from (1)

7. Select firehose file (try "prog_firehose_ddr.elf" if it doesn't work use "prog_firehose_lite.elf" (I think I used the lite file)

8. QFIL should automatically catch the RawProgram and Patch XML's, if not, just point it to rawprogram0.xml and patch0.xml manually.


Now we're ready to flash. Do NOT use "Downlad Content" - this will start flashing the content of the possibly bad pack to your device which may break things. Instead:



Method 1 - Manual EDL Flash (tested by me and worked)

10. Under "Tools" open "Partition Manager". If you've done everything correctly, you should now have access to the partition tree of your device.

11. Select each partition one by one (example "boot")

12. Right click on the partition and select "Manage Partition Data"

13. Select "Erase" (to clean up partition and remove any bad files)

14. Repeat (12) and now select "Load Image"

15. Select the respective .img file from your extracted ROM (e.g "boot.img"). You should see a message that file has been flashed successfully in the status window.

16. Repeat (13)-(15) to rebuild all partitions

17. Once you close, QFIL will reset your device and if successful your device will leave EDL mode and start normally. You're now unbricked.


Tip: If you know the bad partition that caused your device to brick, flash that first (like boot.img) and restart - You may not need to flash everything



Method 2 - Full flash (not tested yet)

10a. Copy the firehose and rawprog+patch files to the incomplete WW/CN EDL roms posted by the OP of this thread

10b. Try to do a full flash using QFIL or MiFlash

Method 2 should be tested too. If it works it may be a more convenient way for most users.
Dont use full flash because Imei has null
im tested
 
The IMEI is part of the qcn file. You need to hex edit the file with your specific IMEI in two places. A guide should have been included in the previous post about IMEI repair, but it appears that link was not the one originally removed alongside the encrypted firehose. The guide below is actually much better.


Now that there is a method to use the files, here is everything that has been collected from this and other threads. All credit goes to Qualcomm and the original people responsible for posting the individual files. I claim no ownership or responsibility.

 
Last edited:

3rehaan

Senior Member
Nov 16, 2019
52
2
ASUS ROG Phone 5
Sharing below guide per latest findings for assisting unlucky users who have bricked the ROG5 and stuck in EDL mode.

Notes:
  • I'm not responsible for any broken devices using these steps.
  • This is intended as a last resort solution for saving a fully bricked device stuck in EDL mode.
  • If your device has a working bootloader, it is strongly recommended to attempt a normal RAW flash and exhaust all other options before this.
  • Below steps will not fix lost IMEI.


Required:
  • The ROG5 factory flash package shared by @Jamshid66 in this thread (the firehose files from this specific pack are absolutely required )
  • Extracted image files ".img's" from your firmware
  • Qualcomm Flash Image Loader tool (QFIL)
  • Bricked ROG 5 in EDL mode (9008 mode)

Steps:

1. Download jamshid66's factory EDL zip and extract it to somewhere on your pc

2. If you don't have the .img's for your firmware you need to extract these too. Download the firmware file you need and do a payload dump using Pyhthon payload dumper or any other tool (there are guides showing how to do this if needed, not going to cover it here).

3. Launch the QFIL tool with Admin privileges

4. Under 'Firehose Configuration', make sure download protocol is set to "Sahara" and device type is set to "ufs" (important)

5. Connect ROG5 in EDL mode using the side port and verify it's recognized as a Qualcomm device in 9008 mode. Make sure you have no firewalls or virus protection in the way.

6. Under "Select Programmer", point the path to the extracted directory from (1)

7. Select firehose file (try "prog_firehose_ddr.elf" if it doesn't work use "prog_firehose_lite.elf" (I think I used the lite file)

8. QFIL should automatically catch the RawProgram and Patch XML's, if not, just point it to rawprogram0.xml and patch0.xml manually.


Now we're ready to flash. Do NOT use "Downlad Content" - this will start flashing the content of the possibly bad pack to your device which may break things. Instead:



Method 1 - Manual EDL Flash (tested by me and worked)

10. Under "Tools" open "Partition Manager". If you've done everything correctly, you should now have access to the partition tree of your device.

11. Select each partition one by one (example "boot")

12. Right click on the partition and select "Manage Partition Data"

13. Select "Erase" (to clean up partition and remove any bad files)

14. Repeat (12) and now select "Load Image"

15. Select the respective .img file from your extracted ROM (e.g "boot.img"). You should see a message that file has been flashed successfully in the status window.

16. Repeat (12)-(15) to rebuild all partitions

17. Once you close, QFIL will reset your device and if successful your device will leave EDL mode and start normally. You're now unbricked.


Tip: If you know the bad partition that caused your device to brick, flash that first (like boot.img) and restart - You may not need to flash everything



Method 2 - Full flash (not tested yet)

10a. Copy the firehose and rawprog+patch files to the incomplete WW/CN EDL roms posted by the OP of this thread

11a. Try to do a full flash using QFIL or MiFlash

Method 2 should be tested too. If it works it may be a more convenient way for most users.
(Sorry For My English Is Not Good !)
I Try It Method 1 : But Super.img Can't flash other Partitions will be flash and When i Finish With All Partition Complete Flash (Not Super.img)
My Device Reboot into fast boot & Stuck In Fastboot And There is No Way To Go EdL Then I'll Go EdL Manually With ( Green + Black Cabel To Hold 25 Sec )
And Then I'll Try ( 2 Method ) Flashing Complete But I Cant Flash Raw Firmware It Says : () Mapping Wrong Xrom : I Try All Raw File CN & WW And My Device Boot In This Stage
 

Attachments

  • IMG_20211009_141828.jpg
    IMG_20211009_141828.jpg
    1.7 MB · Views: 30
(Sorry For My English Is Not Good !)
I Try It Method 1 : But Super.img Can't flash other Partitions will be flash and When i Finish With All Partition Complete Flash (Not Super.img)
My Device Reboot into fast boot & Stuck In Fastboot And There is No Way To Go EdL Then I'll Go EdL Manually With ( Green + Black Cabel To Hold 25 Sec )
And Then I'll Try ( 2 Method ) Flashing Complete But I Cant Flash Raw Firmware It Says : () Mapping Wrong Xrom : I Try All Raw File CN & WW And My Device Boot In This Stage

When you get to fastboot, did you try the raw firmware?

It sounds like if you can get all the way to booting into system, you ARE restoring the phone. Did you forgot the step to modify the files for your own IMEI?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    how much does it cost to fix it please help me

    Remember how you tried to post paid solutions and your posts kept getting removed? That's because we don't charge people for that sort of thing here. The expectation is also that you won't take what we provide you and go to some other site trying to sell it. Keep that in mind.


  • 12
    If your phone can only enter EDL mode (9008 mode)

    this firmware is glad to help you. It can be flashed in through the miflash tool.

    The firmware is made through the official package

    WW_ZS673KS_18.0810.2101.95_M2.13.24.9-ASUS_1.1.46_Phone-user.raw
    CN_ZS673KS_18.0830.2101.75_M2.13.24.14.1-ASUS_1.1.62_Phone-user.raw


    without any modification, Suitable for repairing phones that can only enter edl mode (9008 mode).

    What should we do?

    1. First, the computer must install Qualcomm's driver and ASUS fastboot driver,

    otherwise the computer will not recognize the connected mobile phone

    cannot recognize the connected mobile phone.

    2.Then open the MiFlash2020-3-14 folder, open XiaoMiFlash.exe

    3. Select the unzipped images folder, It prompts that flash script cannot be found,

    just click on, it doesn't matter.

    4. Before flashing this file, please re-enter the edl mode,

    use the USB port on the left side of the phone to connect to the computer,

    and then press and hold the power button, volume + and volume-at the same time,

    and wait until the phone re-enters the edl mode.
    5. Then click "load device", see COMx, it means your phone is connected,

    then click flash, just wait a few minutes. The prompt is success, flash done,

    indicating that the flashing is complete, and now you can start your phone

    by pressing and holding the power button.

    If you are worried that there is a problem with this firmware,

    you can re-enter the fastboot mode and flash the official raw file again.


    NOTE :
    If You don't understand see the Video tutorial.
    and if you have knowledge about EDL then try it.

    All Files Link :

    Share with Credit :
    johnny & HunterTik.
    7
    Moderator Announcement!

    Thread cleaned from posts advertising paid services or violating rule no. 12 of the XDA Forum Rules.
    4
    Removed due to lack of testing and misuse
    4
    Sharing below guide per latest findings for assisting unlucky users who have bricked the ROG5 and stuck in EDL mode.

    Notes:
    • I'm not responsible for any broken devices using these steps.
    • This is intended as a last resort solution for saving a fully bricked device stuck in EDL mode.
    • If your device has a working bootloader, it is strongly recommended to attempt a normal RAW flash and exhaust all other options before this.
    • Below steps will not fix lost IMEI.


    Required:
    • The ROG5 factory flash package shared by @Jamshid66 in this thread (the firehose files from this specific pack are absolutely required )
    • Extracted image files ".img's" from your firmware
    • Qualcomm Flash Image Loader tool (QFIL)
    • Bricked ROG 5 in EDL mode (9008 mode)

    Steps:

    1. Download jamshid66's factory EDL zip and extract it to somewhere on your pc

    2. If you don't have the .img's for your firmware you need to extract these too. Download the firmware file you need and do a payload dump using Pyhthon payload dumper or any other tool (there are guides showing how to do this if needed, not going to cover it here).

    3. Launch the QFIL tool with Admin privileges

    4. Under 'Firehose Configuration', make sure download protocol is set to "Sahara" and device type is set to "ufs" (important)

    5. Connect ROG5 in EDL mode using the side port and verify it's recognized as a Qualcomm device in 9008 mode. Make sure you have no firewalls or virus protection in the way.

    6. Under "Select Programmer", point the path to the extracted directory from (1)

    7. Select firehose file (try "prog_firehose_ddr.elf" if it doesn't work use "prog_firehose_lite.elf" (I think I used the lite file)

    8. QFIL should automatically catch the RawProgram and Patch XML's, if not, just point it to rawprogram0.xml and patch0.xml manually.


    Now we're ready to flash. Do NOT use "Downlad Content" - this will start flashing the content of the possibly bad pack to your device which may break things. Instead:



    Method 1 - Manual EDL Flash (tested by me and worked)

    10. Under "Tools" open "Partition Manager". If you've done everything correctly, you should now have access to the partition tree of your device.

    11. Select each partition one by one (example "boot")

    12. Right click on the partition and select "Manage Partition Data"

    13. Select "Erase" (to clean up partition and remove any bad files)

    14. Repeat (12) and now select "Load Image"

    15. Select the respective .img file from your extracted ROM (e.g "boot.img"). You should see a message that file has been flashed successfully in the status window.

    16. Repeat (12)-(15) to rebuild all partitions

    17. Once you close, QFIL will reset your device and if successful your device will leave EDL mode and start normally. You're now unbricked.


    Tip: If you know the bad partition that caused your device to brick, flash that first (like boot.img) and restart - You may not need to flash everything



    Method 2 - Full flash (not tested yet)

    10a. Copy the firehose and rawprog+patch files to the incomplete WW/CN EDL roms posted by the OP of this thread

    11a. Try to do a full flash using QFIL or MiFlash

    Method 2 should be tested too. If it works it may be a more convenient way for most users.
    4
    Moderator Information
    Dear all, I read all 11 pages from OP to last post in this wonderful Sunday evening... and I am sorry to say that there are too many off topic posts in this thread.

    First, this thread is a howto on fixing a bricked phone and trust me, I can feel your frustration when bricked phone did not revive successfully. I have been there as well. From what I read, there is no 100% working solution right now for this issue and flashing "factory" files does not help much either. Hope you all find a good solution eventually.

    Second, during this journey to "the fix", usually we need to interact with others to discuss and find a way. When I say "discuss", I mean we talk like a normal person in real life scenario to collarbrate to solve an issue, not finger pointing saying "you! do this! you! do that! and you bad!". It is not helping to solve the issue at all and it is not a good/civil way to treat a fellow member on XDA in such harsh words.

    Last, 99.99% users on XDA are not paid and spend their own time to help each other. Some users may have years of knowledge and some may be rather new, but we need to respect all users' contributions because we are not born with Android knowledge but learn it step by step along the journey. No matter what answers you got, appreicate it and learn from it. "If the cap fits, wear it."

    Sorry for wall of text and you may see some posts disappear from this thread. Do not worry, that's my magic. :D

    Hope this is my last moderation post on this thread. After this, I may delete off topic posts without notice. :p

    Regards
    Jerry
    Forum Moderator