yashsingh1/xdaforums huggingface dataset:
[LG V40 Guides, News, & Discussion] zfk110:
I can't pass this Download Fail:FireHose Fail:FHLoader Fail:The system cannot find the file specified I have been trying since two days, with windows 7, 10, 11 on my laptop, then I tried this on my pc and Im getting this error

11:11:49: ERROR: function: sahara_rx_data:276 Unable to read packet header. Only read 0 bytes.

2021-07-25 11:11:49.230

2021-07-25 11:11:49.231 11:11:49: ERROR: function: sahara_main:982 Sahara protocol error

2021-07-25 11:11:49.231

2021-07-25 11:11:49.232 11:11:49: ERROR: function: main:320 Uploading Image using Sahara protocol failed
[LG V40 Guides, News, & Discussion] AsItLies:
This is copied directly from the v40 tele group: (well worth joining if u have a v40):

When you get a sahara error on Qfil, change your USB port/cable.

Restart both phone and pc before trying again.

Check drivers on PC

Try reducing the COM port speed by going to device manager

Try another PC

Disable driver signature verification on Windows 10

If you run out of ideas, use a Linux installation; will save you a lot of trouble

---------

when it says 'change your USB port/cable', be sure to use a usb 2.0 port if u have it. This software does not handle the speeds of usb 3, I've had corrupted files using a 3 by mistake numerous times.

cheers
[LG V40 Guides, News, & Discussion] zfk110:
Do you know how to set this up? "use a Linux installation" for QFIL?
[LG V40 Guides, News, & Discussion] AsItLies:
Yes, but that's a bit misleading. The qfil under linux would be the bkerler python implementation, and the python scripts for everything you'd want to do. If you're not familiar with linux and python, and tracking down 'missing dependencies', then it's more involved than windows, for what most people want to do.

The bkerler python scripts are great at one thing specifically, that would be to backup your entire rom. It's worth the trouble for that, but for other things, not so much.

I'd stick with getting it to work under winblows. It takes some patience, but it will work.

cheers
[LG V40 Guides, News, & Discussion] FreeSoftwareServers:
I'm having trouble getting into fastboot w/ my sprint model. I got into 9008 mode, but I cant seem to make backups and when I flashed v35 I just got "secure startup". I managed to get back to stock via factory reset, but I'm thinking perhaps I need to wipe the LAF to get fastboot to work? When I do ADB reboot fastboot my phone just reboots. I'm on android 8 and nervous to upgrade. Any suggestions? I found some Pie_laf_stock images on the internet, but unsure if they are Sprint, does it matter? I'm nervous to wipe laf since I cant read partitions/make backups... Any help is appreciated!
[LG V40 Guides, News, & Discussion] FreeSoftwareServers:
Well... I was trying to do this on another computer and when I got home I attempted it again and was successfull straight away. I was able to read/save partitions which was a queue to me that things were different. I'm debating doing a write-up but definite speed bumbs along the way, here are my notes in case they help others! One thing I just realized I did different this time was using BCEDI to disable Driver Signaure Enforcement vs "Advanced Startup Options"...

Notes:

* Press VOL Down + Power and Hit VOL + UP repeat to get 9008

* Can get from FW Update Mode, I found easier almost to get from that mode

* Use the "disconnect" sound on Windows as indicator, but you can also just press repeatedly VOL UP while hold VOL DOWN/POWER

* Can't leave phone in 9008 mode for too long, no error will show, but SAHARA ERROR

* Don't make file path long/with space " " for flashing files in QFIL

* Use QFIL in QPST_2.7.460 found under "ProgramFiles/Qualcom/bin"

* Disable Driver Signature Enforcement to install drivers for 9008 Mode

* Manually install drivers via "Update" --> "Select Drivers" if they aren't found, but you still need to install QPST for QFIL.exe

* You CAN factory reset from "Secure Setup" if it doesn't work first time, keep trying Vol/Power Combos

* Stay on PIE if on PIE, don't upgrade!
[LG V40 Guides, News, & Discussion] AsItLies:
So, good info, and it certainly shows this can be done, but it does take some patience and some effort. We all wish it could be simple but unfortunately it's not.

One thing, you don't have to "Stay on Pie". There's no reason for that. This procedure works just as well using 'Q'. The difference would be that when you 'restore' any partition (such as abl), you use YOUR ORIGINAL partitions (from 'Q', that you saved before writing over them).

The directions were written when the OP was on Pie, so you have to keep that in mind when reading them.

