yashsingh1/xdaforums huggingface dataset:
[LG G7 ThinQ  Guides, News, & Discussion] kvbkiran:
For the people who are facing issue with python: Installing python, its runtime and updating its enviornment path is very hard to do now a days.

Instead, we can just install python from microsoft store. It will install python, install its runtime and update its path in the environment. Going this way is very less prone to have issues with installing zstandard and extracting kdz and dz.

After installing zstandard, if you still faces issue with extraction, update the zstandars's folder(which is script folder) in the enviornment path.
[LG G7 ThinQ  Guides, News, & Discussion] keltix:
how do i get laf_a, i have tried extracting the kdz i get 0 bites of file

Don't mind, I found the solution
[LG G7 ThinQ  Guides, News, & Discussion] khan Nadeem:
I have 2 LG G7 models G710VM21B with same software version one model got stuck in edl 9008 mode second working good i just flashed patched boot_a and b both files in stucked phone during bootloader locked now my phone stucked please help me
[LG G7 ThinQ  Guides, News, & Discussion] luridphantom:
if you search around here there are firehose files and a tutorial for bl unlocking. use that to unbrick
[LG G7 ThinQ  Guides, News, & Discussion] ocean424:
thanks a lot bro. you are great. I tried to unlock the bootloader but somehow bricked my phone. this guide really worked. Again, thanks a lot.
[LG G7 ThinQ  Guides, News, & Discussion] Aztec_native:
I know this is old, but I'm stuck in EDL mode. When extracting the DZ file, it give me "ImportError: No module named zstandard". The problem is that I know it's installed..
[LG G7 ThinQ  Guides, News, & Discussion] Eu1gen:
Can this manual be used for LG V40?
[LG G7 ThinQ  Guides, News, & Discussion] Example Man:
your link dead bro, plz reupload it
[LG G7 ThinQ  Guides, News, & Discussion] acatoan:
You still can call with imei 0? How come? I lost my imei, it show 0. Only emergency call.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Try this. I'm waiting for access from AFH.

https://mega.nz/#!HNghzYIQ!rgK_o6IXlPAXh5SITkZZVg6htkDqBLStDQL6jlaq_zI
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
Thank you

Thanks man, i will try it
[LG G7 ThinQ  Guides, News, & Discussion] loonycgb2:
Just so yall know this process should not just be for oreo only, it will and should work with all firmwares as EDL is not firmware compliant and is universal.

Also with EDL access you can either backup your qcn (nvdata backup) using qpst and msl code or backup the ftm file which keeps the serial number intact, imei is found in nvdata.
[LG G7 ThinQ  Guides, News, & Discussion] fagner:
Could someone with a good heart post the qcn to recover my g7? :)
[LG G7 ThinQ  Guides, News, & Discussion] loonycgb2:
Qcn files are specific to your phone as it will give you the same imei as whatever phone it came from.

Nobody would give you that
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
Tried it with pie for some reason it wont flash. Hers stuck at lun 0 or somethingblike thar
[LG G7 ThinQ  Guides, News, & Discussion] vikramanananda:
Hi,

Can u provide me the prog_ufs_firehose_Sdm845_lge.elf & rawprogram0.xml

for Lg G8 QM
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
This guide can provide you the firehouse. You need to extract your kdz file and dz file for your device and it'll provide you with the reprogram0.xml.

https://xdaforums.com/lg-v40/development/unlock-lg-v40-via-9008-root-t-mobile-t4042207
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
The lg g8 has a different firehose
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
Failed

Failed, this what i get when i flash it, and i cant even get to partition manger!!
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
You have to keep trying. Try changing usb ports, cables and keep exiting and entiring 9008 mode until you get to it.
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
You have to keep trying. Try changing usb ports, cables and keep exiting and entiring 9008 mode until you get to it.:fingers-crossed:
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
Thank you

[/SIZE]

I did everything, i changed the port and the usb cable, i tried everything but i couldn't get it flashed, i think my phone is dead, i will try again with other pc, thank you all for your help .

One last thing: what is the *sahara protocol* (where i get the eureur) and can i try something else?
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Try cross flashing if you have download mode. What is your model?
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
It works fine for me. The ports on these things are bad sometimes. If you can at least get into download mode that should be enough ro at least retore kdz
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
I can't access anything except fastboot, i will try other ports and cables maybe that's will work.

---------- Post added at 01:15 PM ---------- Previous post was at 01:12 PM ----------

