Back in 2015, LG officially started allowing customers to unlock bootloaders of select LG phones. You would still void your warranty, but you had the option. Now the bootloader for the ‘H840’ variant of the LG G5 can be officially unlocked.
Unlocking the bootloader involves entering the first 15 digits of the phone’s IMEI number into LG’s site, installing the Android SDK (or a custom ADB/Fastboot installer, if you prefer), and generating an unlock key.
LG adds the G5 SE (H840) to bootloader unlock program was written by the awesome team at Android Police.