How to Root the LG G5 T-Mobile H830 H83030C 8.0.0 Oreo Complete Guide

WARNING: This will completely wipe all your data multiple times. =]

You will need a USB-C to USB-A cable, and a computer. Most of it can be done on Linux, or MacOS, but the initial downgrade of the OS can only done on Windows. Unless you can run LGUP and Uppercut in WINE or a Virtual Machine.

Plus all these files:

  1. ADB
    dl.google.com/android/re…
  2. LG drivers
    downloads.codefi.re/auto…
  3. LGUP
    downloads.codefi.re/auto…
  4. Uppercut
    downloads.codefi.re/auto…
  5. Downgrade rom
    downloads.codefi.re/auto…
  6. TWRP recovery
    dl.twrp.me/h830/
  7. Easy Recowvery (Download entire folder)
    github.com/yantis/EasyRe…
  8. Noverity disable forced encryption
    build.nethunter.com/andr…
  9. Latest ROM
    downloads.codefi.re/auto…
  10. Magisk
    github.com/topjohnwu/Mag…

Unlock Bootloader (This will delete all your data!)

  1. Enable Developer mode and USB debugging
  2. Enable OEM unlock in the Developer options under device Settings, if present.
  3. Connect the device to your PC via USB.
  4. On the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
    1. adb reboot bootloader You can also boot into fastboot mode via a key combination: With the device powered off, hold Volume Up + Power.
  5. Once the device is in fastboot mode, verify your PC finds it by typing:
    1. fastboot devices TIP: If you see no permissions fastboot while on Linux or macOS, try running fastboot as root.
  6. Now type the following command to unlock the bootloader:
    1. fastboot oem unlock
    2. fastboot reboot
  7. Go through set up wizard

Downgrade to H83020A.
I used a Windows 10 machine to perform the following:

  1. Install LG drivers.
  2. Install LGUP
  3. Install Uppercut
  4. Flash .KDZ

Install TWRP custom recovery. I ran this is an Ubuntu terminal after making sure I had adb installed. You can use WSL (Windows Subsystem for Linux), or Windows cmd.

  1. Go through phone wizards and reenable developer and debugging on phone.
  2. Install adb: `sudo apt install adb`
  3. Download TWRP
    1. wget url
  4. Push to phone:
    1. adb push ~/Downloads/twrp-blahblah /sdcard/recovery.img
  5. Download and unzip “recowvery”. Open a terminal and change into the recowvery directory.
  6. Run the below commands:
#LINUX
TARGET=/data/local/tmp
adb shell rm -rf $TARGET/recowvery
adb shell mkdir $TARGET/recowvery
adb push dirtycow $TARGET/recowvery/
adb push recowvery.sh $TARGET/recowvery/
adb push recowvery-app_process64 $TARGET/recowvery/
adb push recowvery-applypatch $TARGET/recowvery/
adb push recowvery-run-as $TARGET/recowvery/
adb shell sh $TARGET/recowvery/recowvery.sh

Or

rem WINDOWS
set TARGET=/data/local/tmp
adb shell rm -rf %TARGET%/recowvery
adb shell mkdir %TARGET%/recowvery
adb push dirtycow %TARGET%/recowvery/
adb push recowvery.sh %TARGET%/recowvery/
adb push recowvery-app_process64 %TARGET%/recowvery/
adb push recowvery-applypatch %TARGET%/recowvery/
adb push recowvery-run-as %TARGET%/recowvery/
adb shell sh %TARGET%/recowvery/recowvery.sh

Wait for it to reboot. Disconnect and reconnect the USB cable.

adb shell sh $TARGET/recowvery/recowvery.sh --stage1 --nohash
adb shell sh $TARGET/recowvery/recowvery.sh --stage2 --nohash
adb reboot recovery

Wait for recovery

Install Decryption

adb push no-verity-opt-encrypt-6.1.zip /cache/recovery/
adb shell twrp install /cache/recovery/no-verity-opt-encrypt-6.1.zip
adb shell twrp wipe cache 

Install H83030C

  1. Download and install H83030C zip
    1. wget url
    2. adb push LG-H83030c.ARB01.TMO.US.COMPLETE.FLASHABLE.zip /sdcard
    3. adb shell twrp install /sdcard/H83030c.ARB01.TMO.US.COMPLETE.FLASHABLE.zip
  2. Install and wipe cache

Install Magisk (Root)

  1. Sideload Magisk
    1. download: wget url
    2. enable sideload under advanced in TWRP
    3. adb sideload Magisk-v20.1.zip
    1. reboot –> system

Done!


How to restore back to stock 8.0.0 Oreo H83030C

  1. Flash .KDZ

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.