[LG G6 ROMs, Kernels, Recoveries, & Other Developme] natemckn:
Latest update (8/13): I've been busy recently and haven't had the time or motivation to spend much time on this. Personally, I flashed over to x86cpu's builds (https://xdaforums.com/lg-...lg-g6-t3789468) as they're almost the same as what I was building anyway and he definitely knows what he's doing more than I do. If you decide to move from mine to his, make sure to flash the "to-x86" conversion zip, as his are signed differently and will corrupt your data if you flash directly over mine. Feel free to use my old builds if you want, I'll keep the thread and download links up for now in case I decide to resume development at some point in the future. Thanks for the support, it was fun, hopefully 15.1 for G6 goes official soon

​

Disclaimer

​

Your warranty is now void.

I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this ROM before flashing it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

Project description​

LineageOS is a free, community built, aftermarket firmware distribution of Android 8.1 (Oreo), which is designed to increase performance and reliability over stock Android for your device.

With the help of many in the Telegram channel, I have build LOS 15.1 from source for the US997.

I’ve been using these builds for a few weeks and have been happier than when I was using 14.1 official builds, but of course your mileage may vary.

How to install:

Wipe Data/Factory reset.

Format System.

If you're coming from stock Oreo, flash the nougat bootloader or fingerprint won't work on this ROM

Flash the ROM.

Flash 8.1 Gapps.

(Optional) Flash root method of choice. (As of 0325, you can use magisk, superSU or other root methods)

Known Bugs:

5 GHz Wi-Fi hotspot broken

4K video recording broken

Always on display doesn't use the low power screen - it will drain battery quickly when its on

USB MTP (file transfer) is broken (it works in recovery so you can switch to that to copy file if needed) **

VoLTE broken

Encryption - Reports that enabling encryption leads to bootloops - Needs further testing

CDMA on Verizon must make call out after reboot in order to have incoming calls/txt working

Poor mic quality when using speakerphone

Possibly more

Working Features:

Oreo 8.1 with June security update

Boots

RIL (Calls, SMS, Data)

Wi-Fi

Bluetooth playback and mic (I made a call successfully and until proven otherwise, it seems the BT mic issues are isolated to H870 and does not affect US997)

NFC

GPS

Camera, including Gcam, and wide cam in apps that support it like the built-in LOS Snap cam and Open Camera (except 4k video recording)

Video Playback (L1/HD DRM playback working, unlike 14.1)

Audio (Audio levels have been tweaked but may still need further adjusting)

Fingerprint (currently only works on Nougat bootloader)

Flash

Quick charging (PD and QC and wireless chargers)

Off-mode charging (plugging the phone in when its off/dead properly boots into charging only mode)

SD cards including exfat

No CPU stuttering bug like 14.1 has

Downloads:

​

The ROM - lineage-15.1-20180618-NateVM-UNOFFICIAL-us997.zip changelog

https://www.androidfilehost.com/?fid=962339331459001292

md5: d97392e7f7b9f91cce760ee572483d5b

Older versions available here

**Modded TWRP recovery - recovery_melina-TWRP_v3.2.1_18-03-10_NateVM_LGUS997_CacheAsVendor_rel1.img

ecb5f0a062bd26e87eaa0e206ec71d6e

**As of 0325, this is unneeded and likely to cause different issues, use any other us997 compatible recovery.

http://opengapps.org - ARM64

CStark27’s GCam mod recommended (and supports wide angle)

**Fixed in 0618 release

Screenshots:

​

https://imgur.com/a/2T7pd

Credits:

Lineage OS team

Rashed97 and x86cpu, the official LOS maintainers

EvilHowl

Rc420Head

J0SH1X

CPL593h

Imaginovskiy

Zefie

And everyone else in Telegram helping test builds and report bugs

About Me:

I am very much a newb at ROM building. I've been using CM/LOS for years and one of the main reasons I bought the us997 was that it is "officially" supported by LOS. But I was disappointed to find that the official 14.1 builds for G6 had some major issues (like CPU performance) and after using it for a few months it felt like I took a big step backwards when I upgraded from my Nexus 5x. So I started searching around to see if anyone had been able to fix those issues and found Evilhowl's unofficial H870 14.1 builds had CPU performance fixed. Since nobody seemed to care about building a version for us997, in January I took it upon myself to attempt to learn how to compile the ROM myself.

While learning how to do my first build, Evilhowl and others in telegram started making some breakthroughs on getting 15.1 builds to run. Since I was attempting to build from source anyway, I decided to see if I could build LOS 15.1. After many attempts of trial and error, I got 15.1 to build and worked with the H870 guys to get some additional fixes merged. By cherry-picking specific fixes from h870 and other devices on the LOS gerrit, I got a ROM that I'm happier with than the 14.1 official release.

Since I've been using this ROM as my daily driver for a few weeks and multiple people in telegram had been asking about it, I figured I would post it here on xda to share once I got everything uploaded to github. I'll do my best to keep the list of features/bugs in this post up to date, and I'll see what I can do to try to fix some of the things, but since I'm still quite new at this, I can't promises I'll actually be able to fix much myself. If anyone has any clues or potential fixes from other devices that may help fix any of the known bugs, please let me know. I'm just hoping some things get fixed upstream by the LOS team or some of the H870 devs figure out a fix and I can copy stuff from them.

LineageOS 15.1 unofficial, ROM for the US997 LG G6

Source Code: https://github.com/natemckn/android_kernel_lge_msm8996/

https://github.com/natemckn/android_device_lge_msm8996-common/

https://github.com/natemckn/android_device_lge_g6-common/

https://github.com/natemckn/android_device_lge_us997/

ROM OS Version: 8.1 Oreo

ROM Kernel: Linux 3.18.102

Based On: LineageOS 15.1

Version Information

Latest Version: lineage-15.1-20180618

Created 2018-03-11

Last Updated 2018-06-18

FAQ

​

Q. First time setup wizard crashes:

A. Get latest official gapps from opengapps.org. Older unofficial gapps are known to crash setup wizard.

Q. All the H870 Oreo releases talk about flashing a kernel after the ROM, do I do that here?

A. Everything is in the built in kernel now.

Q. Wifi and/or BT don't work! In about system, mac address shows as all 0s

A. You wiped your /misc which overwrote your mac address. Other LG devices have been able to fix this with the follow procedure, but I have not tested it on G6: https://xdaforums.com/showpost.php?p=70474540&postcount=12

Q. How do I know if I'm using your old modded recovery? You're dumb for not making any interface changes to identify it!

A. You're right, in hindsight that was dumb to release a modded version with no distinguishing features. Go to the Mount menu in TWRP. Look for "Cache" or "Vendor". If your TWRP version shows "Vendor" then you have my old modded one, switch to a different TWRP in order for any new builds to flash properly. If your TWRP version shows "Cache" as a mountable partition then you have a normal good recovery

Q. Fingerprint doesn't work! The option is missing from the menus

A. This ROM assumes you have the Nougat baseband/firmware since we were working on this before Oreo became available. If you updated to stock Oreo prior to flashing this ROM, then you have the Oreo baseband/firmware, which is known to break fingerprint. The only fix right now is to flash back to Nougat baseband in order for this ROM to work properly. You can flash the 17A (Nougat) baseband from here:

https://files.persona.cc/zefie/files/cell/LGG6/US997/ROMs/bootloader-only/