This Guide will explain how to unlock your LG V40 (Every variant except T-Mobile)

Unlock Prerequisites:

QPST Download:

Booting into EDL:

Using QFIL to Unlock Your Bootloader

Setting up QFIL:

Flashing the Engineering Bootloader

abl_a

Erase: Wipes the specified partition clean

Read Data...: Backs up the partition. It will tell you where it saved it in the log output in the main window

Load Image: Flashes a .img file of your choice to the specified partition

Close: Brings you back to the Partition Manager

Unlocking Your Device:

Code: fastboot oem unlock

Code: fastboot flash abl_a path/to/ablpiestock.img

The V35 Engineering bootloader is OREO only. Some people have managed to boot with this on pie firmware. But generally, you WON'T be able to boot with this flashed if you're on PIE firmware. If you're on Oreo firmware, you can leave this flashed



Code: fastboot flash frp path/to/frp

Code: fastboot oem unlock

Code: fastboot erase laf_a

Code: fastboot erase laf_b

Make sure you have "Enable OEM Unlock" enabled in developer options, along with adb debugging. Very important. You'll be stuck with the red triangle otherwise. If you don't have the "Enable OEM Unlock" option in developer options, you'll have to flash frp with the v35 engineering bootloader. The frp image will be provided in the attachments section.It turns out the reason QFIL is failing is because it's missing quite a bit of stuff. I'm providing the zip to QPST (It's actually required) to install. QPST includes QFIL. My fault, I'm all over the place with this... Here it is (GDrive): QPST Note: This can be done while booted!1. Plug in your Phone to your PC2. Press and hold Power and Volume Down3. As soon as your screen blanks, rapidly start pressing volume up.4. If you've successfully booted into EDL, your screen will be completely blank and the device manager will show (Under COM Ports): Qualcomm HS-USB QDLoader 9008QPST should be installed, and your in 9008 plugged into your PC.1. Launch QFIL and set your storage type to UFS. This is located at theThe LG V40 has UFS storage. The leaked loader is a loader for LG SD845 UFS devices. If you try to send the loader with your storage set to emmc, it will NOT work. By default, it is set to emmc.2. Select the port. Click select port and select the one that says "Qualcomm HS-USB QDLoader 9008 (COM #)" That is your phone. After it is highlighted, press OK.3. Under select programmer, click browse, find the loader and select it.4. Your screen should now look like this (Minus the Flat Build Stuff, that is for total unbrick purposes):QFIL is now all setup and ready for flashing.1. In the upper left hand corner of the Window, click on Tools > Partition Manager from the drop down menu2. When the Partition Manager window comes up, find "" > click on it > right click and select Manage Partition Data.3. When the "Raw Data Manager" window comes up, there are four options to choose from (I'll tell you what each of them does):You'll be using the load image function to flash the V35 Engineering bootloader to your device.4. Click load image then select the V35 engineering bootloader. It will flash the image to your device.Now that the V35 Engineering Bootloader has been flashed to your device:1. Press and hold the Power and Volume Down buttons until your device reboots out of 9008. When you hear the disconnect sound, immediately hold volume down (only volume down) to enter fastboot right away (this is required for both methods, my apologies).2. When you've entered fastboot, execute this command: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:4. For devices without the "Enable OEM Unlock" option, you'll need to flash frp! You can do so with (While still in V35 Bootloader):4a. Reboot right back into fastboot (hold volume down after rebooting) and run:5. (Optional, but not required) To gain fastboot access for devices that have no fastboot access, you'll need to nuke your laf partitions. LAF is LG Advanced Flash or Download Mode. On LG Devices, nuking this will allow you to access fastboot on devices that normally cannot do so.To Nuke your LAF partitions (One or both, it's up to you. Only V35 eng bootloader can touch this. You can wipe from 9008 also.):5a. To access fastboot, you'd access it the same way you access Dowload Mode. USB + Volume up then reboot.6. You have now unlocked your device, and if you nuked your laf partitions, you have fastboot access as a bonus (But, no more download mode until you flash LAF back).The reason you can't unlock your T-Mobile device is because no other bootloader/firmware will work with T-Mobile devices. Only T-Mobile firmware will work on it. If you're looking for root, avoid V405TA (T-Mobile) phones. Any other model will work for this.