- Mar 29, 2014
SUPERSEDED: Go Here
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
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.
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)
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
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.
Last edited by a moderator: