yashsingh1/xdaforums huggingface dataset:
[LG V40 Guides, News, & Discussion] Bmichael74:
Yeah I get that but as a precaution I just want to run this by you. I actually went into qfil, I backed up my boot A and boot B to my desktop. I then transfered boot A to my phone after disconnecting from qfil, and I installed magisk apk on my phone. I then used magisks patching method to patch the boot A . bin, which spit out a patched . img, which I will go back into qfil and load it as an image into boot A slot? It sounds good to me, my only question is that the other gentleman said he was hanging, but he said when he pushed the file I think. I'm not planning on fastbooting it, I'd have to nuke laf again to get fastboot back, I can do that later. Oh, I untucked encryption and verity. What do you think Ainz? Sound like a plan?
[LG V40 Guides, News, & Discussion] Bmichael74:
Ok sir, here's how it went. After creating the patched image, I flashed it with qfil back to the boot_a slot and unfortunately ended up with a boot loop. And it took me a minute to repair because even after flashing the original boot_a image it was wresting me but it came around, but I'm back to square one. So I have not tried doing the same with boot_B slot. Does it make a difference? I hear you guys mention the "active slot" and I won't lie, I'm not sure what that means, are the two slots not identical? Or are they identical but only one is active at a time? Could you enlighten me? Also, if fastboot had a better chance of succeeding I'd try it but I'd just have to nuke laf again I suppose so I have fastboot. Any advice would be spectacular. I'd like to get rooted, it's been a couple years
[LG V40 Guides, News, & Discussion] abuchison:
If you can get into fastboot mode

fastboot --set-active=a

or

fastboot --set-active=b
[LG V40 Guides, News, & Discussion] muzammil457:
ate these files suitable for G7 plus?

do i need to flash all these files with frp v35 and piestock of abl partition? i successfuly flashed v35 frp and able partition of my own g7. in fastboot its says bootloader unlock but my phone stuck at logo. do i need to flash pie stock abl given in post? or need to flash kdz after this unlock process. help me out guys.
[LG V40 Guides, News, & Discussion] Aming4585:
How to get rawprogram0.xlm file, help me pls !
[LG V40 Guides, News, & Discussion] abuchison:
LG V35, V40 and G7 are similar phones but I can only speak for V35 and V40. I was able to root V35 and V40 using the engineering abl_a module. The process is very similar between V35 and V40. Once you understand the goal of each step, you will be able to improvise the procedure when you hit snags. The basic goal here is to overwrite the abl_a partition so "fastboot oem unlock" can be executed successfully. For some unknown reason, it took me many tries to get "fastboot oem unlock" to work on both V35 and V40. Persistence won.

For easier rooting, LG V30 would be my choice.
[LG V40 Guides, News, & Discussion] Bmichael74:
I can get into fastboot by nuking laf again right? I have an unlocked bootloader, I'm just trying to root. If I get myself back into fastboot mode are you saying I need to load the magisk image into boot a or b again, run the set active command, and achieve root? I'm confused. What is the set active command going to go if my patched boot isn't loaded. Do you get what I'm asking?
[LG V40 Guides, News, & Discussion] abuchison:
If your bootloader is unlocked, you can flash KDZ. The bootloader will stay unlocked. Can you go into download mode?
[LG V40 Guides, News, & Discussion] Bmichael74:
You must have missed my posts a ways back. I'm on Android 10. My goal was to cross flash to the EU Version, then twrp and root from there. When attempting crossflash, lgup halts with ARB error (anti-rollback) because I'm on 10 and all the other kdz that are rootablr as far as I know are still Android 9. So i was told to patch my boot file with magisk and I did, no love so far.. but I only tried one slot and didn't do the set active commands, all that will do is make it tell me which is active by process of elimination right? Well maybe I need to see if the patched boot will work on the other slot, and I was going to but I ran out of time. Going to try other slot, if no go, I'll try flashing the patched image with fastboot instead. And of course tfat required nuking laf to get fastboot back.
[LG V40 Guides, News, & Discussion] abuchison:
Sorry, I did miss your earlier post. I guess you are on your way to write your own guide. Going to 10 is in new territory.

