yashsingh1/xdaforums huggingface dataset:
[LG V40 Guides, News, & Discussion] gcwct71513:
Ok I unlock OEM but when I flash all the old partitions it doesn't boot into android. Should I just flash TWRP and a Rom? (Btw Download mode doesn't work)
[LG V40 Guides, News, & Discussion] AsItLies:
when u say u "unlock OEM" do you mean in developer settings? And what "old partitions" did u flash? Your backups?

What are u trying to do?
[LG V40 Guides, News, & Discussion] gcwct71513:
By "unlock OEM" I mean in fastboot where it say "Device State - unlocked" (my bad should have said the Bootloader is unlocked) and yes the "old partitions" are the backups (abl, boot & laf, they are .bin file type don't know if that matters).

I'm trying to boot back to android.
[LG V40 Guides, News, & Discussion] AsItLies:
Where did the backups come from?
[LG V40 Guides, News, & Discussion] gcwct71513:
I made them using QFIL
[LG V40 Guides, News, & Discussion] AsItLies:
then if those are the backups you used, and you flashed them to the correct partitions, there's no reason the device shouldn't be working, right?

I have no idea what you did right or wrong, I'm not there watching you, impossible for me to be sure.

At this point then, what happens when you try to boot? show a picture of the screen where u are stuck.
[LG V40 Guides, News, & Discussion] gcwct71513:
Read this appear when unlocking the bootloader (Correct me if I’m wrong) then will boot into fastboot after a few seconds.

And this is fastboot mode. There 4 options.

1. Power off. This reboot to fastboot.

2. Restart. This reboot to fastboot.

3. Welcome to Fastboot for bootloader unlock:.

Power off the phone but if charging reboot to fastboot.

4. Press volume key to select, and press power key to select. This reboot to fastboot.

The reboot to recovery and reboot to bootloader options are replaced with 3 & 4. They show up when flashing v35eng.img though.

The options in QFIL that is called “Read Data…” is the backup right? And I don’t need to convert the .bin file to .img right?

I flash the 7 .xml (number 0 didn’t flash)

You told me. Which is how I got into fastboot mode.
[LG V40 Guides, News, & Discussion] AsItLies:
Yes the option in qfil 'read' data means to back it up. Just rename *.bin to *.img, they are the same thing.

But, when u do a 'read data', it will tell you in what directory and what file name it just created, and where it is. It's at that point you should go to that directory and rename the file, so that it makes sense, to what ever it actually is, like: boot.img or laf.img etc etc. The names qfil gives it are not obvious what it actually is.

At this point, when you try to boot, you're still getting fastboot instead of booting, right? And you didn't erase the laf partition? and you didn't flash v35 eng abl right?

If above is correct, all I can think is try to get lgup to work and flash a kdz and start from beginning.

cheers
[LG V40 Guides, News, & Discussion] gcwct71513:
Yeah still fastboot. I did erase both laf but flash the backups back. Does the backup not work if you erase the partition? Yes I did flash both abl with v35 but flash the backups back as well.
[LG V40 Guides, News, & Discussion] AsItLies:
it sounds like you've run into an issue I've heard a few others have had, not many, but a few.

Even after restoring laf and abl, it will only go to fastboot, which honestly is very bizarre and I've never heard of an explanation for it.

I'd suggest use lgup and flash a kdz and start over. Don't think there's another choice...
[LG V40 Guides, News, & Discussion] gcwct71513:
Need to be in Download mode for that right? Because mine start with the download mode icon but then reboot to fastboot.
[LG V40 Guides, News, & Discussion] AsItLies:
yes, u need dl mode for that. Follow this link and it has the necessary files to give your device dl mode. If the version of fastboot you have won't flash those files, then use qfil and flash them. Either way, after flashing, you want to go directly to lgup / dl mode, use the key combo to go directly there rather than try to boot.
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
GAAAAADDDEEEEMMMMM!!!!!!! this is serious. i am not sure there is a simpler method?
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
Hello everyone. i just the LG V40, LMV405EBW HKG running on Andrid 10

can i use this whole Q method?

they are all so confusing and I dont want to make a mistake.

which is the latest and updated method to unlock bootloader and root?
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
does this need root?
[LG V40 Guides, News, & Discussion] AsItLies:
That's a great question. Does it **need** it? No. But people want it for various reasons... some just want to have that control. Some just do it for fun.

The only thing that really it's needed for would be gaming and or using a Gcam port. For gaming, with root, you can adjust how the device handles overheating situations (I've never done it but have read others have). The Gcam port there's a 'buffer fix' that has to be applied for *most* gcam ports to work. There is one gcam port, although it's older, that works without the buffer fix.