cheers
[LG V40 Guides, News, & Discussion] Jwright621:
So I'm on Android ten at the moment. I'm assuming I'd need to take and flash Oreo onto my phone after unlocking it to ensure everything goes on boot smoothly right?
[LG V40 Guides, News, & Discussion] Jwright621:
Nvm found my answer in the thread
[LG V40 Guides, News, & Discussion] leonardo1992:
after load image, i cant get in fastboot

my phone have 30 times to enter password to use this phone( i dont know password what)

consequenly, i erase my phone. huhu

teach me plz, how to into the fastboot mode.
[LG V40 Guides, News, & Discussion] said_med:
plz, help ...

any solution for the "fail sahara" error on QFIL ... I think the USB connection is fine .... and I also did try different USB ports ( 2.0/3.0/3.1) ... but QFIL still giving me this error.

I am one error away from giving up on this whole nonsense LG put us through .o_O
[LG V40 Guides, News, & Discussion] AsItLies:
see post #711
[LG V40 Guides, News, & Discussion] said_med:
thanx for the reply ...

I tried all that with no success ...... the only thing I didn't try is replacing my USB cable and the Linux method .... and I am not too optimistic about them working either ...

having really bad luck with this.

The first time I thought android 10 was the problem ... so I downgraded to 9 and did all that again . with no success also ... really stuck here .. about to give up honestly
[LG V40 Guides, News, & Discussion] AsItLies:
Well, the usb cable is probably one of the most likely problems, it's one of the first things I'd try, and it's one of the easiest to do. The linux method does work but it's pretty involved, it's python based and has a command line interface, it's really best for doing a full backup, but that's about it.

good luck
[LG V40 Guides, News, & Discussion] dgm_mixtoon:
Hello, any new method for T-Mobile?
[LG V40 Guides, News, & Discussion] said_med:
oh my god I am losing it with this LG nonsense