About patched LGUP, I was able to go between 8 and 9 in both directions on V35. To my surprise, I couldn't take my AT&T V40 from 9 to 8. Flashing stopped half way with an error message saying the KDZ is possibility corrupted. I believe the error was mis-leading. I tried several KDZs with the same result. Going from AT&T V40 Pie to OPEN_US V40 Pie went smoothly.

There are many phone variants and other variables. Guides are always helpful but improvisation is most likely required.
[LG V40 Guides, News, & Discussion] shawnmos:
How do I put back the v40 bootloader if I have oreo?
[LG V40 Guides, News, & Discussion] shawnmos:
Also, how to i put everything back to stock for warranty repair?
[LG V40 Guides, News, & Discussion] Unemtertained1:
Im thinking if you crossed so easily I should have been able to as well, unless things changed with 10. I was trying to think of a way to bypass the error or a work around but. It was an arb error that triggered immediately. I feared a brick I'd be unable to handle though I haven't had one yet. I 've heard of people being unable to resurrect various devices when changing either carriers or android editions. And I have no 10 kdz for an emergency. Regardless, shouldn't one be able to flask anything using qfil? I'm haven't tried flashing a whole system with it. I'm still green so no guides. Lol. I have a skillset that's confined to my tolerances and I never tolerated programming or coding.

So the open USV40, what's the benefit? Is it carrier unlocked, is that it? Are you able to root that edition? Or I suppose yes almost anything is rootable with an unlocked bootloader, magisk patch and qfil. Im gonna have to wait for a sold plan for twrp though because I'm frustrated with data loss.
[LG V40 Guides, News, & Discussion] abuchison:
For me, the biggest benefit of OPEN_US V40 is the long list of LTE bands it supports.

4G bands 1, 2, 3, 4, 5, 7, 8, 12, 13, 14, 17, 20, 25, 26, 28, 29, 30, 38, 39, 40, 41, 46, 66, 71 - V405QA7

Another bonus is that V40 OPEN_US is not loaded with bloatware.

The phone should work in EU but probably not the VoLTE and VoWiFi features. To enable VoLTE and VoWiFi, you will need to root the device and edit vo_config.xml file and maybe others.
[LG V40 Guides, News, & Discussion] shawnmos:
This changes my model number. Can I still get Pie OTA with ATT now??
[LG V40 Guides, News, & Discussion] danihm:
I did the steps from Pie and now it won't start, won't exit the bootloader and throws me a red error message "your device has failed a routine..." and returns to the bootloader. Any ideas please?
[LG V40 Guides, News, & Discussion] abuchison:
You need to be more specific on where you are.

Did you zap laf_a and laf_b? Did bootloader unlock successfully? Can you still get into download mode? Download mode would be your best option since you can use LGUP to revive the phone and start over.
[LG V40 Guides, News, & Discussion] danihm:
Finally I paid an expert who through port 9008 charged the rom stock again. Thank you also
[LG V40 Guides, News, & Discussion] shawnmos:
Can someone send me the abl_a contents for oreo? I stupidly forgot to back this up. I'm gonna guess the pie one won't work.
[LG V40 Guides, News, & Discussion] LDP12:
Can't get into partition manager, as soon as I click okay I get the following:

2020-06-18 15:37:52.701 ***** Working Folder:C:\Users\LDP\AppData\Roaming\Qualcomm\QFIL\COMPORT_37

2020-06-18 15:38:00.460 Binary build date: Nov 21 2017 @ 02:53:37

2020-06-18 15:38:00.461 QSAHARASERVER CALLED LIKE THIS: 'C:\Users\LDP\Desktop\QPST\Qualcomm_Flash_Image_Loader_v2.0.1.7\QSaharaServer.ex'Current working dir: C:\Users\LDP\AppData\Roaming\Qualcomm\QFIL\COMPORT_37

