[LG V40 Guides, News, & Discussion] Xsavi:
SUPERSEDED: Go Here

​

Prerequisites:

V35 Engineering Bootloader flashed to your device (Stock bootloader will NOT work for this)

USB 2.0 (USB 3.x does not work well with ADB or Fastboot)

The V40 Pie Conversion Tool

Be in fastboot mode before attempting this

Patience

ADB and Fastboot DRIVERS. Platform tools are already included in the archive

Windows. The tool is not designed for Linux.

This will NOT sim unlock your phone[/CENTER]

Note:

I'm not responsible for any bricks that come about from using this tool. Once you crossflash, there's NO going back unless you have backups of your partitions, or a KDZ specifically for your device. I'm going to say this again, DO NOT use USB 3.x while attempting this. You will run into errors. You won't see anything for a little bit when it gets to flashing system_a and vendor_a because it has to load those images into ram.

Download the tool: Google Drive

1. Download the archive and unzip the tool.

2. Navigate to the folder you unzipped the tool to.

3. Enter the folder and inside the folder you should find "V40PIECONVERSION.cmd". Ignore the one with the "Stock Boot" at the end. All it does is flash the stock boot image instead of the TWRP that is required to do this.

4. Execute the batch file and follow the instructions. When the batch file is done, Pie will be flashed, but it will not boot due to encryption. We're going to disable that.

5. Boot TWRP by performing a master reset. To perform a master reset: Press and hold Vol- and Power. When you see the "V40 ThinQ" logo release the power button and quickly press back down. Keep holding Vol- and Power until you see a factory reset screen. Finally, follow the prompts (yes) and you should be in TWRP.

TWRP Instructions​

Head over to the wipe menu and format data (to remove encryption).

Next, head over to mount and mount vendor. Mount ONLY vendor.

Now, open a command prompt, navigate to the folder where you extracted the tool, and open a command prompt inside the folder (Type "CMD" in File Explorer's Address Bar)

[IMG="example"]https://lh3.googleusercontent.com/ig7ntpwL3bCWBr1tv2MBtea-gGnZUdPlMtGNGZa_o9uOvE3XwbiQi_lT--xi4QsOQFHGpEmyZSDl7mkgLHuKCtnWArArdV8pZgn3zXnZPW6f5skNpaokpEiK1q-VP_3Ro4awPKn_aoIefURT_U9E4PwndbOfJmergECGK62C-wU-Dn4ZpQ0XK2jvRvtemSKWrtXHI96uAYzjZnM2f783Dqklp9rp_RucTAeKQDY64b4JmJbExlxHCZlJV_mQDzhggCrzKleKRkYFS5G3GKzzLlNw8QRmufuLsMtBvNyrQkfpvbs61EY6uRC0aSLiKOixMEvFbXEGENx597qA28-eW5YrOgZ7HR4tel1Sx3QLRS-0I6q2iJvcP6X1v2YQMfrZNRpOpa9-r55ROcL5Eyp1zDO6WAdrP5aAKjZJDwg6w6PUWbeLDy9Wem_hV6hOQJvNNeQzjKmPj1NSOxaUgcnMileDyR-0hCzaxF1auegPKmo2Qi7Ayqpe9HF4Jrl4eAduc2TgXHaL84Og3GGHaK0_faAWzUBKhrkP0R_tFeQKTd7JE_Ygtg5fEaJxSo445AQ3rpw6IhDhrkLhmoFYLhs4wtjMJyNM2EIs2mDmkdBS6WknmxVj-p19xgd2gnc6q05u84WmKc30H-L5fPxnhE8NPqxRGttl1lz82U99liObbbhinm_GeABV3vKs7Il-nPMFbaaWd6JACbpJYljoSWshlX4PfA=w1096-h615-no[/IMG]

Execute the adb command:

adb pull /vendor/etc/fstab.judypn

Edit the file (fstab.judypn) in your favorite text editor and on the /data mountpoint change "forceencrypt" to "encryptable".

Save and Close the file and push the file back with the command:

adb push fstab.judypn /vendor/etc

Now that encryption is disabled, you NEED to flash back the ORIGINAL boot image that's included with the tool. In order to do that, we need to get back into fastboot.

To get back into fastboot, we need to: Make sure USB is still plugged into the phone. Press and hold VOL+ (Or vol up). Power off the phone (Via TWRP reboot menu) while still holding vol+. Keep holding VOL+ until you see download mode flash for a brief second and you should be in fastboot. The fastboot you see now isn't the V35 Engineering Bootloader. It's the stock pie bootloader. Wiping the laf_a partition allows access to fastboot on devices that are locked (Nearly all US Carriers).

Finally, run the commands:

fastboot flash boot_a boot_a.image

and

fastboot format userdata

You should run into an "encryption unsuccessful" screen. Just hit reset phone. You may have to reboot once or twice to get to the setup screen.

For those of you that want root, here's a patched Magisk boot image: Google Drive

You can flash it by running the command:

fastboot flash boot_a magisk_patched.img

Make sure you open a command prompt in the directory you downloaded the image in. If you don't have adb and fastboot in your environment path, just place it in the V40PIEConversion folder and flash it from there.