I can only access the fastboot, i got the g710 vm model.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Are you good with qfil I can send you backups of laf_a and laf_b you can install with qfil they will give you download mode so you can flash the Verizon kdz.
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
The problem is that's the qfil didn't work on my phone (sahara protocol failed).

Thanks anyway.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Are you putting your phone in EDL mode? If you were in devices it would say 9008 mode. Makes sure you have the 9008 driver installed **not fastboot mode** qfil needs EDL mode.
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
Yes everything is good as you can see, but no response!!?
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
Install

https://github.com/pbatard/libwdi/releases/download/b721/zadig-2.4.exe

QUSB_BULK or 9008 device and replace driver with libusb 1.2.6
[LG G7 ThinQ  Guides, News, & Discussion] Aseiel:
Thanks! Just recovered my LG G710N from "Red case". And have now permament fastboot in G710N!
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
[/COLOR]

Can you explain more, i didn't understand!
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
Actually can you the process again then right click on the log windoe where it says qdmss shara failed and attach and send the log to me onr your post?

Right click and save log
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
I am at work right now, i will do it when i get home.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
I'll PM you I don't wanna hijack this thread.
[LG G7 ThinQ  Guides, News, & Discussion] avilav:
For all who are receiving sahara error.

It happens that kdztools in windows extracts files badly (it happened to me)

Finally I extracted them in Linux and it worked perfect.

I leave my work folder that works 100%, so you don't have to install linux

https://drive.google.com/file/d/19JBomkFdFglUqFhF3jFsJ-H2WJN4Dwp0/view?usp=sharing
[LG G7 ThinQ  Guides, News, & Discussion] gilnfld:
[MENTION=2914935]loonycgb2[/MENTION] [MENTION=5933283]Awesomeslayerg[/MENTION]

The KDZ/dz extraction python tool has problems extracting the LUNs partitions with several Pie KDZs I have tried and, as I might have mentioned in the telegram discussion, even when it does extract the Oreo content it doesn't always generate proper XML (rawprogram0....erc) files from the GPT. The log shows offset errors and I have had bricks happen because of such errors. A much more reliable way to do this is to use the EDL QC Diagnostic Tool python script that xsavi mentioned in the discussion board. See here: https://github.com/bkerler/edl

With Xsavi and the developers help I have been playing with this little python tool for over a week and I highly recommend this as an alternative to KDZ extraction for unbricking; it lets you do a full/partial dump off the phone LUN's/Partitions itself in EDL mode and automatically and consistently creates properly formatted and correct rawprogram0..etc xml files. Also with this script that are several tags that allows to NOT dump ALL partitions ( over 26gb if we include system and userdata) but can just include the very minimum necessary for allowing the phone to go into DL mode after which the user can do whatever they want using LGUP. A basic such ''public" dump is less than 1.5 gb. I have created one omitting userdata, sytem, fsg, modemst1 etc anyhting that is either unnecessary or contains private info such as IMEI etc.

just a suggestion,

gs
[LG G7 ThinQ  Guides, News, & Discussion] vikramanananda:
I am sorry to ask

If possible can provide me dz extract files of lg g8 Qm Model

My phone stuck in Qualcomm HS-USB QDloader 9008

I tried Extracted using Python Windows undz.py i am getting error (pls find the attachment)
[LG G7 ThinQ  Guides, News, & Discussion] motogvasyag:
Remotely via TeamViewer
[LG G7 ThinQ  Guides, News, & Discussion] jeck00119:
Sahara Error Fix

If you have Sahara error : You must immediately flash(Press Download in QFIL) after enter EDL !

This was my solution.
[LG G7 ThinQ  Guides, News, & Discussion] ghani mal:
Finely, it's worked i recoveredmy phone and updated it to Android pie (21d) ?, thank you all for helping me [MENTION=5933283]Awesomeslayerg[/MENTION], [MENTION=5094222]netookska05[/MENTION], and every body....❤️

One thing: if you get the *sahara fail* just reboot the phone and do the quacm mode again and fast click download in qfil, or change the usb cable like i did, just don't give up try multiple times and it should work

Thank you
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Glad to help.
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
It was a driver signature error. Thr driver werent installing correctly.
[LG G7 ThinQ  Guides, News, & Discussion] eisawi99:
when trying to unlock my bootloader through adb after flashing the v350 abl_a img, fastboot returns an error message after typing in " fastboot oem unlock". The error message is as follows

Failed (Write to device failed (Too many links))

after that, it returns me to a boot screen but in the top left corner in very small text, it reads "any key to shutdown" As it stands now, I have no way of booting into android and the phone is pretty much a brick. Any help would be appreciated.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
What phone model do you have?