2020-06-18 15:38:00.468 Sahara mappings:

2020-06-18 15:38:00.474 2: amss.mbn

2020-06-18 15:38:00.480 6: apps.mbn

2020-06-18 15:38:00.483 8: dsp1.mbn

2020-06-18 15:38:00.486 10: dbl.mbn

2020-06-18 15:38:00.487 11: osbl.mbn

2020-06-18 15:38:00.488 12: dsp2.mbn

2020-06-18 15:38:00.490 16: efs1.mbn

2020-06-18 15:38:00.491 17: efs2.mbn

2020-06-18 15:38:00.492 20: efs3.mbn

2020-06-18 15:38:00.497 21: sbl1.mbn

2020-06-18 15:38:00.498 22: sbl2.mbn

2020-06-18 15:38:00.499 23: rpm.mbn

2020-06-18 15:38:00.500 25: tz.mbn

2020-06-18 15:38:00.502 28: dsp3.mbn

2020-06-18 15:38:00.503 29: acdb.mbn

2020-06-18 15:38:00.505 30: wdt.mbn

2020-06-18 15:38:00.507 31: mba.mbn

2020-06-18 15:38:00.507 13: C:\Users\LDP\prog_ufs_firehose_Sdm845_lge.elf

2020-06-18 15:38:00.508

2020-06-18 15:38:00.509 15:38:00: ERROR: function: rx_data:247 Error occurred while reading from COM port

2020-06-18 15:38:00.512

2020-06-18 15:38:00.513 15:38:00: ERROR: function: sahara_main:924 Sahara protocol error

2020-06-18 15:38:00.515

2020-06-18 15:38:00.516 15:38:00: ERROR: function: main:303 Uploading Image using Sahara protocol failed

2020-06-18 15:38:00.518

2020-06-18 15:38:00.519

2020-06-18 15:38:00.520 Download Fail:Sahara Fail:QSaharaServer Fail:Process fail

2020-06-18 15:38:00.532 Finish Get GPT

Anyone got a fix for this? I've tried with all versions of QFIL.
[LG V40 Guides, News, & Discussion] ExiledLife:
I am trying to get to EDL mode. I am holding down Vol - and the power button and hitting volume up as soon as the phone goes blank. It then brings up a screen saying download mode and then goes to a screen that says firmware update. My phone is showing up as LGE AndroidNet USB Serial Port. Enable OEM unlock and ADB Debugging are both enabled.

Is there something I am doing wrong? Did I miss a step?
[LG V40 Guides, News, & Discussion] yumm91:
If you trying to boot to 9008 mode, you need to rely on sound. It is easier. Like video below.

https://www.youtube.com/watch?v=-U2uEQylEsU

Make sure you install LG Mobile Driver if you haven't. You can google those.

If you want to boot to download mode, then your mode should be good. Just open LGUP and see whether it detect the phone. Use LGUP offered in the guide.
[LG V40 Guides, News, & Discussion] ExiledLife:
I currently have the LG Mobile Driver installed.

I tried using the sound method from the video. It brings me to the same firmware update screen.

I downloaded LGUP from https://xdaforums.com/lg-v40/how-to/guide-lgup-root-t3967858 and opening LGUP gives an error saying it cannot load the model.
[LG V40 Guides, News, & Discussion] Redacted Kaos:
Re-Locked bootloader.. It raid success but said locked slotAslotA...

. Now I can't boot... I've tried flashing original aba/b laf. Nothing will give me download mode
[LG V40 Guides, News, & Discussion] trouble.:
Change the slot
[LG V40 Guides, News, & Discussion] Redacted Kaos:
How? I cant geti into anything... just the red box message about device being unseure and it will shut down...blah blah.. Got an idea?
[LG V40 Guides, News, & Discussion] shawnmos:
Are abl_a and abl_b the same? Can I copy over abl_b to abl_a and restore the factory bootloader?
[LG V40 Guides, News, & Discussion] trouble.:
Can u access fastboot? If u can, then run a command in cmd- fastboot set_active b. If u r on a
[LG V40 Guides, News, & Discussion] hcuongbt:
Still cannot enter fastboot mode