For the most part, those reasons cover why people want root. There are more, like doing development, etc. But mostly, that's it.

cheers
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
oh wow, sorry boss, that question was for using Viper 4 android. i am so so sorry.

this was the question i wanted to ask.::

i just the LG V40, LMV405EBW HKG running on Andrid 10

can i use this whole Q method?

they are all so confusing and I dont want to make a mistake.

which is the latest and updated method to unlock bootloader and root?
[LG V40 Guides, News, & Discussion] AsItLies:
There's only 1 method, the one at the beginning of this thread.

It may **seem** to be difficult but it's really not. The 1st thing you have to do is get qfil working, install and get drivers for it, as it's windows based, it can be a typical windows pia.

then get the device in edl mode and have qfil recognize it. That's a bit challenging, getting to edl mode on device, just be persistent, you'll get it. Sahara errors can be a prob with qifl, but usually using a usb 2 port, or diff cable, even a diff pc will resolve them.

Then flash the engineering abl to abl_a and abl_b partitions. What happens next, when you boot, you will go directly to fastboot. It's there you can do 'fastboot oem unlock' (be sure to enable oem unlock in dev options).

After unlocking, use fastboot to flash the original (yours - that you saved before flashing the v35 eng abl) abl_a and abl_b back to their respective partitions.

then do fastboot reboot. Boot loader will be unlocked. That's it in a nutshell.

cheers
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
....so once i get into qfil, i should back up first before flashing engineering abl? and then follow the instructions?
[LG V40 Guides, News, & Discussion] AsItLies:
exactly.

back up the partition before you flash over it, be it abl, laf, boot, etc. Always.
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
i did the backups and now stuck at flashing ablpiestock.img........its showing error. how do i start afresh?
[LG V40 Guides, News, & Discussion] gcwct71513:
Do I need to lock the bootloader? Because I flash a kdz but it still boot to flashboot.
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
oh wow. now i am scared of flashing a kdz.
[LG V40 Guides, News, & Discussion] AsItLies:
When you flash a kdz you should be using partition download, select all partitions except ftm.
[LG V40 Guides, News, & Discussion] AsItLies:
No, no need to lock the bootloader. Just use partition download, and select all partitions but ftm.
[LG V40 Guides, News, & Discussion] AsItLies:
Why are you flashing abl piestock.mage?
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
ok, i have succeded in unlocking the bootloader, i get that warning dialogue box that gives that warning that your bootloader is corrupted.

but now i cannot reboot, keeps taking me back to fastboot mode. i have erased the laf partition, but i did not rename my backup while i was saving it. so now i am looking for the right one to flash.

do you think i should go for the bin file with the biggest size? (65KB)?
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
2. When you've entered fastboot, execute this command:

Code:

fastboot oem unlock

Userdata will be wiped as a security measure as with all android devices.

3. While you're still in the v35 engineering bootloader flash back the stock pie bootloader (If originally on pie firmware) with:

Code:

fastboot flash abl_a path/to/ablpiestock.img

....

thats what it says in instructions
[LG V40 Guides, News, & Discussion] AsItLies:
It was written that way because the person that wrote it was on pie. Are you on pie? You should be flashing your abl stock image. Not his.
[LG V40 Guides, News, & Discussion] ndubat@gmail.com:
i

i am on Q.
[LG V40 Guides, News, & Discussion] pi77:
Dear Gurus,

A noob question, hope you could help.

I have read 2/3 of this thread but still could not figure out

if I could carrier unlock from Sprint for a Sprint LG V405UA

so I could put a t-mobile sim on it.

If not, then what does "unlock" in the title of this thread mean?