Use qfil with the phone in EDL mode.

1.Etract the kdz and dz file for your phone and to get the eztracted partitions (boot_a, laf_a, abl1_a) you need. If you can successfully extract the dz file that's where your partition files will be. They will extract as .bin all you do is change the file extension to .img.

Maybe some one has already extracted the files. You can ask.

2. Really you just need laf_a and laf_b to get into download mode to cross flash back to your kdz or another.

3. If you get the laf_a and laf_b use qfil to restore both.

Look all the files you need for qfil.

https://xdaforums.com/lg-v40/development/unlock-lg-v40-via-9008-root-t-mobile-t4042207
[LG G7 ThinQ  Guides, News, & Discussion] avilav:
use linux live cd to install kdztools and extract the image
[LG G7 ThinQ  Guides, News, & Discussion] Kaepernick:
So, I've tried about everything I can think of and I just can't get this to work. I tried rooting using this thread, https://xdaforums.com/lg-g7-thinq/how-to/how-to-bootloader-unlock-g7-thinq-t-t3963568

I downloaded the supposed magisk enabled software, but after installing magisk manager, it didn't detect magisk as running. So, in my infinite wisdom, I rooted using Magisk manager. Now, I get this screen when I turn it on: (screen shot is in attachments).

I can access download mode, but nothing detects the phone. I tried a few different versions of lgup and it won't detect the phone. I tried the common dll and put it in the right directory.

I tried the method in this thread, but it won't work. I don't think I did it right

I was in download mode when I tried. I tried to access 9008 mode, whatever that is, but I couldn't. Either that, or I didn't do it right. Any help would be appreciated.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
If you can get into download mode crossflash the kdz you were on before.

Is your bootloader unlocked?

Here's a thread that'll help you crossflash via command prompt.

Read it carefully make sure the command has the path to where you downloaded your kdz too.

https://xdaforums.com/lg-g7-thinq/how-to/cross-flash-oreo-pie-firmwares-lg-g7-g7-t3915303
[LG G7 ThinQ  Guides, News, & Discussion] byteTravell3r:
Well, it's not working on TMobile G7...
[LG G7 ThinQ  Guides, News, & Discussion] jeanC26:
Pleasee help!

Somebody can help me? I have the sahara error
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Not sure what your referring to. What doesn't work on T-Mobile?

Most of the guides specifically state does not work with T-Mobile.
[LG G7 ThinQ  Guides, News, & Discussion] Kaepernick:
No, I don't think it is. I can enter fastboot where it says "welcome to fastboot for bootloader unlock", but the screen doesn't last long before it reboots to that screenshot I posted.

I'm pretty sure it isn't a t-mobile g7. I turned it on and there were no logos or anything. Just assumed it's the unlocked no-carrier version.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Check your Qualcomm HS-USB QDLoader 9008 driver.

Run Qfil with administrator privileges.

Do you have QPST installed as well if not uninstall qfil and reinstall QPST with Qfil as well.

---------- Post added at 04:24 PM ---------- Previous post was at 04:17 PM ----------

If your bootloader is not unlocked you can't root it until it's unlocked.

If you know how to put the phone in EDL mode use qfil you can install the laf_a.img to get download mode to work and crossflash back to the kdz you were on before. I would use the OULM11g kdz.

I have extracted the 11g kdz if you need the laf_a and laf_b imgs.
[LG G7 ThinQ  Guides, News, & Discussion] jeanC26:
no work bbro!

---------- Post added at 03:42 PM ---------- Previous post was at 03:39 PM ----------

2020-03-10 11:38:17.844 Start Download

2020-03-10 11:38:17.852 Program Path:C:\Python27\kdztools-master\dzextracted\prog_ufs_firehose_Sdm845_lge.elf

2020-03-10 11:38:17.855 ***** Working Folder:C:\Users\Proyecto1\AppData\Roaming\Qualcomm\QFIL\COMPORT_5

2020-03-10 11:39:47.946 Binary build date: Apr 27 2018 @ 03:04:33

2020-03-10 11:39:47.947 QSAHARASERVER CALLED LIKE THIS: 'C:\Program Files (x86)\Qualcomm\QPST\bin\QSaharaServer.ex'Current working dir: C:\Users\Proyecto1\AppData\Roaming\Qualcomm\QFIL\COMPORT_5

2020-03-10 11:39:47.948 Sahara mappings:

2020-03-10 11:39:47.949 2: amss.mbn