Hi,

I have V409N, Korean model,

I can boot in to EDL and flash v35eng.img.

But then I still cannot boot into fastboot mode. I stuck at:

I press both power and volume down until I hear the disconnected sound, then I release and press Volume Down again. But it boot normally.

Could you please help!
[LG V40 Guides, News, & Discussion] maralexbar:
After dealing a lot with the error message when trying to enter the bootloader, I discovered that this problem occurs because "Slot B" is currently active.

So with QFIL you must flash both "abl_a" and "abl_b" with v35eng.img, also destroy both laf_a and laf_b while in QLoad 9008 mode.
[LG V40 Guides, News, & Discussion] rube2112:
Android 10

My phone has already upgraded to android10. What can i do? Thanks....
[LG V40 Guides, News, & Discussion] Khalil alqisy:
Yes they're the same laf_a and laf_b
[LG V40 Guides, News, & Discussion] alex_hmelnitsky:
there are some problems
[LG V40 Guides, News, & Discussion] bernavaldiesel1:
Att lg v40 thinq versión software 405UA20g

Hello, good tutorial. Would it work with a model of att ?. yesterday i tried to flash a kdz with lgup and it gets an error. the error is "att us> ucl us". not if it is normal for the device to have 17 numbers in its imei. will it be a thing of att ?. Would your method work for this device? model> 405ua with software v40520g. security patch level September 1, 2019.
[LG V40 Guides, News, & Discussion] Lialothedestroyr:
:

Welp I think I bricked my phone. I followed the tutorial and got up until the "fastboot oem unlock" in which my PC gave me an error(maybe because i was using a USB3.0? not sure there) and now the bootloader is still locked, and I'm stuck in fastboot. Whenever i try to exit fastboot i get an error message saying "Your phone has failed a routine safety check and will not boot." and it boots back to fastboot. Anyone have any insight in how I might fix this?
[LG V40 Guides, News, & Discussion] AsItLies:
The following is really all in the original post. You just have to read it slowly and carefully, but I'll word it in such a way that it's specific for you situation;

You should use a usb 2.0 if you have one, as mentioned. And before trying 'fastboot oem unlock', you might want to verify 'fastboot devices' that the phone is even seen. If 'fastboot devices' doesn't show the phone, then it's a driver problem you have to fix first.

One of the things you hopefully did was save off the original abl_a before flashing the engineering one (and abl_b if u did both sides). Assuming you did, you can get into EDL mode with the phone on, from any screen. The difference will be that from other screens (not fully booted), you won't get the 5 second countdown, you'll just have to wait till it goes blank and then quickly and continually press / release vol up.

I'd also guess you're on Pie? That's because the engineering abl is for Oreo only. It won't boot the device with it flashed if on Pie. So the trick is to flash it with Qfil, then after exiting out, hold vol dwn plus power until you hear the windows chime indicating it's disconnected, now let go of the buttons and only press vol down. That should immediately go to fastboot, now, assuming the drivers are installed, fastboot should see the device and it can be unlocked.

After unlocking, use fastboot to flash the original abl back, then you can boot and u should have unlocked bootloader.

good luck.
[LG V40 Guides, News, & Discussion] bernavaldiesel1:
Hello everyone, I have a problem. I follow all the steps and until the v35 eng.img flashes. qfil says finish sent images but I can't get into fastboot mode with the button combination. What is the button combination? my device is LG v40 v405ua AT&T. 64 gb. single sim.

