[Guide - HOW TO] Recover LG G7 (or other newer LG phones) from EDL or 9008 mode.

sourabh7625

Member
Jul 20, 2014
33
3
38
India
****** Unbrick all LG G7 models ******
********** This guide is getting updated into two methods **********


(i). Recover from any boot problem to system or download mode.(which is defined below)

This technique have been very useful to me for fixing my device and there is no any particular guide to fix brick device easily. That's why it is a must to share.
* As long as you can access EDL(9008) mode in your device you can fix your bricked device *


There are so many developers online if you can find who claim to fix or unbrick your bricked device by charging a hefty amount even after that you can not trust them.

****** I am here just to help you so if you want you can donate to me on paypal ******

This guide has been compiled to fix all the phones which are in bricked state and completely dead state as long as you can access EDL mode(which is a Qualcomm's hidden flashing mode bult into hardware) you are able to fix your phones.

This guide applies to all the following problems :
Boot loop.
Fastboot boot loop(looping in fastboot).
Stuck at LG logo.
No recovery mode.
No fastboot mode.
Red triangle(security error).
"Press key to shut" message displays.
Seems like No sign of life.
And when connects to PC :
QHSUSB BULK or QLOADER or something like that when connects to PC or red LED.

Why are you facing this problem??
Downgrading android version of your phone.
Flashing wrong recovery image.
Flashing wrong firmware/ROM.
Flashing wrong bootloader/fastboot image.
While playing with your phone just for fun.
And many more....

Tools required :
- Qualcomm USB drivers. https://mega.nz/file/YAVhFIiC#nF-cChZklhcsxMHk24GhsB6rlE119erQqmXuBu21c6c
- LG mobile drivers. https://mega.nz/file/4UU3RSJb#iJu32uFbPsSrhIPoVr-BS1f2RqHnqL95lePDhDnK7NY
- LGUP tool lab version and LGUP common dll. https://mega.nz/file/MJdjxCqb#THo7EpmCqFUNa5VHMQcWI5D6M4QcR5p2vhQ77le0Gzo
- LG V35 abl image. https://mega.nz/file/wBV3UaQK#G0bF9gYz9Jb8FjdJsCAP0wmIOSqHrOFUjvUiPOsj91Q
- LG firmware extractor. https://mega.nz/file/oZMzGS6Q#JmYlsH9YgU_CmR5Ra0gjIOg_4S6fNVFPgl3UV0BRz0s
- KDZ tools. https://mega.nz/file/hJNVWAyY#KL8dypxmDXOJ3I9njzQW2TYE-ZgrHaiwnmenNbBcGRs
- QFIL tool. https://mega.nz/file/4AdjXCAS#tWf6XUYO3OxHjZ_XDJZopOtQpVkggW2170QIKDW0JK8
- Snapdragon 845 UFS firehose. https://mega.nz/file/8Zk0AAJQ#-WBO38OBXo6TnykCoOaoXeV2zBxHaUyoq3sR6lmFTtQ
- ADB tool. https://mega.nz/file/URtWmAxZ#TRNwkp9ZQw4BG1we2cxu623fT-6O6XJsBcylNevSF0g
- Stock f/w KDZ for your particuar device no less than last working andriod and build version.
- Knowledge how to boot into EDL (without shorting test pin it can fuse device board).


* Steps :
Step 1 : uninstall all the phone related drivers and restart PC.

Step 2 : to successfully install drivers and software follow below guide -
a. open commant prompt with admin rights run these commands so windows can allow to install driver properly.
- bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
- bcdedit.exe -set TESTSIGNING ON
(these will disable driver signature enforcement and put windows into test mode)
and restart
c. install Qualcomm drivers
d. install LG mobile drivers
e. install QPST
f. install LGUP lab version and place LGUP_Common.dll in C:\Program Files (x86)\LG Electronics\LGUP\model\common\LGUP_Common.dll and restart PC

*** When you boot your phone in download mode and instead it goes into fastboot then you should first open LGUP and then connect phone in download mode because I as experienced this time somehow LGUP forces the phone to stay in download mode rather than switching to fastboot ***
(
if thuis works proceed to step 9 else not then step 3)

Step 3 : open LG firmware extract and click open in KDZ row and select downloaded firmware kdz and let it load then check G710xx something from list and click extract if there is any error in log then your kdz file is corrupted, if success then it will produce a DZ file and now in DZ row click open and select DZ file now tool will show you a long list, now select all the items and extract. This will produce so many files in LG firmware extractor folder.

Step 4 : place your kdz file in KDZ tools folder and select OneKeyExtraction.bat type Y, it will produce a dz file and several img files in a folder named as your firmware KDZ's name. copy boot_a.img , abl_a.img , laf_a.img to adb folder for fastboot flashing.

Step 5 : open QFIL from it's installation location and check build type to flat build and in programm file select prog_ufs_firehose_Sdm845_lge.elf file and in lower right corner select storage type to UFS.

Step 6 : connect your device to PC and boot into EDL mode by
a. if it is in any ON condition : POWER button + VOLUME DOWN and prepare to press VOLUME UP repeatedly as soon as phone switches off
b. if it is in dead condition : connecting to PC automatically boot into EDL mode.
if phone is connected in EDL mode now Device manager must show a device under ports tree somehting named as Qualcom HS-USB QLOADER 9008(Com_X)
* if you have bricked your device then I assume you already know how to boot into EDL mode.

Step 7 : now in QFIL select port and select your device, select Tools from QFIL toolbar and select Partition Manger, in warning window ckick OK if you've selected right 845's firehose elf file and after success it must show a list of many partions of your phone.
flashing : it's time for flashing.

*Note: select all the image files one by one in Lg firmware extract folder by typing name in file name control like as showed in screenshot Files_location.jpg.
Files_location.jpg


it will take patience because it's a manual one, order must be followed coz tha's the thing that matters...

- find select and right click on "xbl_a" then manage partition data and select load then select "xbl.elf_6"
- find select and right click on "xbl_config_a" then manage partition data and select load then select "xbl_config.ebl_902"
- find select and right click on "xbl_b" then manage partition data and select load then select "xbl.elf_6"
- find select and right click on "xbl_config_b" then manage partition data and select load then select "xbl_config.ebl_902"
- find select and right click on "tz_z" then manage partition data and select load then select "tz.mbn_134"
- find select and right click on "hyp_z" then manage partition data and select load then select "hyp.mbn_646"
- find select and right click on "boot_a" then manage partition data and select load then select "boot.img_163830"
- find select and right click on "cmnlib_a" then manage partition data and select load then select "cmnlib.mbn_81670"
- find select and right click on "cmnlib64_a" then manage partition data and select load then select "cmnlib64.mbn_81798"
- find select and right click on "boot_b" then manage partition data and select load then select "boot.img_163830"
- find select and right click on "cmnlib_b" then manage partition data and select load then select "cmnlib.mbn_81670"
- find select and right click on "cmnlib64_b" then manage partition data and select load then select "cmnlib64.mbn_81798"
- find select and right click on "abl_a" then manage partition data and select load then select "V35abl.img"
- find select and right click on "abl_b" then manage partition data and select load then select "V35abl.img"
- find select and right click on "raw_Resources_a" then manage partition data and select load then select "raw_resources.img_194918"
- find select and right click on "tz_b" then manage partition data and select load then select "tz.mbn_134"
- find select and right click on "hyp_b" then manage partition data and select load then select "hyp.mbn_646"
- find select and right click on "laf_a" then manage partition data and select load then select "laf.img_81990"
- find select and right click on "laf_b" then manage partition data and select load then select "laf.img_81990"

close partition manager and let it restart device into EDL again.

Step 8 : boot your device in fasboot which is currently in EDL mode, to do so press Power + Volume down button and ready to leave Power as soon as phone restart while keep pressing Volume down
a. open command prompt in adb folder and verify device connectivity by
fastboot devices
* it must show a device something like LMV35EAWx.
b. perform these commands, order must be followed coz tha's the thing that matters:
fastboot erase boot
fastboot erase boot_a
fastboot erase boot_b
fastboot erase abl
fastboot erase abl_a
fastboot erase abl_b
fastboot erase laf
fastboot erase laf_a
fastboot erase laf_b
fastboot flash boot boot_a.img
fastboot flash boot_b boot_a.img
fastboot flash boot_a boot_a.img
fastboot flash abl abl_a.img
fastboot flash abl_b abl_a.img
fastboot flash abl_a abl_a.img
fastboot flash laf laf_a.img
fastboot flash laf_b laf_a.img
fastboot flash laf_a laf_a.img
and let your device as it is in fastboot.
we already flashed these partions in EDL mode and flashing in fastboot confirms that partitions do not get overwritten.

Step 9 : open LGUP and somehow proceed to flashing window, where you'll find device list option and many flashing options and a firmware list below, in flashing options select Refurbish and drop your KDZ file in firmware list and follow
LGUP.jpg

a. now from phone's fastboot menu select restart and hold Volume Up now phone will show download mode bar and in few seconds LGUP will recognise your device in list same as above screenshot.
b. flash you KDZ and let your device boot into system.


Now you have a fully working device.


(ii). Recover from dead boot or no paritions list in QFIL partition manager.(hard brick)
**if you have urgency you can donate money so I can focus on yours**


I worked around G7's stock kdz and fortunately end up generating flashing file for a single partition but there are so many(100+) partitions and this single one took 1+ hour, which was hardly to arrange. You can imagine how much time 100+ partitions would take to be prepared.
Problem is I have a time consuming pay job so I can not waste my time on this unless you donate some money and get your device guaranteed recovered ASAP.

** UPDATE **
The guide I was working on, was more complex for noob to understand.
be patience I am slowly working with python scripts and a easy guide which will help you to flash empty device.

***use rawprogram and patch at your risk because it will result in 0 IMEI problem that causes no network signal but your device will be fixed***
And if anyone want to flash firmware through QFIL in that case I am also attaching G710EAW partition.xml , rawprograms.xml, patch.xml and flashable gpt_main & gpt_backup bin.


Thanks for your support.
Questions are welcome.


THANKS SO MUCH
 
Last edited:

sourabh7625

Member
Jul 20, 2014
33
3
38
India
Please, help me. My LG got Red Case, can not enter edl mode or download mode. What shouold i do?

As far as I know Red Case is mostly a result of messing with your phone through EDL.

I have already explained how to boot in EDL :
(i). POWER button + VOLUME DOWN and prepare to press VOLUME UP repeatedly as soon as phone switches off

once your device connected in EDL mode Device manager must show a device under ports tree something named as Qualcom HS-USB QLOADER 9008(Com_X)
 
Last edited:

Xellas17

New member
Jan 20, 2021
1
0
11
Hi! I'm from Cost Rica (G710EM20a)

Can you help me? I did all the steps and my phone stays on the logo and erasing ring.

I don't know what else to do...
 

yasir.asf

New member
Jan 13, 2021
4
0
11
As far as I know Red Case is mostly a result of messing with your phone through EDL.

I have already explained how to boot in EDL :
(i). POWER button + VOLUME DOWN and prepare to press repeatedly VOLUME UP as soon as phone switches off

once your device connected in EDL mode Device manager must show a device under ports tree something named as Qualcom HS-USB QLOADER 9008(Com_X)
Yeah I know, i read full the guide.
I can't enter EDL mode, but finally my phone turns on by flashing stock boot.img in fastboot mode.
 

Mr.Conkel

Senior Member
Oct 10, 2020
159
29
38
London
Is there any possibility that you can restore partitions? As my device has nothing to select in Edl mode so I cannot restore it, meaning nothing is in the partition data but I do have full access to edl..
 

sourabh7625

Member
Jul 20, 2014
33
3
38
India
Hi! I'm from Cost Rica (G710EM20a)

Can you help me? I did all the steps and my phone stays on the logo and erasing ring.

I don't know what else to do...
I am aware about this kinda bootloop, probably it's a result of flashing either different firmware or an older firmware and perhaps disconnecting or exit LGUP before letting the phone goes into system completely.

I suggest you to try flashing latest firmware available for your device through LGUP(select refurbish) and let it boot into system successfully and wait about 3-5 minutes to let LGUP finalizing flashing before disconnecting phone or exit LGUP.
 

sourabh7625

Member
Jul 20, 2014
33
3
38
India
Yeah I know, i read full the guide.
I can't enter EDL mode, but finally my phone turns on by flashing stock boot.img in fastboot mode.
As I said if you bricked your phone you must have known how to connect in EDL mode(apart from EDL mode it's really hard to brick 845 phone).
well if you can flash through fastboot then flash fastboot section from step8 and then open LGUP first only after that connect phone in download mode, now it should be in list.

* When you boot your phone in download mode and instead it goes into fastboot then you should first open LGUP and then connect phone in download mode because I as experienced this time somehow LGUP forces the phone to stay in download mode rather than switching to fastboot.
 

sourabh7625

Member
Jul 20, 2014
33
3
38
India
Is there any possibility that you can restore partitions? As my device has nothing to select in Edl mode so I cannot restore it, meaning nothing is in the partition data but I do have full access to edl..
Perhaps your device have a corrupt PrimaryGPT(which is a some kind of partitions table list container and it is absent in LG G7 firmware kdz)
Qfil rely on data read from device in partition manager but "flat and meta build" option is still there which forces the device to flash partitions regarding the information in rawprogram.xml and patch.xml files.
Unfortunately I don't have these files but I'll update you for an alternative solution.
 

Mr.Conkel

Senior Member
Oct 10, 2020
159
29
38
London
Perhaps your device have a corrupt PrimaryGPT(which is a some kind of partitions table list container and it is absent in LG G7 firmware kdz)
Qfil rely on data read from device in partition manager but "flat and meta build" option is still there which forces the device to flash partitions regarding the information in rawprogram.xml and patch.xml files.
Unfortunately I don't have these files but I'll update you for an alternative solution.
Well I seen this forum looking for answer but this is not my particular device however I will explain . I have an Lg G8x ThinQ and when we got root I was naive and had accidentally clicked erase entire flash thinking it would just erase the partition data of the one I had selected. This was not the case and it completely erased it leaving me with a blank slate with no download or even a charge screen it is basically dead unless plugged into a pc in which it will boot straight into Edl. I am not expecting your full support but I do have a device backup that I know will work with the device problem being I can't restore it because there's nothing to select! Normally I would restore the partitions one by one as you do but this is not possible since they seem to have been erased in this state. If you have any information on QFIL that would be greatly appreciated I know we're not working on the exact same device but the process is much of the same.

Cheers!
 

sourabh7625

Member
Jul 20, 2014
33
3
38
India
Well I seen this forum looking for answer but this is not my particular device however I will explain . I have an Lg G8x ThinQ and when we got root I was naive and had accidentally clicked erase entire flash thinking it would just erase the partition data of the one I had selected. This was not the case and it completely erased it leaving me with a blank slate with no download or even a charge screen it is basically dead unless plugged into a pc in which it will boot straight into Edl. I am not expecting your full support but I do have a device backup that I know will work with the device problem being I can't restore it because there's nothing to select! Normally I would restore the partitions one by one as you do but this is not possible since they seem to have been erased in this state. If you have any information on QFIL that would be greatly appreciated I know we're not working on the exact same device but the process is much of the same.

Cheers!
Alright now we know what's the problem. Best I am suggesting you to search for how to generate partition xml rawprogram xml and patch xml (or you can easily generate latter two from former one) for any newer lg device i.e. G7,V35,V40,G8s,G8X,V50 method for using any of these will work.

I am working on finding universal solution to problem.
 

kyon007

Member
Nov 17, 2020
6
0
1
[QUOTE = "sourabh7625, bài: 84338561, thành viên: 5955016"]
Được rồi, bây giờ chúng tôi biết vấn đề là gì. Tốt nhất tôi khuyên bạn nên tìm kiếm cách tạo phân vùng xml rawprogram xml và patch xml (hoặc bạn có thể dễ dàng tạo hai thứ sau từ cái cũ) cho bất kỳ thiết bị lg nào mới hơn, tức là phương pháp G7, V35, V40, G8s, G8X, V50 để sử dụng bất kỳ cái nào trong số này sẽ hoạt động.

Tôi đang nghiên cứu để tìm ra giải pháp chung cho vấn đề.
[/TRÍCH DẪN]
Tôi cũng đã gặp phải vấn đề tương tự và đang hy vọng có cách giải quyết. Tôi sử dụng g7
 

kyon007

Member
Nov 17, 2020
6
0
1
[QUOTE = "kyon007, bài đăng: 84341753, thành viên: 11250663"]
[QUOTE = "sourabh7625, bài: 84338561, thành viên: 5955016"]
Được rồi, bây giờ chúng tôi biết vấn đề là gì. Tốt nhất tôi đề nghị bạn nên tìm kiếm cách tạo phân vùng xml rawprogram xml và patch xml (hoặc bạn có thể dễ dàng tạo thứ hai sau cái cũ) cho bất kỳ lg thiết bị nào mới hơn, tức là G7, V35 phương pháp , V40, G8s, G8X, V50 để sử dụng bất kỳ cái nào trong số này sẽ hoạt động.

Tôi đang nghiên cứu để tìm ra giải pháp chung cho các vấn đề.
[/ TRÍCH DẪN]
Tôi cũng gặp phải vấn đề tương tự và tôi hy vọng có cách giải quyết. Tôi sử dụng g7
[/TRÍCH DẪN]
 

Attachments

sourabh7625

Member
Jul 20, 2014
33
3
38
India
[QUOTE = "kyon007, bài đăng: 84341753, thành viên: 11250663"]
[QUOTE = "sourabh7625, bài: 84338561, thành viên: 5955016"]
Được rồi, bây giờ chúng tôi biết vấn đề là gì. Tốt nhất tôi đề nghị bạn nên tìm kiếm cách tạo phân vùng xml rawprogram xml và patch xml (hoặc bạn có thể dễ dàng tạo thứ hai sau cái cũ) cho bất kỳ lg thiết bị nào mới hơn, tức là G7, V35 phương pháp , V40, G8s, G8X, V50 để sử dụng bất kỳ cái nào trong số này sẽ hoạt động.

Tôi đang nghiên cứu để tìm ra giải pháp chung cho các vấn đề.
[/ TRÍCH DẪN]
Tôi cũng gặp phải vấn đề tương tự và tôi hy vọng có cách giải quyết. Tôi sử dụng g7
[/TRÍCH DẪN]
from the first image, click save partition file and share here that generated xml.
also share rawprogram xml you are using.
 

kyon007

Member
Nov 17, 2020
6
0
1
[QUOTE = "sourabh7625, bài đăng: 84344379, thành viên: 5955016"]
từ hình ảnh đầu tiên, nhấp vào lưu tệp phân vùng và chia sẻ tại đây xml đã tạo.
cũng chia sẻ rawprogram xml mà bạn đang sử dụng.
[/TRÍCH DẪN]
Tôi sử dụng file from dzextracted
[URL opensurl = "true"] https://forum.xda-developers.com/t/...rdbrick-or-red-case-in-9008-mode-without-any- hộp.4052841 / [/ URL]
 

Attachments

Last edited:

sourabh7625

Member
Jul 20, 2014
33
3
38
India
[QUOTE = "sourabh7625, bài đăng: 84344379, thành viên: 5955016"]
từ hình ảnh đầu tiên, nhấp vào lưu tệp phân vùng và chia sẻ tại đây xml đã tạo.
cũng chia sẻ rawprogram xml mà bạn đang sử dụng.
[/TRÍCH DẪN]
Tôi sử dụng file from dzextracted
[URL opensurl = "true"] https://forum.xda-developers.com/t/...rdbrick-or-red-case-in-9008-mode-without-any- hộp.4052841 / [/ URL]
As I thought your phone have a blank storage ufs like a new HDD which does not have any physical partitions. physical partitions must be made first before anything.
Currently I can offer only stock original partition0.xml for LG G7, which is a physical partitions table. if you can use any other tool to make partitions through it, let me know..

If you can use english that will be time saving for other members and might also help you.
 
Last edited:

kyon007

Member
Nov 17, 2020
6
0
1
As I thought your phone have a blank storage ufs like a new HDD which does not have any physical partitions. physical partitions must be made first before anything.
Currently I can offer only stock original partition0.xml for LG G7, which is a physical partitions table. if you can use any other tool to make partitions through it, let me know..

If you can use english that will be time saving for other members and might also help you.
can you give me your misc partition file
I want to try some things