2020-03-10 11:39:47.950 6: apps.mbn

2020-03-10 11:39:47.951 8: dsp1.mbn

2020-03-10 11:39:47.952 10: dbl.mbn

2020-03-10 11:39:47.952 11: osbl.mbn

2020-03-10 11:39:47.953 12: dsp2.mbn

2020-03-10 11:39:47.954 16: efs1.mbn

2020-03-10 11:39:47.956 17: efs2.mbn

2020-03-10 11:39:47.957 20: efs3.mbn

2020-03-10 11:39:47.958 21: sbl1.mbn

2020-03-10 11:39:47.959 22: sbl2.mbn

2020-03-10 11:39:47.959 23: rpm.mbn

2020-03-10 11:39:47.960 25: tz.mbn

2020-03-10 11:39:47.961 28: dsp3.mbn

2020-03-10 11:39:47.962 29: acdb.mbn

2020-03-10 11:39:47.963 30: wdt.mbn

2020-03-10 11:39:47.964 31: mba.mbn

2020-03-10 11:39:47.965 13: C:\Python27\kdztools-master\dzextracted\prog_ufs_firehose_Sdm845_lge.elf

2020-03-10 11:39:47.966

2020-03-10 11:39:47.967 11:39:47: ERROR: function: sahara_rx_data:277 Unable to read packet header. Only read 0 bytes.

2020-03-10 11:39:47.968

2020-03-10 11:39:47.969 11:39:47: ERROR: function: sahara_main:983 Sahara protocol error

2020-03-10 11:39:47.971

2020-03-10 11:39:47.972 11:39:47: ERROR: function: main:320 Uploading Image using Sahara protocol failed

2020-03-10 11:39:47.973

2020-03-10 11:39:47.974

2020-03-10 11:39:47.983 Download Fail:Sahara Fail:QSaharaServer Fail:Process fail

2020-03-10 11:39:47.990 Finish Download

this is my error..
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Is the phone in EDL mode if not.

[youtube]__MY0qB1G8c[/youtube]
[LG G7 ThinQ  Guides, News, & Discussion] jeanC26:
my phone only say: push any key to shutdown in the left corner on screen and can boot to qualcomload mode
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Check you PM
[LG G7 ThinQ  Guides, News, & Discussion] Kaepernick:
So, edl mode is 9008 mode? I don't know if I can put it in EDL while I have this problem. It always goes to that one screen. I can go into download mode, but you're saying I need to flash something in edl mode to get lgup to detect it?
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
Yes 9008 mode. You gotta keep trying it will go into EDL mode. Look at the video. Make sure you connect the USB while trying to put it in EDL mode so qfil will detect 9008 mode.

Once in EDL mode use Qfil to load the laf_a img so it will boot into download mode and stay allowing you to cross flash any kdz with LGUP command line.

Look for the cross flashing thread it will tell you how to enter the command and has all the tools you need to crossflash.

Here's the crossflashing thread.

https://xdaforums.com/lg-g7-thinq/how-to/cross-flash-oreo-pie-firmwares-lg-g7-g7-t3915303
[LG G7 ThinQ  Guides, News, & Discussion] Kaepernick:
Thank you! I didn't need to put it in edl mode. I put it in download mode and followed the directions in the link you posted. It worked. Now I just want to put Pie or Lineage on it and im good to go. If I do the same thing, but with the pie firmware, will it work?

Also, what's the best way to root? In the thread I used, it said edl is the best way, but I couldn't find info on how to do it.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
I forget what model if phone do you have?
[LG G7 ThinQ  Guides, News, & Discussion] bongster:
Hi there,

Ive tried to relock my bootloader (unofficial way). Sadly now i have the red case.

I tried this guide and to relock the bootloader. Qfil worked but red case stays. Unlocking doesn't work, fastboot returns a fail message.

Download mode is also still available, but after flashing red case stays.

Any suggestions?

Thx

Model: Verizon flashed to ULM
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
1. Go into Download mode and crossflash back to G710ULM11g_01_NAO_US_OP_1112.kdz and set up phone again enable developer options enable usb debugging.

2. open powershell window and enter the following commands in order without the quotes:

1. "adb reboot bootloader"

2. "fastboot oem lock"

3. "fastboot reboot"

3. Your phone will reboot and go through new setup again.

Go into Developer options again and check if "OEM unlock" is unchecked which it should be.

Your bootloader is now locked

Crossflash back to stock Profit!!!
[LG G7 ThinQ  Guides, News, & Discussion] bongster:
I had no time to try, but I'm not able to boot anything. Or does 11g don't care about the red case?