Is it possible that I have to delete laf_a first in order to enter fastboot mode? Could it be that I didn't have fastboot access with my v40 model? I have read in the post that it could be that, but I am afraid of bricking the mobile.
[LG V40 Guides, News, & Discussion] KwesiJnr:
Try to use the command line version of the LGUP tool. That's what worked for me.

You can use the instructions shown here as a guide

---------- Post added at 02:15 AM ---------- Previous post was at 02:10 AM ----------

I did this from 8.1 Oreo.

After following the steps and flashing the elf file, I held Vol Up + Vol Down + Power until the disconnect sound, then quickly released all the buttons and pressed the Vol Down button only continuously till it went to fastboot. The trick for me was to add the Vol Up button.
[LG V40 Guides, News, & Discussion] enajor66:
I'm stupid

I overwrote my abl_a and abl_b with the v35 eng.img and got red triangle. Side note, fastboot wont work, neither will download mode. re tried with ablpiestock, same result. I followed all the instructions up to this point, just nothing working now. Could someone send the vanilla abl_a and b for v405nua atat please? I would be uber greatful.
[LG V40 Guides, News, & Discussion] jarkinber:
Hey everyone, relatively new here so please go easy - just wanting to ask if this bootloader unlock method is required in order flash custom roms, or if the official bootloader unlock method found at developer.lge.com will suffice? The website states that my model (LM-V405EBW) is supported for bootloader unlocking, is anyone aware of any downsides with doing it this way? Cheers!

*EDIT - apologies, hadn't done enough reading! Unlocked now. Feel free to delete :D
[LG V40 Guides, News, & Discussion] noidodroid:
Does anyone here know if this unlocking technique or similar method works on the v30?

---------- Post added at 01:53 AM ---------- Previous post was at 01:50 AM ----------

I will take a look at this thread later but it is sounding like it is the same method that people in private have been using in 9008 mode for the V30 for a while. I spoke with a guy in China that was rooting doing FRP removal unlocking imei repair and more through 9008 on the V30.
[LG V40 Guides, News, & Discussion] rooter123zero:
Downloaded your Google drive QPST and booted QFIL from there and I'm still getting a "Download Fail:Sahara Fail:QSaharaServer Fail:Process fail"

---------- Post added at 09:41 PM ---------- Previous post was at 09:35 PM ----------

I have the same issue after downloading and installing qpst from gdrive link i still get the "Download Fail" error.
[LG V40 Guides, News, & Discussion] AsItLies:
One of the reasons that happens is if you're running a version of windows that won't work unless the Qualcomm driver is a signed driver. I had that error until I did a search for the driver in a signed version, easy to find, installed it, didn't get that error anymore.

worth a try.
[LG V40 Guides, News, & Discussion] boodi:
lg v40 / freezing

I have bought a used lg v40 v405ua variant ( which doesnt show and sprint/at&t bloatware or branding at least to me ) , I bought it as stuck in bootloop .

I do not know if before it was flashed to this model , or anything else.

After some patience and a number of factory reset I've managed to go over the bootload screen freeze, go through the initial settings page with wifi OFF and no simcard in , and to arrive to the home page without freeze ;

I was also able to navigte settings , and to switch to developer / enable oem unlock ON , and usb debugging ON.

I was able to get IMEI , to see it runs Android 9 ( after factory reset ) , to enter camera and take a pic .

The phone is currently On and shows time and date and I am able still to navigate into settings , with no slow down or freeze .

If I navigate or get into some app with wifi off , or equally if I turn on wifi and it starts exchanging data or updating (?) , then it slows down instantly, usually stuck on a black screen and the 3 android buttons downside , sometimes I am able to push power button and use power menu to turn it off , the majority of times it is freezed and it needs volume down + power button to restart ;

then it will load up to the lg red logo boot screen , and freeze there ( and I will need to try factory reset/erase ).

I am no expert at all on android/mobiles/recoveries , I can't imagine if it is software that is corrupt or if it is an hardware problem or what else .

I 've read many different threads about unlocking bootloader , rooting (or changing model and else), and I am not sure as there are many options