tried a different cable with no success still giving me Sahara error :(
[LG V40 Guides, News, & Discussion] eric3231559:
This does not applicable to Singapore Version of V405EBW. I tried few rounds, it just wont get to the driver bcm 9008 mode. I did try the manual way to select the driver, but just wont work.

Tried

1. different port, different PC, different cable.

2. Disabled Driver Signature verification

3. Change back to older version firmware 9.0
[LG V40 Guides, News, & Discussion] AsItLies:
So yer obviously running into difficulties, but it's worth identifying exactly what difficulty yer experiencing: Getting the device recognized in edl / 9008 mode has absolutely zero to do with the firmware on the device.

so, to say 'not applicable to v405ebw' is an assumption you're making. But it's not born out in facts. Any of the v405 can be put in edl mode and be recognized.

here's a couple of observations: 1) different port isn't exactly what the directions say, they say use 2.0 port if possible, also. that's important, this qfil sftware is old, and absolutely not written for the speeds 3.0 ports have. 2) there's another version of the qfil stuff that is signed, I'd try to find that (from the comments) and install that.

keep trying, it DOES work, but it's basically a matter of keep trying till you find the combination for your computer, win version, etc etc etc

cheers
[LG V40 Guides, News, & Discussion] eric3231559:
Thanks mate. I give a try on other qfil.
[LG V40 Guides, News, & Discussion] SuperKamiGuru:
Any help would be appreciated

The initial guide was unclear about backing up abl_a and abl_b,

so I:

Loaded v35eng.img to abl_a

Loaded v35eng.img to abl_b

Erased laf_a

Erased laf_b

Booted into fastboot

Unlocked the bootloader

I then realized the adl backup images were supposed to then be flashed onto the device, but since I never backed mine up, I'm stuck.

What are my options?

(Sprint variant running Android 10 iirc)
[LG V40 Guides, News, & Discussion] skippybosco:
First, thank you con_ritmo for this great guide. It got me quickly unlocked and rooted.

One thing missing from your list of steps is to install dm-verity when it TWRP, without this you'll continue to get an encryption error bootloop.

Thanks again for the great guide and continued support.
[LG V40 Guides, News, & Discussion] AsItLies:
Do u happen to remember which version of sprint android 10? b? c? d? etc.

It's possible they are around, I'll look. Also, I'm guessing, but you probably didn't back up the laf partitions either? I'll look for those also, maybe someone has posted them.

As far as the guide goes, a general rule everyone should follow: if you ever overwrite a partition, save the original off first. It's kind of just common sense?

Another point would be 'always read completely through a guide at least once, before doing anything'.

It's important to understand; guides we find on xda aren't written by 'oem technical support people', they are written by people like you and me. And we aren't getting paid for writing the guide, and it's not being 'reviewed' by others. Given that, I always look at the comments after the guide to determine if there are obvious errors, something doesn't work, someone posts an easier way to do some part, etc etc etc.

cheers

laf partitions, those are needed if you ever want lgup (download mode) again.
[LG V40 Guides, News, & Discussion] athoti:
So I'm not entirely sure what's going on with my phone. I had deleted laf_a and b (I supposed that's what 'nuke' means) but then there was nothing in qfil, so I had to install the 7 luns. My phone was Verizon but since I was provided with AT&T backup with the 7 luns, it's now on AT&T version V35010d. Of course IMEI was deleted so I'll have to restore that.

I loaded the V35 engineering bootloader to both abl_a and abl_b, fastboot and it's now successfully unlocked. But how does step 3 work: "fastboot flash abl_a path/to/ablpiestock.img" ? I didn't backup the original abl_a and b but I do have them from the AT&T backup. They are on C:/LG V40. "fastboot flash abl_a C:\LG V40" says "No such file or directory" I tried others things without any success.

But the phone boots as AT&T 8.1, LG V40 I presume though fastboot is still on LM-V350.

My scope is to flash lineageos and it's the most tedious process I've ever had for a smartphone...

Many thanks!
[LG V40 Guides, News, & Discussion] AsItLies:
Yes it is a tedious process, but boy do you ever learn a a lot! If there's any consolation, that would be it.

First, the v35 eng abl is Oreo based. It can be used to just go to fastboot and unlock the bootloader, but it won't 'boot' the device unless it's also running Oreo. That's why, after unlocking the bootloader, you need to flash back the original abl (for your current OS).

The fastboot command you used isn't correct. Just as the error output says; 'no such file', that's because you only indicated the directory, not the file in the directory, which is what it's suppose to be.

But, if your goal is lineage, you're going to need the latest firmware available, for that, I'd suggest using the VZW kdz and flash it with LGUP. To get that to work you need the laf files flashed back.

keep in mind, the purpose of nuking the laf files is to give a (somewhat watered down version) of fastboot. But another options would be to keep the v35 eng abl on the non used slot, change slots, use fastboot, change slots back and reboot.

It's a bit confusing, but not impossible to get a handle on.

cheers
[LG V40 Guides, News, & Discussion] athoti:
Thanks so much for assisting so many here on the forum, AsItLies!!

Ya I don't know, LGUP won't refurbish / upgrade because some laf is wrong or dll. Lost IMEI, though I have it on paper, but not sure how to revert it. Kind of bummed, I might just let it sit a while and see if I can work on it again some other time. I might pick out something easier next time, who knows. I have an LG V30 with Lineage for ages, works great, but unfortunately cracked the screen some time ago.
[LG V40 Guides, News, & Discussion] AsItLies:
If you can connect to LGUP, I mean get the phone in Download mode (for lgup), then it's not the laf.

Any issues after that would absolutely be the lgup software / dll / etc. Not the phone.

I'd suggest looking in the lgup Guide to find the right version / dll.

One note, not everyone realizes (or needs), but any aosp rom (like Lineage) will not be able to do volte and vowifi. On LG devices they have a proprietary ims stack, and it's not been made to work on aosp roms (and almost certainly never will be). So if you need volte and vowifi (those in the US do), best to keep with stock rom.

cheers, and thanks.
[LG V40 Guides, News, & Discussion] madturbo123:
Hi, I can see alot of people ran into the same issue I've had but I can't seem to find a solution.

Here's what I have and the situation i'm in.

I have a V405EBW (Au Variant) and backed up abl_a, abl_b, laf_a, laf_b using QFIL.

I manage to unlock the bootloader, but I had to take a couple of different steps to OP. I flashed v35 to abl_b as my current state at the time was b, when following OP's instruction (abl_a) got me to stock fastboot and not V35. Once booted to V35 I was able to unlock my bootloader, then I flashed pie abl to b state and test boot to stock rom.

I then go back to fast boot and try to perform TWRP, using this guide https://xdaforums.com/t/twrp-lg-v40-judypn.3970111/ and that's when things went crazy. I did step 4 - fastboot boot judypn_TWRP_bootable-metadata.img for some retarded reason, it boots in fine but no option for ramdisk as stated in step 7. So I thought I'd go back to fast boot and realise the OP's instruction was to do "fastboot boot TWRP-judypn-boot.img", so I did that and I get these errors.

fastboot flash recovery TWRP-judypn-boot.img

Sending 'recovery' (30804 KB) OKAY [ 0.749s]

Writing 'recovery' FAILED (remote: 'Flashing is not allowed in Lock State')

fastboot: error: Command failed

At this stage I thought i'd go back and see what people did and they all suggest going to download mode and LGUP to flash stock rom and start again. I tried with VOL+ and usb cable and it takes me to fastboot, so I went to 9008/QFIL and restored laf_b. Now I try VOL+ and usb it still takes me to fastboot again. At this point I thought I'd go into 9008 mode and see what's going on and I can't boot to 9008 mode anymore it just goes straight to stock rom. So I change states to state a and I'm able to go to mode 9008 again. I'm now scared to do anything in fear of loosing 9008 mode on state a aswell.

What can I do to install stock android 10 rom as I can't get to download mode? How can I get back to download mode or install TWRP as my recovery?

Thanks in advanced guys.
[LG V40 Guides, News, & Discussion] AsItLies:
So, there's a few things in there that are confusing / we need to clarify.

First, don't use the meta-data version of twrp unless you plan on flashing an aosp rom. If you're going to use stock, probably better (easier) to stick with the non-meta version.

Another thing, you don't have to worry about 'losing' 9008 (edl) mode, that won't happen. While it may be difficult to get it in edl mode, you can't lose it, not possible.

To get lgup mode, there are a few files that have to 'match'. They have to be the same stock variant and version. It sounds like if you flash (in edl) your backups back to their respective partitions, you should be able to get to lgup.

One note, getting to edl mode is possible from any screen, even starting with the phone off. The difference vs booted up is that you won't get a 'count down' screen, you'll just have to time it yourself and start spamming vol up when you think it's about the right time. It's kind of a pain, but keep trying, it does eventually work.

Lastly, getting to twrp, the method has changed. It's best / easiest to now try to find the specific boot partition you have (variant and version) that already has twrp 'injected' into it. I have access to many of these boot+twrp boot partitions, just indicate what version of V405EBW (Au) you have, I'll try to find the partition and post it here for you.

cheers
[LG V40 Guides, News, & Discussion] madturbo123:
Thanks for clearing things up for me.

I want to get linage OS / with twrp as my end result of all this.

I ended up trying edl mode on slot b again and it works fine, just a pain to get it right.

I did backup (edl) but only abl_a/b and laf_a/b. do I restore the laf to get lgup(download mode) back?

(edit) - I've retored both laf and abl to slot a and it boots up download mode. yay. All I need now is twrp and I can get LOS.

That would be great, would this just mean I upload the file via QFIL?

I'm not sure what info you need but here are the details.

Model - LM-V405EBW(AU varient)

Android ver - 10

Software ver - v30e-aus-xx

Thanks alot Asltlies
[LG V40 Guides, News, & Discussion] AsItLies:
Well if u intend to get lineage, I'd suggest joining the v40 tele group. There's an invite in the very first post of the lineage rom in development forum.

I've installed lineage once, quite a while back, things have changed since then. The guys in the tele grp will have the most up to date instructions / guide.

One thing, yer android version is 10, but 10a? 10b? etc etc. That may be important to know.

cheers
[LG V40 Guides, News, & Discussion] madturbo123:
Is there a link for KDZ for 10 for the 405EBW? So I can do a fresh restore, I have the secure start-up on my phone on slot a and want to get rid of it. I don't know why my usual code isnt working.

Just 10 by the looks of it.

Thanks
[LG V40 Guides, News, & Discussion] AsItLies:
this link has all the v40 stock roms. Yeah I didn't make that as clear as possible, re the version;

if you have android 10, then the version will be 30a, 30b etc. If it's Pie 9, it would be 20a, 20b etc. And, if it were Oreo, it would be 10a, 10b, etc

cheers
[LG V40 Guides, News, & Discussion] Zengus:
Does anyone have the abl_a and b files for the Verizon V40? I seem to have bricked my device when I loaded the V35 files without backing up. That also didn't help me unlock the bootloader at all, I was getting this error when attempting oem unlock in fastboot:

FAILED (remote: ' Set device unlocked! failed: 00000050')

fastboot: error: Command failed

(But this isn't really as important as unbricking my phone first)
[LG V40 Guides, News, & Discussion] AsItLies:
2 things, 1) to get any of the VZW partitions it's easy, because the vzw firmware (the kdz) is publicly available. Follow this thread and you'll find instructions etc. 2) Re-read the original post, it specifically mentions 'for devices that don't have the OEM unlock setting' ... you need to flash the frp file mentioned, because vzw roms don't have that setting.

cheers
[LG V40 Guides, News, & Discussion] Lu.Rocha:
Hi Sir, i tried it. But i got a edl fail: "failed to switch to emergency download mode"
[LG V40 Guides, News, & Discussion] athoti:
Were you able to get the abl_a and abl_b for verizon, android 10? I would appreciate if someone has them and could attach them here. Although I have the kdz I wasn't able to get those files, the LG firmware extract doesn't extract the .dz file or it glitches at that point. Thanks!
[LG V40 Guides, News, & Discussion] Zengus:
No, I gave up on this and only came back now when I had time, I think I'm in the same spot as you are with no abl a/b to restore a bricked unit.

My lack of experience led to this but I had wished the instructions were a bit clearer (or the right order), this phone seems to be much harder than the V20 that managed to unlock a few years back
[LG V40 Guides, News, & Discussion] AsItLies:
Here's a gdrive link to the files u need. I just downloaded this kdz and did this for you. The boot and laf partitions are in there also.

Honestly guys, if yer having trouble with the kdz utility, u should ask in those forums for help to get it to work. It's a bit daunting, but certainly doable. I run it under linux personally, works fine once u get the dependencies resolved.

And I'd point out, where guides are concerned, it's **always** wise to read through the guide, beginning to end, at least once, before doing anything. Check for things that don't make sense, and if they seem serious enough, ask questions before proceeding.

People that write guides here don't get paid for it, and they've usually only done it with their own specific device, that's why they always have a *disclaimer* at the top.

cheers
[LG V40 Guides, News, & Discussion] Zengus:
I appreciate this! But it turned out it wasn't my issue after all... I can't remember anymore the series of steps that led to my situation, but I ended up with the red triangle and both slots unbootable after trying any solution I could find last week. I believe I thought I could fix it by reloading the correct abl files, but these weren't the correct ones (I don't think I remembered at all what version was on the original partition)

