The LG G5 H850 bootloader unlock can now be done officially through LG’s developer unlock program, but only on the European H850. This guide walks through LG’s official unlock steps and then adds optional steps to install TWRP recovery and root the phone with SuperSU.

Warning: Unlocking the bootloader factory resets the phone and wipes all your data. LG does not support re-locking the bootloader, so once it is unlocked it stays unlocked. Follow these steps at your own risk.

 LG G5 H850 Official Bootloader Unlock

Which LG G5 Models Can Be Unlocked

Only the European LG G5 H850 is supported. An H850 from the Middle East will not work, and the AT&T G5 is not an H850 at all, so this method does not apply to it.

The unlock is requested on the LG Developer bootloader unlock site.

Requirements

  • A European LG G5 H850
  • A computer with ADB and Fastboot installed (see Downloads below)
  • Basic knowledge of ADB, Fastboot and the Windows command prompt or the Linux/OS X terminal
  • Your device IMEI. This 15-digit code is printed on the box and on the back of the phone, or you can dial *#06# to show it.
  • An LG developer account. It is free, and anyone can sign up for an LG developer account.
  • For the optional root and TWRP steps: a microSD card

Downloads

How to Unlock the LG G5 H850 Bootloader

LG’s official bootloader unlock directions are on the LG Developer bootloader unlock instructions page. The steps below follow them, with extra steps for TWRP and root at the end.

Step 1: Enable USB debugging

USB debugging is required for the adb and fastboot commands to work. Go to Settings > About phone > Software info and tap Build number 7 times. Return to the previous screen, open Developer options and enable USB debugging.

Step 2: Enable OEM unlock

The “Enable OEM unlock” option must be switched on for the bootloader unlock to work. Go to Settings > Developer options and check Enable OEM unlock.

Step 3: Reboot into the bootloader

Connect the phone to your computer, open Command Prompt or Terminal and enter this ADB command:

adb reboot bootloader

If ADB does not detect your device, try switching the phone’s USB mode from Charging to MTP or PTP.

Step 4: Get your Device ID

Once the phone is in the bootloader, use this fastboot command to get the Device ID:

fastboot oem device-id

Fastboot returns a string. This is the Device ID that LG needs to generate your unique unlock key. Example output:

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

To generate your unlock key, join the two lines of output into one continuous string, without “(bootloader)” and without any spaces. In the example above, the Device ID would be:

CD58B679A38D6B613ED518F37A05E013F93190BD558261DBBC5584E8EF8789B1

Step 5: Request the unlock.bin file

Copy the Device ID and your IMEI into the LG developers unlock site and click the confirm button. A few moments later, LG emails the unlock.bin file to you. Download unlock.bin to your computer.

Step 6: Unlock the bootloader

This unlocks your phone AND factory resets it, wiping all data. While the phone is still in fastboot mode, enter this command:

fastboot flash unlock unlock.bin

Step 7: Reboot the phone

You can now reboot the phone and boot into your unlocked device. Enter:

fastboot reboot

Optional: Install TWRP and Root the LG G5 H850

Step 8: Prepare SuperSU and TWRP

Before you go further, put the SuperSU 2.65 ZIP on a microSD card. Do not set the external SD card up as adoptable storage. Also download the TWRP image for the H850 to your computer (both links are in Downloads above).

The unlock wiped the phone, so enable USB debugging again first, then reboot back into the bootloader:

adb reboot bootloader

Step 9: Flash TWRP and boot into it

Flash TWRP with this command:

fastboot flash recovery twrp-3.0.2-0-h850.img

For TWRP to “stick”, you must boot directly into TWRP, and not back into Android, until after you have flashed the SuperSU ZIP. After flashing TWRP, unplug the USB cable and pull the battery. Put the battery back in, then boot into recovery, which should load TWRP:

  1. Using both hands, press and hold Volume Down with one finger and the Power button with the other.
  2. As soon as the LG logo appears on the screen, let go of the Power button and then quickly press it again, without ever letting go of Volume Down.
  3. Keep holding until you see the Factory Reset screen, then confirm both factory reset screens with Yes. With TWRP flashed correctly, this should open TWRP.

Step 10: Flash SuperSU in TWRP

You will not be able to decrypt your internal data while in TWRP (unless you perform a full /data wipe in TWRP, which means you lose encryption), but you can manually mount the external SD card to reach the SuperSU ZIP. Feel free to make a backup first. Then tap Install, navigate to external_sd, select the SuperSU ZIP and swipe to install it.

The phone is now rooted and has TWRP installed. Reboot into the system.

Be careful from here on: when this guide was written, there were no tools yet to restore the LG G5 back to stock.

Video Guide

This video shows how to unlock the LG G4. Up to about the 6-minute mark, it is step by step the same as on the G5; there are only slight differences once you reach the TWRP and root steps.

Watch the LG G4 bootloader unlock video (YouTube)

Related Guides

FAQ

I have an H850Q from Israel. Can I unlock the bootloader?

No. This official unlock program is only for the H850 model sold in European countries, just as LG did for the LG G4. That said, for a span of about 10 days the year before, G4 devices from South East Asia worked with the official site and their owners received unlock.bin files.

Will more devices be added?

There is no official word, but most likely not, unless another mistake lets H850 phones from another region through for a while. Other than the EU H850 and possibly the T-Mobile H830, no other G5 variants are likely to get an official bootloader unlock.

My phone does not show up in ADB or Fastboot. What should I do?

Make sure USB debugging is enabled and try changing the phone’s USB mode, for example from Charging to MTP, or from MTP to PTP. If you use Windows, make sure the LG drivers are installed.

Where can I get drivers and other files?

A good place to start is the original author’s LG G5 info thread on XDA Developers. Searching Google and this website is also a good way to find them.

What happens to my warranty if I unlock or root?

It may vary. LG’s official site says the warranty is void if damage is caused by the unlock. The original author believed EU law might keep warranty coverage after unlocking, but was not sure whether that is enforced or still valid, so do not rely on it.

Can I re-lock the bootloader?

No. LG does not support re-locking the bootloader, so once it is unlocked it stays unlocked.

Credits

This guide is based on an XDA Developers thread by its original author, who posts LG-related updates on Twitter (@utoprime) and accepts donations through XDA Developers toward an LG G5 fund.

https://droid-developers.com/wp-content/uploads/2016/05/LG-G5-H850-Official-Bootloader-Unlock.pnghttps://droid-developers.com/wp-content/uploads/2016/05/LG-G5-H850-Official-Bootloader-Unlock-150x150.pngFahim MahmudAndroidAndroid OSHelp & TroubleshootingHow ToBootloader Unlock,LG G5 H850The LG G5 H850 bootloader unlock can now be done officially through LG's developer unlock program, but only on the European H850. This guide walks through LG's official unlock steps and then adds optional steps to install TWRP recovery and root the phone with SuperSU. Warning: Unlocking the bootloader factory...Android Help,Troubleshooting  & Stock Rom