what should I try from here ?

ps a side information : if I turn on Bluetooth the icon in the tiles menu' blinks on and off , or when I enter the bluetooth activation page and switch it on it remains a pale blue >> in the meanwhile the phone cant see or be seen by any other bluetooth device .

Any help ? thanks all of you who can help me this out :svetius:
[LG V40 Guides, News, & Discussion] ichomi:
Hi. I flashed the v35 file and got into fastboot mode but when I run the fastboot oem unlock command I get an error "flashing unlock is not allowed" and phone is stuck on the "failed routine check" screen. Please help!
[LG V40 Guides, News, & Discussion] NGOwner:
This sounds to me like a perfect time to use lgup and download mode to load the latest version of Android onto your phone. Read through some of the other threads on how to do that.

[NG]Owner
[LG V40 Guides, News, & Discussion] AsItLies:
So two things, and they are in the OP directions but it appears as though you missed them.

Before you flash the V35 file (it's the abl, the engineering boot loader), you need to go into 'developer options' and turn on 'OEM unlock' ability. Sounds like you didn't do that.

Second, that V35 file isn't meant to be left there and boot the device. The V40 might boot with it, if you're on Oreo (I'm not sure if it will or not), but it certainly won't boot if you're on Pie. That file is just meant to be used to unlock the boot loader, then immediately replace it, with fastboot command, so the device can boot.

good luck
[LG V40 Guides, News, & Discussion] ichomi:
My software version don't have the ' OEM unlock' option so I flashed frp as stated by OP but I'm still stuck.
[LG V40 Guides, News, & Discussion] AsItLies:
Okay, haven't had to do that myself (flash the frp). But when you say "I'm stuck"... people might be able to help if they knew **exactly** what steps you are taking, and the results...

Just an "I"m stuck" isn't really much to go by...

I'd suggest list ea step, and ea result, up to where you end up "stuck".
[LG V40 Guides, News, & Discussion] ichomi:
The stuck part is the error I get when I run fastboot OEM unlock. Which is "flashing unlock is not allowed". And i had flashed frp because I had no "Enable OEM Unlock" option in developer option.

I'm thinking maybe to flash a new KDZ file maybe newer versions might have the OEM unlock option.
[LG V40 Guides, News, & Discussion] AsItLies:
Yes the kdz I flashed has it, the US Open version. But you don't mention the sequence you're using. Are u using qfil to flash v35 bootloader, flashing frp, then using pwr+vol down to exit qfil, as soon as you hear windows chime, release buttons and then press only vol dwn?

That will take it to fastboot immediately, it won't boot, it won't do anything else, just go to fastboot. It's at that point the unlocking should work.

If u are doing that, and it's not working, yes, use lgup and use a diff kdz. But it's still hard to understand why the above wouldn't work.
[LG V40 Guides, News, & Discussion] ichomi:
Please can I get a link to the US open KDZ you flashed?..

And yes I followed everthing as stated by OP. I have no idea why it didn't work either.
[LG V40 Guides, News, & Discussion] AsItLies:
This Link has the hash tag so u can verify download. good luck. It should work, it has for me.
[LG V40 Guides, News, & Discussion] serpent android:
Great tutorial.i just bricked my device v495ebw hongkong versiin. Now i just need download mode back so i can use lgup to reflash the correct kdz.do i have to follow the entire guide and how can i bring the download mode
[LG V40 Guides, News, & Discussion] arfhel09:
Android 10

Will this work with android 10? Is their an update on the image as it only includes pie on the post?

Thank you
[LG V40 Guides, News, & Discussion] AsItLies:
It should work for 10, as it does for Q. The image will work, but it won't boot the device unless it's on Pie. The key is to go into fastboot directly after qfil the image, unlock, then flash the oem abl back using fastboot. Then it's unlocked and you can boot.

There are other ways to have fastboot on the device besides using that image. But that image is needed for the original unlock.

cheers