How to Officially Unlock the LG G6 Bootloader, Install TWRP and Root

This guide is for officially unlocking the bootloader of the LG G6 H870 European edition, and the USA carrier-free US997 edition. This method will not work on any other models, such as H871/2/3/ or H870K/DS. It also will not work on carrier-tied US editions.

We are unlocking the bootloader through the official LG Developer Unlock Program. The process is fairly easy, just pay attention closely to all the steps I’ve given. Be warned that this will factory reset your device, wiping all data. You can use a tool like LG Backup app or LG Bridge to backup and restore your data after the bootloader has been unlocked. At the bottom of thise guide, I also provide the steps and tools necessary to install TWRP and SuperSU for rooting your LG G6.

Requirements:

  • European LG G6 H870 or USA carrier-free US997
  • ADB installed on your computer. See “How to Install ADB on Windows”
  • Your device IMEI – can be found on the packaging box, the settings menu under ‘About’, or by dialing *#06# on the phone dialer.
  • An LG Developer account – sign up HERE by clicking the “Start Unlocking the Bootloader” button at the bottom of the page.
  • Official LG device USB drivers
  1. First begin by enabling USB Debugging on your device. Go into Settings > About Phone > Software Info > tap ‘Build Number’ 7 times until Developer Mode is activated. Now go to Settings > Developer Options > enable USB Debugging.
  2. Also enable OEM Unlock while you’re inside the Developer Options.
  3. Now connect your device to your PC via USB, and hold Shift + Right click inside your main ADB folder, and choose “Open a command window here”. Make sure ADB recognizes your device by typing ‘adb devices’ without the quotes. If it does, you will see your device’s serial number displayed in the command window.
  4. Type the following ADB command to reboot your device into bootloader mode: adb reboot bootloader
  5. Once you’ve entered the bootloader mode, use the following ADB fastboot commands to obtain your specific Device ID: fastboot oem device-id
  6. The ADB terminal will display a long string, which is your unique Device ID used to generate the bootloader unlock key.

Example: 

$ fastboot oem device-id(bootloader)
(bootloader) Device-ID(bootloader) CD58B679A38D6B613ED518F37A05E013(bootloader) F93190BD558261DBBC5584E8EF8789B1(bootloader)

  1.  To generate a proper unlock key, you will need to paste together the 2 lines of output into one continuous string without “(bootloader)” or spaces. In the example above, the Device ID would be:

CD58B679A38D6B613ED518F37A05E013F93190BD558261DBBC 5584E8EF8789B1

  1.  Now copy your Device ID and your IMEI into the LG Developer’s Bootloader Unlock site, and press the ‘Confirm’ button. In a few moments an unlock.bin file will be emailed to you, so download it onto your computer, placing it inside the main ADB folder.
  2. With your device still in the Fastboot mode, enter the following command to unlock the bootloader: fastboot flash unlock unlock.bin
  3. Now you can reboot your device with: fastboot reboot

Installing TWRP and root after unlocking the bootloader

  1. Download TWRP and SuperSU and place TWRP inside your main ADB folder, and transfer SuperSU.zip to your device’s SD card.
  2. Re-enable USB debugging, since your device was factory reset after unlocking the bootloader.
  3. Reboot back into the bootloader with ADB, remember the command is: adb reboot bootloader
  4. Once you’ve booted into bootloader, enter the following fastboot command: fastboot flash recovery twrp.img
  5. After TWRP has been successfully flashed, unplug the USB cable and power off the phone. Now boot into recovery by holding Volume Down + Power button, until the phone reboots. As soon as you see the LG logo on your device, release the Power button and quickly press it again, without ever releasing the Volume Down button.
  6. You should be brought to a Factory Reset screen. Navigate through it, choosing “Yes” twice until it boots into TWRP. Do not be worried, this is not going to actually factory reset/wipe your data, as long as we have successfully flashed TWRP.
  7. Now in the main TWRP menu, go to Install > choose the SuperSU.zip from your SD card, and swipe to flash it. After SuperSU is successfully flashed, you can Reboot System from inside TWRP.

You’re done!

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

6
    GG
    Gergőő Gönci May 27, 2018

    Hello!
    I have a bit of a problem with this. Everything goes well nad I do everything as said,but after going into the Factory reset screen,and choosing yes,I dont see no twrp,and the phone just resets itself. I did this multiple times,but its not working. Can I please ask for some help?

    PA
    Paulo Artur Sep 25, 2018

    Hi friend, do you know if this method works on h872?

    SW
    Shane Warren Author Sep 22, 2019

    This method won’t work for that

    SW
    Shane Warren Author Sep 28, 2019

    You need to flash TWRP on your device, only then you will be able to see TWRP

    JA
    Jacob Oct 9, 2019

    Thanks so much! The only problem I ran into is the imei, mine was missing a digit but I just copy and pasted the imei from the failed flash dialogue and used that to unlock it.

    DA
    Dave Jan 2, 2023

    No longer works. LG have closed their developer program, without this
    you can’t unlock the bootloader. Can’t apply for LG developer account.
    Can’t proceed.