[GUIDE] Unlock your LG V40 via 9008 mode (Every Variant except T-Mobile)

Redline

Retired Forum Moderator
Aug 12, 2014
1,591
1,739
0
Victoria, Australia
twitch.tv
Is this something that could be blocked in a further update? Is there something LG could do to block it?

Thanks again
Doubtful. We already have the firmware needed to boot and run ROMs such as LOS 17.1 and they're mirrored, so while yes LG could hypothetically break something in a future release I highly doubt they will, and even if they do we already have what we need. So.
 
  • Like
Reactions: Evilmonstertruck

copota

Senior Member
Jun 29, 2012
183
90
48
USA
OK, I screwed up and bricked my phone by selecting delete GPT when deleting my laf partition. Now I have no partitions.

Is there any way to recover from this or should I just go buy a Galaxy Note 9 and forget about this nightmare of a LG phone.
 

Attachments

Ugedarkline

Member
Jan 13, 2020
5
0
0
BlackScreen

This Guide will explain how to unlock your LG V40 (Every variant except T-Mobile)..
LG V40 korean SKT
I got wrong step because an hurry , now my screen , only show small notice "KEY TO SHUTDOWN" at upper left corner , mostly blackscreen
i’ll try flash stock abl to abl partitions.
@Xsavi How to flash to my abl partition , i connect it to pc didnot detect my v40
@Xsavi thank you , now it fix by hold power+Vol down , while tapping fast rapidly Volume Up until connect to PC
Now at fastboot i have status UNLOCKED
 
Last edited:

Ugedarkline

Member
Jan 13, 2020
5
0
0
LM409n Korean stuck on fastboot

Confirmed working for Korean model LM-V490N!
actually my LG LM409n , why now at fastboot mine show status LM405 UNLOCKED , stuck on fastboot , can u inform next step to root n fix it ??? maybe i do wrong step
Edit : now have TWRP , still try to fix bootloop
NB : my English very bad :D:D
 
Last edited:

legend1250

Member
Aug 25, 2015
5
0
0
actually my LG LM409n , why now at fastboot mine show status LM405 UNLOCKED , stuck on fastboot , can u inform next step to install TWRP, root n fix it ??? maybe i do wrong step
NB : my English very bad :D:D
I have one LN-409N and have to wait your status now
First time to unlock LG phone, it's too much complicated :eek:
 

wigglesthephone

New member
Feb 8, 2020
2
0
0
Confused

I've got a V405UA. I get the phone into EDIL mode, I load the partition, I restart with the down arrow and it just boots back to the normal screen.

I've checked my port_trace logs and they look good. Any guidance on what to try next would be greatly appreciated.
 

wigglesthephone

New member
Feb 8, 2020
2
0
0
I've got a V405UA. I get the phone into EDIL mode, I load the partition, I restart with the down arrow and it just boots back to the normal screen.

I've checked my port_trace logs and they look good. Any guidance on what to try next would be greatly appreciated.
Finally got to the fastboot screen, ran the unlock command and got this:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem unlock
...
FAILED (remote: Set device unlocked! failed: 00000050)
finished. total time: 0.016s

The fastboot screen shows it's still locked.
 

Ugedarkline

Member
Jan 13, 2020
5
0
0
Finally got to the fastboot screen, ran the unlock command and got this:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot oem unlock
...
FAILED (remote: Set device unlocked! failed: 00000050)
finished. total time: 0.016s

The fastboot screen shows it's still locked.
i forget detail , try each : update adb interface driver , plug out n reconnect usb , fastboot getvar all , change active slot a/b
im done install CustmRoM n root it with magisk (nubie , vm v409n)

---------- Post added at 08:39 PM ---------- Previous post was at 08:28 PM ----------

I've got a V405UA. I get the phone into EDIL mode, I load the partition, I restart with the down arrow and it just boots back to the normal screen.

I've checked my port_trace logs and they look good. Any guidance on what to try next would be greatly appreciated.
retry step from begining at QFIL , chose Storage = UFS , tools >> partition manager , then load v35eng.img to abl_a abl_b (@me) then close n reboot to fasboot
 

madturbo123

Member
Apr 10, 2011
9
0
0
Thanks heaps op.

Now I can go to something light like lineage. I have both the v40 and 15.1 linage on my v20 and prefer using that over my stock v40, so bloated.

Has anyone tried this on the Aussie LMV405EBW?
 

cogpie

Member
Feb 10, 2020
8
6
0
Incorrectly referred to EDL than Download mode

HI all, I just wanted to share my experience of this that may give some extra help for others going through this. But first, I'd not have got anywhere if it wasn't for a bunch of you on here, so many thanks to @Xsavi, @Ainz_Ooal_Gown, @DLS123, @LameMonster82 and many others! And I may as well pre-thank @SGCMarkus as his threads are coming soon enough...

Ok, so my initial goal was to get root on my LG V40...

I started with an LM-V405EBW V20a-IND-XX, so that meant I was not able to unlock the bootloader using the official LG method - I've got to admit, I liked the LG V40 phone, and it was a good price, and I thought it had developer support... I missed that it was only for one market (come on LG, please do better!)

