Install TWRP, Disable Forced-Encryption, and Root LG G5

Root LG G5

Earlier yesterday, we demonstrated how you can unlock the LG G5’s bootloader, officially on the European variant. And now that you can do it, you can also step further towards a more customized experience, including custom ROMs, tweaked kernels, and mods like ViPER4Android and Xposed Framework. In order to do that, you will require to have TWRP installed, to flash these mods, and root LG G5, for them to operate properly. This will work only on the LG G5 European variant, since only the same offers an unlocked bootloader.

There is another minor set of instructions below, which are there to guide to disable forced-decryption and finally decrypt the LG G5. To know more about encryption, and how it works, click this link.

“Why do I need to decrypt my LG G5?” — The answer is simple. If you want to make modifications to the system partition, including system root, and other tweaks, you will need to decrypt. And thanks to XDA member – jcadduono, we can now do that by flashing a boot patching flashable zip, that will disable dm-verity checks on the boot.img (kernel), and allow you to decrypt. As about TWRP, it is officially supported by TeamWin. We are going to use a bunch of fastboot commands to flash it through, followed by flashing SuperSU, for root.

No more discussions, let us begin with the instructions.


Making system modification may result in a soft-brick, if done wrong. However, it is still recoverable. or any of its members shall not be held liable for any damage to your device.

Before You Begin

  • The process of decryption will erase the complete internal storage and all the data on the device. Make sure that you take a complete backup of everything before stepping ahead.
  • Charge your LG G5 to a sufficient battery level, so that it doesn’t shut down during the process.
  • Make sure to install LG drivers on your PC: Download LG drivers
  • Enable USB debugging in Settings > Developer options. If you do not know how, follow this tutorial.
  • Android SDK must be installed on your PC. It will be required for ADB and fastboot access.
  • You will need to unlock the LG G5’s bootloader first. Follow the instructions here.
  • Download: (Thanks to jcadduono)
  • Download SuperSU flashable zip:
  • Download the latest TWRP recovery image file:
  • Transfer the downloaded ‘’ file to the external storage of your G5.

Install TWRP

TWRP could be easily flashed on the G5 using fastboot commands.

  1. While your LG G5 is booted into the OS mode, connect it to the PC using an appropriate USB cable.
  2. Open the folder/directory, where the TWRP image file (twrp-3.0.2-0-h850.img) was downloaded. In the same folder, press SHIFT key and right-click on an empty space. Select Open command window here from the menu that appears.
  3. A new command prompt/CMD window will open. Enter the following command to reboot your device into bootloader mode:
    adb reboot bootloader
  4. Your phone should instantly boot into the bootloader mode. In case it doesn’t, make sure that you have set up Android SDK properly, or try switching to a different port on your PC.
  5. While your G5 is in bootloader mode, and connected to the PC, flash the TWRP recovery using the following command:
    fastboot flash recovery twrp-x.x.x-x-h850.img

    Here, x.x.x-x resembles the version. Please make sure to replace it accordingly, while using the command. For example:

    fastboot flash recovery twrp-3.0.2-0-h850.img
  6. It will merely take a few seconds to flash.
  7. Important: Do not boot into OS yet. If you want TWRP to stick, you got to boot into it first. So once the flashing is done, disconnect your G5 from the PC and remove its battery, and insert it once again. Alternatively, you can also long-press the Power key to power down the device completely.

Decrypt and Root LG G5

  1. Boot into recovery mode — Press and hold the Volume Down and Power keys simultaneously, until you see the LG logo. As soon as the logo appears, while still holding the Volume Down key, release and press the Power button quickly. The Factory Reset screen should appear now. Follow the on-screen instructions until your device boots into TWRP recovery. Yes, the process is tricky, and it may take a few tries until the recovery is successfully triggered.
  2. Once TWRP boots, it may ask for decryption password, skip it and move forward to the main-screen.
  3. Now, go to Install. Browse the phone’s external storage and select‘. Swipe the ‘Swipe to confirm Flash‘ button on the bottom of the screen to start the flashing process.
  4. Once the flashing process is complete, go to Reboot > Bootloader.
  5. Your G5 will boot into bootloader mode, once again. This time, open a CMD window and enter the following commands to decrypt:
    fastboot format userdata
    fastboot format cache
  6. The command will wipe your complete internal storage, so make sure that you have everything backed up.
  7. Reboot into TWRP again, by following step #8.
  8. Connect your G5 to the PC. Now, go to Mount and ‘Enable MTP‘. Transfer the SuperSU ‘‘ file to the storage now.
  9. Disconnect the device. Go to ‘Install‘, and select ‘‘. Swipe the ‘Swipe to confirm Flash‘ button to finally root the LG G5.
  10. When everything is done, go to Reboot > System.

To verify that your G5 has been rooted, install the Root Check app from Play Store, and run it.

Root Check
Root Check
Developer: JRummy Apps
Price: Free+

Congo! You have just installed TWRP, disabled forced-encryption, and rooted your newly bought LG G5. If you face any issues during or post the process, let us know through the comments.