Thank you so much for all valiant effort here.
[LG V40 Guides, News, & Discussion] AsItLies:
No, you can't 'carrier' unlock, only the carrier can do that now. There was at one time a way to crossflash and it would carrier unlock, but no more.

'Unlock', for virtually everyone on XDA means 'Boot Loader' unlock. That allows the device to be modified at a low level, for rom development, rooting, magisk modules, etc etc etc.

In this thread 'unlock' refers to boot loader unlock.

cheers
[LG V40 Guides, News, & Discussion] pi77:
Thank you so much, AsltLies.
[LG V40 Guides, News, & Discussion] gcwct71513:
Still reboot to fastboot even with flashing with partition download.
[LG V40 Guides, News, & Discussion] AsItLies:
then try after you do a partition download, turn it off, and do a 'refurbish' with the exact same kdz.

hopefully that will work.
[LG V40 Guides, News, & Discussion] gcwct71513:
No, didn’t work.
[LG V40 Guides, News, & Discussion] AsItLies:
All I can think is try a different kdz. I honestly have no idea why it would be continually going to fastboot. Maybe it's the specific kdz you're tying to use. Try a different one.
[LG V40 Guides, News, & Discussion] laminarturbulent:
Which slot is selected? Mine was on slot B and it would also only reboot to fastboot. After switching to slot A by running

fastboot --set-active=a

I was able to boot into Android.
[LG V40 Guides, News, & Discussion] gcwct71513:
Doesn't show which is selected. Only show it when I flash v35eng.img. I did try anyway to both a & b but still fastboot.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Is this method 9008 EDL mode will work for my LG V40 THINQ LMV405EBW Indian Market. Any link for abl stock image for Android Q .I am now on Android 10 .
[LG V40 Guides, News, & Discussion] AsItLies:
The directions didn't make that part as clear as it could have been. The 'abl stock' image you should be using is Yours! Not any other one, but the one already on your device!

So save that image off first (or any image you write over), then flash eng_abl, then when done with fastboot, flash Your stock abl Image back.

cheers
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
The abl stock img in my device which in now on Android Q - how to back up ? in QFIL - READ , am I right ?
[LG V40 Guides, News, & Discussion] AsItLies:
Yes. Go to the directory (the output of the read tells you where it is), and re-name the output to a name that makes sense re what it is. The name qfil gives it is not at all clear what the partitions is.

If you don't rename it you don't really have an easy way to know which partition is which. That could lead to all sort of other problems you don't want.

cheers
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
What I have to do next to boot into android . Pls help me
[LG V40 Guides, News, & Discussion] AsItLies:
So what's happening now? Are u getting the fastboot screen when u try to boot up? or are u getting the red triangle screen?

And, which version of INdian EBW 10 are u using? It looks like it must be 30F, is that right?
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Yes , it is V30f-IND-XX software version .whether I have to flash back abl stock image in Adb terminal or I have flash it with Qfil ? Sir
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Now my device is unlocked. How to boot into android Sir. Anything I have to do. How to root with TWRP & magisk pls ?
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Whether to flash abl stock image by using Qfil or flash with adb commands in fastboot mode Sir
[LG V40 Guides, News, & Discussion] AsItLies:
It doesn't matter if you flash the stock abl back with qfil or with fastboot (fastboot doesn't have adb commands, it has fastboot commands. ADB has adb commands).

I'll look around and see if that boot image has already been patched or not. If not, I can give you the directions to patch it yourself with twrp.

cheers
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I tried to flash with abl stock image from back up in Qfil .After that I am unable to enter into fastboot mode, instead I ended up with blank screen with key to shutdown on left top corner . Kindly help me to come out of this bizarre issue Sir
[LG V40 Guides, News, & Discussion] AsItLies:
So what were you expecting to happen when you flashed stock abl back? In other words, you used qfil and put the v35 eng abl (which gives fastboot to unlock bootloader) on, unlocked the boot loader, then flashed (your) stock abl back?

why would you expect to still have fastboot? Once you flash the stock abl back, the phone will boot, the bootloader will be unlocked, but the v35eng abl won't be there anymore, so that fastboot it gave you will be gone.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
You mean my device is bricked ?
[LG V40 Guides, News, & Discussion] AsItLies:
What? Where did I say that?