So I struggled a bit trying to remember what was the goal of getting the abl files, but I remembered now it was to get Download Mode working again, load a new kdz and start fresh. I managed to find two posts this time that helped:

https://xdaforums.com/t/guide-unloc...variant-except-t-mobile.4042207/post-85203951

https://xdaforums.com/t/guide-lgup-for-all-no-root-needed.3967858/post-85565917

(It took me 10mins to find the correct posts again from the 30+ tabs I have open on XDA looking for solutions)

I pushed all the files from the first link (except twrp img) onto the partition, I had issues with UPPERCUT but the second link had a patched LGUP that I was able to use to flash V405UA30C_00 (from http://lg-roms.com/ )

I was able to follow the guide steps again, but backed up abl_a first. I have bootloader unlocked and hopefully I can flash a rom now
[LG V40 Guides, News, & Discussion] AsItLies:
Well good yer making progress. But no, it's not abl that gives download (LgUp) mode, it's the laf partitions that do that.

Unfortunately some guides indicate to nuke (erase) the laf file as then, when u go to download mode, you would get a kind of 'watered' down version of fastboot. But, until u restore the original laf files, u won't have lgup.

The abl (android boot loader) is where u flash the engineering abl, and u get full blown fastboot.

it's confusing, takes time. Good luck with it.
[LG V40 Guides, News, & Discussion] kanaan360:
Okay, I attempted this. I'm guessing the engineering bootloader didn't flash right because all fastboot commands were unknown or failed (unless new versions of fastboot don't use the OEM unlock command anymore).

Booted out of the engineering bootloader on accident while trying to retry with a different USB port (2.0 Instead of 3) got a red triangle and then an automatic reboot into the stock Verizon/LG Android 10 os.

When I boot into edl/9008 mode and reflash the engineering bootloader I can't seem to boot into it by pressing volume down+power after leaving edl. I typically get to the recovery
[LG V40 Guides, News, & Discussion] Malkierian:
Took me a while to figure out that you weren't supposed to let go of the power and volume down buttons when you started pressing volume up to load EDL mode, however now that I have it, I can't load the partition manager, it keeps giving me "Download fail:Firehose Fail:FHLoader fail", and part of the error log says "ERROR: Error in handling unrecognized TAG (response)". If I wait for a minute before trying again, it gets stuck at "Program Path:" "***** Working Folder" for a while before telling me "Download fail: Sahara Fail:QSAharaServer Fail".