Cheers to the fellow T-Mobile LG G5 users out there. Your devices can finally have root access on Android 6.0.1 Marshmallow build, thanks to developer tungkick over at xda.

tungkick has released a TOT firmware file for the T-Mobile LG G5 with TWRP recovery baked-in, so you can just boot into TWRP after flashing the TOT on your T-Mobile G5 and flash SuperSU zip to get root access. That simple.

This TOT file rooting method, however, requires you to have a unmodified stock firmware running on your T-Mobile G5. If you’re running a modified firmware,and you flash the TOT file with TWRP, your device might get boot verification error.

To get started, download the files required from the downloads section below and follow the instructions carefully.

Downloads

Optional download: Full stock H830 TOT firmware
└ If you’re not running stock unmodified firmware on your T-Mobile G5 and getting the “Boot Verification Error”, then only download this file.

NOTE: Make sure to backup your photos, videos, music and other important files on the device, as the rooting procedure below might completely wipe your device’s data. You have been warned!

Instructions to Root T-Mobile G5 with TOT file
  1. Setup ADB and Fastboot on your PC.
  2. Download and install LGUP software from the download section above, and also install the T-Mobile G5 driver file (LGH830_DLL.msi) as well on your PC.
  3. Unlock bootloader on your T-Mobile LG G5:
    1. Enable developer options on your device (double tap 7 times on Build Number from About phone in device Settings).
    2. Open Developer options and enable USB Debugging and OEM Unlock.
    3. Open a command window on your PC, connect your T-Mobile G5 and issue the following commands one-by-one to unlock bootloader:
      adb reboot bootloader
      
      fastboot oem unlock
  4. Put your T-Mobile G5 in Download Mode:
    1. Switch off your device
    2. Hold Volume UP button and connect the device to PC via USB cable (while holding the Vol UP button).
  5. Extract the LGH830AT-01-V10a-310-260-MAR-04-2016-ARB00+0FULLROOT.rar file you downloaded above to get the LGH830AT-01-V10a-310-260-MAR-04-2016-ARB00+0FULLROOT.tot file.
  6. Open the LGUP software you installed on your PC in Step 2 above » Select Upgrade option » Select the TOT file we extracted in Step 5 above » hit Start.
  7. Once TOT file is flashed successfully, boot your device and transfer the SuperSU and DM-Verity disable zip files to your device.
  8. Boot your T-Mobile G5 into TWRP recovery:
    1. Switch Off your device.
    2. Hold Power and Volume Down button together and soon as you see the LG logo, release the buttons for a moment and then press hold both the buttons again until you see the TWRP recovery screen.
  9. Flash SuperSU and DM-Verity disable zip files from TWRP recovery.
  10. Reboot device and you’re done.

Enjoy root on your T-Mobile LG G5 H830. Cheers!

Troubleshooting
  • TWRP Bootlooping?

In case you’re experiencing bootloop with TWRP recovery, follow the quick fix below:

  1. Boot your G5 into TWRP recovery.
  2. Connect device to PC and open a command window on the PC.
  3. Issue the following commands one-by-one:
     adb shell
    
     su
    
     dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/misc
    
     dd if=/dev/zero of=/dev/block/platform/624000.ufshc/by-name/fota
    
     reboot

This should fix your TWRP bootloop issue.

  • Boot Verification Error

If you’re getting Boot Verification Error on your device after following the rooting procedure above, then you were probably not running the stock T-Mobile G5 firmware prior to flashing the TOT file with TWRP recovery.

To fix Boot Verification Error, you need to download/flash the Stock TOT firmware from downloads section above (available as an optional download), and then follow the whole rooting procedure again.

That’s all. Hope this guide helped you in rooting your T-Mobile LG G5 H830.

Happy Androiding!

via xda