Anyway, challenge was set! All I really wanted was to have root... I naïvely thought a combination of @Ainz_Ooal_Gown's LGUP Guide and some KDZ tweaking from @DLS123 would get me there; however, I was about to run in to two snags: CrossDL errors and Chain of Trust issues

So my first thought was: could I perhaps flash an EU image onto the phone and also get a bunch of security upgrades too! So I downloaded the latest one, V20e-LAO-COM. Then following @Ainz_Ooal_Gown's guide I evenutally ran into the CrossDL "Error 0x6004 OPEN_ESA_DS > OPEN_EU_DS". From searching around the only way I could force this was to use the LGUP_Cmd.exe from the LGUP v1.15 Developer version. And this worked perfectly, even though there were rumours around that such an indiscriminate flashing could be very dangerous and brick my phone - so beware and be careful!

Ok, so now I learnt that IMEI and OEM Device-ID are a more integral part of the phone, and this flash has only brought me useful security fixes that my previous would not have - so that's good. However, I am a long way from root as my reading around this informed me that unless I could break the QCom Chain of Trust (eg. unlock the bootloader, etc.) then I was not going to get a phone that would boot up, certainly patching the boot in a KDZ image was not going to work. I saw that I could have this done remotely with those who owned an Octopusbox by hooking up via some websites or the V40 Telegram group - sadly both felt a little like giving up, and I couldn't afford one of the boxes so...

Then I found this, @Xsavi's, guide. I ended up using the latest QPST from QPSTtool.com. I probably didn't need it, however I was getting many "Download Fail:Sahara Fail:QSaharaServer Fail:process fail" errors. I was unable to get the QFIL tool to download the partitions in the Partition Manager part of QFIL. When it works it should be very quick, but when it doesn't it will stall for a while, output some logs, and then that error (similar to the output here, although they are doing something different).
Using the latest version of QPST seemed to fix this with the one given in this thread. But then it too started failing with the same error. So, from more reading, I started to get a feel that timing and maybe environment was important. In terms of timing, as soon as you put the phone into 9008 Mode* you need to as quickly as possible load up the Partition Manager, and in terms of environment, a freshly restarted phone put into this mode... possibly similar for the QPST tooling too... I didn't manage to repeat this to be sure.
(* yes - 9008 Mode is a black screen, doesn't boot, doesn't seem to be on, hold <power>+<vol down> to reboot out of it. You also need to have the cable plugged it to go into this mode it seemed. And you have to be very quick once you turn the power off, pressing the <vol up> button to go into it too. You will know you got it as the phone will not turn back on, and in Windows Device Manager you will see the Qualcomm HS-USB QDLoader 9008 come up)

I did a few things different from this guide that I'll cover here: I took a backup for the abl_a/abl_b and laf_a/laf_b partitions using QFIL. When you look at a partition you have an option to Read it too. I used this to make backups. I then used the V35 image to unlock the bootloader of the V40! (yes! success!) I then restored the abl_a I took a backup of. When I rebooted I was presented with a fastboot that was now not looking for unlocks, it wanted me to flash things. So I put the phone into Download mode, and then using LGUP I restored the V20e-LAO-COM KDZ. After a few reboots, a reset, and some processing time the LG V40 is now up and running and importantly with the bootloader still unlocked! And everything seems to be working so far...

I realise looking back I could have cut out the CrossDL issues as everything would have been erased in the bootloader unlock. Oh and all of this was done via Windows 8.1 VM in VirtualBox: you can both download IMGs from Microsoft's site, then another part will give you the Product Keys. Anyway, hope that helps others a little bit through this too - next is to finally try out @DLS123's Magisk tutorial and I should be done, until some LineageOS desire sets in.

Thanks again everyone! Looking forward to what can be done in this space now for this phone: 9008 Mode is amazing (and terrifying) for its scope!
 
Last edited:

cogpie

Member
Feb 10, 2020
8
6
0
this was done via Windows 8.1 VM in VirtualBox
Just to add something that is interesting: if you try to use QFIL when you have a folder shared from your Host OS to your Guest OS, this can cause 0x00 (NUL) byte prefixing to some messages going over the Sahara protocol. This is really odd, but whilst I had a Shared Folder (in VirtualBox, seen as a Shared Network Drive in windows) this would cause the application to fail when trying to load the partitions, but a different error than the timing (or environment) one above - which, does seem to be more about timing after doing this a few more times.

After this @DLS123's Magisk tutorial was a breeze, and rather than unpack a KDZ I just used Mode 9008 to dump the boot_a/boot_b partitions. Then had Magisk install itself onto them and then restored them back.

Final result: Locked bootloader, Unrooted, LM-V405EBW V20a-IND-XX converted to Unlocked bootloader, Rooted, LM-V405EBW V20e-LAO-COM and everything so far seems to be working for me. However, there may be some issues around SafetyNet due tot he system noting that the Bootloader is unlocked... but I guess we can patch that up later anyway.
 
  • Like
Reactions: serpent android

dragonsamus18

New member
Sep 12, 2019
1
0
0
Hi,
i have this problem

I had this same issue after OEM Unlock finished as I probably skipped a step. Not sure if you still are, or if even related.. FASTBOOT worked for me.
fastboot flash (partition name) image.img for example:
fastboot flash abl_a ablpiestock.img
fastboot flash boot_a twrp.img

Good luck.