I said no such thing. Did you put the original abl back on the abl partition? If yes, then the device should boot normally, but you'll now have an unlocked bootloader.

If that is not the case, say exactly what you did, and exactly what the problem is now, when you try to boot from the phone being off.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
If yes , is there any way to unbrik ? Pls

Sorry sir , I make my mobile boot into fastboot mode using Qfil . But I don't know how to flash abl stock image by Qfil . Can you pls help me with this with steps or screen shot if it is available
[LG V40 Guides, News, & Discussion] AsItLies:
You can use qfil or fastboot to do that. The easiest way would be to use fastboot.

the command would be 'fastboot flash abl_a /path/to/the/stockabl/backup.img

then do 'fastboot reboot'.

The other way, using qfil, would be about the same as you did for loading the v35 eng abl. Except, you would load the (your backup) of the stock abl you made. You would load it to the abl_a partition.

cheers
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I will try with suggested command sir , Thank you .
[LG V40 Guides, News, & Discussion] Fly_0ut:
I am running android 9 on model LM-V405US, have got the v35 bootloader running, ran unlock, got my bootloader unlocked, fashed my phone frp, then flashed back to the ablpiestock. When I try to get back into the bootloader I am meant with the "your device cannot be checked for corruption" message and am kicked back to boot up normally. Did I do something wrong? I am trying to get TWRP running now, but do not have any fastboot.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I tried to flash stock abl img with fastboot - it doesn't work - displayed no such directory available. I may be wrong in back up of abl stock image. So then I tried to flash with Qfil - where I am able to choose abl _a image file to flash- my device display becomes blank with key to shutdown on top left Corner . I think I am wrong in flashing stock abl or choosing wrong file ? I am sure where I went wrong - pls guide me sir .from fast boot mode to boot android is the only problem I am facing.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Sorry , I am not sure where I went wrong sir
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Whether I am doing right way to back up abl_a image ? I followed the steps available in threads . I tried to unlock bootloaders three times. Took back up of abl_a file all three times . Is there any wrong in that . Back up saved in Partion 4 - I flashed the back up abl _a image in the same partition . Even then I am unable boot into Android .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Fastboot shows it is V35 , But my mobile is V40 thinq LMV405EBW Indian Market. With software version V30 f On android 10 .Whether it will boot into Android 10 V40 thinQ after flashing with stock abl_a image ?
[LG V40 Guides, News, & Discussion] AsItLies:
It shows v35 because it's the v35_engineering_abl. It was created for the v35, but it works for the v40 also (they both have the snap 845 chipset).
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
OK sir , If I flash correct stock abl_a image in original partition - my mobile should boot into Android normally .I will repeat the steps in thread carefully & do flash abl _a stock img .Thank you so much for the time .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I am stuck in fastboot mode- unable to boot into android . Kindly share me abl Image file for LG V40 thinq LMV405EBW INDIAN Market. I am unable to find abl_a file in my back up . Even I tried to flash whatever in back up - bin files- renamed to img , my mobile is not booting into android .
[LG V40 Guides, News, & Discussion] AsItLies:
You are suppose to use the actual path, on your computer, of where you put the abl_a.img backup.

The directions are written in such a way to indicate to use YOUR path to the backup, because I have NO IDEA what the path name is.

cheers
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Ok sir , thank you so much .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Sir , will you pls share ablstock .img for Android 10 . I am able unlock boot loader of LG V40 THINQ LMV405EBW INDIAN Market by Qfil & V35 bootloader engine . I am now in fastboot mode . I am unable find abl_a stock img in my back up , even I am unable to find the path of back up bin files . I tried lot to find abl_a stock image . Kindly share with screen shots or steps to follow to find out back up pls .It will be very useful for us .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I got the path where i back up abl_

I got the rughmmmm

I am able find out the path where the back up are saved. I am able to flash abl-a image file by fastboot command . But even then my mobile boots into fastboit . I tried to flash both abl_a & abl_b with abl _a stock img . My mobile is not Booting into Android , again stuck up in fastboot mode.Now the active slot chaged to B . How to change active slot to A . Back up files stored in path C:\Users/Admin/AppData\Roaming\Qualcomm\QFIL\COMPORT _12\ abl_a
[LG V40 Guides, News, & Discussion] AsItLies:
try to change slots with

fastboot --set-active=a

then do fastboot reboot, see if it boots up
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I already flashed abl _a& abl_b with stock abl_a image - active slot chaged to A . I followed the command you recommend, still it is not Booting into Android sir .I don't know what to do next . Now I am stuck in fastboot mode- I followed all steps available in threads . But failed to boot .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Will it boot once flash abl_a partition with abl_a stock img or we have to press Power on & Volume down button anything like that sir .
[LG V40 Guides, News, & Discussion] AsItLies:
If you're using fastboot to flash the abl image, then type 'fastboot reboot', there's nothing else you need to do.

So, from the picture, your fastboot command to change the slot failed, but the picture shows you're already on 'a'? What made you think you were on 'b'?

If it won't boot the 'a' slot, try changing to the 'b' slot and see if that boots. If you get the fastboot error saying 'unknown command' (like the picture), you need to update your adb and fastboot utilities.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I wrongly flashed abl_a with abl_b img , my slot was Changed to B .But after that I repeat QFIL steps & back to Slot A
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
You can see what went wrongbfeom my side #682
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I am sorry sir , still I am unable to boot into android with active slot A / flash abl_a with abl_a stock img . Fastboot reboot command - always boot into fastboot mode with unlocked bootloaders sir .Whether LG service center , will help me to come out if this fastboot stuck up issues , Since I have tried all your suggestions so far sir .
[LG V40 Guides, News, & Discussion] AsItLies:
Well it looks as though you've encountered an uncommon issue. I've heard of it happening before but not that often.

From what I've read, the only thing to do is to flash a different rom (lg firmware), using lgup. I think you've done that before right? There's a guide to do that if you haven't.

cheers
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
OK sir , I have not yet used LG UP Tools. If you have link kindly share it to me , I will try with different firmware .
[LG V40 Guides, News, & Discussion] AsItLies:
You'll find the links in the guide for using lgup.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Ok sir , Thanks for your support & guidance .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I have installed LG Up tools in my pc . My mobile is not connected via Original USB that comes with mobile . I an stuck in fastboot boot loader unlocked , failed to boot even after flashing back up of stock abl image. NO BOOT AFTER UNLOCKING BOOTLOADER - LG V40 THINQ LMV405EBW Indian market .What next to be done sir , i have used alternate USB port / cable alsi , failed to connected .
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
I have flashed abl pie stock image , enter into download mode / with help of LGUP - flashed stock ROM ANDROID 10 & booted into Android & bootloader unlocked . How to install TWRP recovery image in LG V40 THINQ in Android 10 ? Threads available with Android pie ROM . I tried to install Android Pie ROM with LGUP - stuck up in bootloop - tried hard reset end up in fastboot mode . Not able to install Android 9 pie . I tried to instal TWRP in LG V40 THINQ in Android 10 - end up in Bootloop . Is there any methods to flash TWRP with Android 10 ? Is it safe to install TWRP with Android 9 or Android 10 ? Pls guide me sir .
[LG V40 Guides, News, & Discussion] AsItLies:
The method to get twrp has changed with newer releases of Android. For android 10, you need a patched boot image, that has been patched with twrp (and or) Magisk.

To get the patched boot image, you have to indicate which android 10 rom you flashed, and which version of it (30b? 30e? 30f?).

These boot images have already been patched, so you don't have to do it yourself. But again, you have to indicate which one you flashed so you get the right one for your setup.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
My mobile model LG V40 THINQ INDIAN MARKET LMV405EBW , V30 f-IND-XX version flashed . Kindly share me patched boot image for V30 f version sir
[LG V40 Guides, News, & Discussion] AsItLies:
hmmm I've looked around and doesn't seem anyone has patched that version yet. Sold my v40 so can't do it myself. Best to find the link in the 'Roms' section and find 'lineage' thread. In the beginning is an invite for tele group. Join it and someone there can do it for you.
[LG V40 Guides, News, & Discussion] VIJIKRISHNA:
Sure sir , I am having LG firmware extractor , extracted & have back up of V30 f software version - wil this have that patched boot image ? Sir .