And in fastboot it looks like my bootloader is locked allready.
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
What kdz were you on when you tried locking the bootloader?

Actually you need download mode to crossflash back to 11g to relock bootloader. if you can't into

download mode you need to restore several imgs via Qfil.

If you say you can get into fast boot then run this in adb . It'll tell you if your bootloader is unlocked.

Fastboot getvar unlocked
[LG G7 ThinQ  Guides, News, & Discussion] bongster:
I fixed it.

I flashed the frp from the V40 thread mentioned in the OP with fastboot and V35 bootloader.

After that i was able to relock and flash through DM mode.

Thx for your guide!!
[LG G7 ThinQ  Guides, News, & Discussion] roberto canales:
i have a lg v50 with the same problem could you tell me what to do. have the same pro

:confuso::confuso::):):):):):):):):):):):):)
[LG G7 ThinQ  Guides, News, & Discussion] Usman076:
Somehow i lost 9008 mode. Any Hope?

my phone was bricked and lost all partitions so i tried v40 partitons backup with QFIL after flashing GPT files of LG G7 with V40xml i lost 9008 mode. is there any fix available?
[LG G7 ThinQ  Guides, News, & Discussion] Awesomeslayerg:
Does it blink red When you connect your phone?
[LG G7 ThinQ  Guides, News, & Discussion] netookska05:
If you know how to enable EDL mode use qfil load a backup of laf_a this will restore download mode.

If you still have problems load boot_a as well. I don't know what slot you are in so do this for the slot you are in if you don't know then do it for a and b.
[LG G7 ThinQ  Guides, News, & Discussion] Usman076:
Sensors inverted

Hi. I accidentally removed all partitions then somehow with some help able to flash v40 partition then change everything back to lg g7 thinq files. Lost imei but recovered.

I have a now working device but my gyro and accelerometer sensors are inverted. When i rotate device left its goes right. When i rotate vertical its inverted and vice versa. Is there any way to fix?

I also tried to re-flash persist partition with 9008 mode but nothing is helping
[LG G7 ThinQ  Guides, News, & Discussion] eisawi99:
its saying it cant find PrimaryGPT_0.bin

i can read and write partitions but when trying to download the xmls i get that error

also i can only get into edl by shorting the two points on the back of the phone. download mode is in accessible due to failed safety check. im receiving a red case error

product name reads as LM-V350ULM

device state is unlocked in red text

EDIT

nevermind, im dumb and didnt read the instructions.
[LG G7 ThinQ  Guides, News, & Discussion] Davinci50:
So did everyone who was successful take the back off to short the 2 connections together first?
[LG G7 ThinQ  Guides, News, & Discussion] Baijoosharma:
need urgent help i successfully unlocked and rooted uLM11g then cross flashed ULM 20e fast-boot lost so i used Qfil and applied same procedure on it stuck on fast boot window so i flashed Twrp-Magisk_20e_9.0-Pie_boot_a_only for few second it was showing in top corner press something to delete ..... now screen is only black

nut one hope is when i connect to Qfil it showing in port but after partion manager getting sahara fail error [;ease help :'(
[LG G7 ThinQ  Guides, News, & Discussion] Baijoosharma:
not working for me :(
[LG G7 ThinQ  Guides, News, & Discussion] Usman076:
i accidentally removed all partitions with qfil. then one friend give me lg v40 files which help me to put device in download mode.

somehow i managed to install pie of lg g7 but imei number was missing later i fixed that too but only one problem still remained, gyro and accelerometer is inverted. eg camera take picture upside down and in game gyro working in opposite direction. is there anyway to fix this?
[LG G7 ThinQ  Guides, News, & Discussion] muzammil457:
G710 EAW 9008 brick while cross flash 10s em

will this guid work for g7 plus eaw? with its own firmware file kdz dz? or your kdz is for all?

i tried many times with own dz to extract but it fails everytime. mo success. i used kdz extractor tools also but no success
[LG G7 ThinQ  Guides, News, & Discussion] Baijoosharma:
yes best of luck :fingers-crossed: For any help ping me
[LG G7 ThinQ  Guides, News, & Discussion] muzammil457:
fails

im doing but QSAHARA SERVER FAIL ERROR COMES
[LG G7 ThinQ  Guides, News, & Discussion] muzammil457:
during cross flashed g710 eaw got stuck no download no fastboot only red case

I tried every possible way to flash these files on my g7eaw at 9008 mode red case warning.