yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
LG G6

- Your warranty is now void.
- You have been warned.
- Use at your own risk.

Introduction:

This is the Official Lineage OS 20 thread for the LG G6.

Downloads:

Please follow the install instructions in your device's Wiki page linked below exactly, and make sure your device's firmware matches the required firmware listed.

Official Builds:

h870

h872

us997

Unofficial - built once a month by me, includes GApps and Pixel goodies:

h870

h872

us997

If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

Known Bugs:

IMS (VoLTE/Wi-Fi Calling) doesn't work due to framework tie-ins used by the LG proprietary binaries.

Encryption is not supported and WILL NOT BE - Android 13 dropped support for FDE (Full Disk Encryption), and LG's custom KeyMaster implementation prevents FBE (File Based Encryption) from working - LineageOS Directors have issued an exemption to the charter requirements here.

Find any? Report them according to this guide.

Notes:

The only supported GApps package at the moment is MindTheGapps, linked on our Wiki page about gapps.

This uses a port of Linux kernel version 4.4.

Kernel Source: https://github.com/LineageOS/android_kernel_lge_msm8996
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Official builds for all variants will roll spread over the next 7 days.

Unofficial builds are posted for all variants now, with SELinux enforcing builds posting as of tonight.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Works great ! Thanks !

I have trouble activating Bluetooth though !

I'm running this build on a h870 with a fresh install
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xxseva44:
Could you provide a logcat so we can diagnose the issue?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Yep, here it is !

https://ufile.io/fu61b9gn

- I turn on bluetooth

- it keeps showing Activation...

- wait until the screensaver get the screen black

- turn on the screen => the bluetooth is off
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
Thank for your great work :)

I was pretty happy with 19.1 even with missing features and some quirks.

I have just installed 20 as clean install on h870 and everything works as expected (comparing to final 19.1):

- camera (photos, video recording not tested)

- wifi (at least 5GHz)

- bluetooth

- mobile data

- sensors

- charging

- NFC (not tested yet but at least it is enabled)

- etc

I didn't found anything not working compared to 19.1 yet.

Also it seems to be a smoother experience (less hangs than on 19.1

As I use it as a daily i will report my findings in few days (if I find something to report)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xxseva44:
If it's possible, can you retest with selinux permissive? You can flash permissiver in recovery to do this.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Yes, here it is : https://ufile.io/xo1bof37
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AShiningRay:
So now wifi 5GHz works on G6 all of a sudden? (Assuming AP does as well) Weird, cause there are 0 kernel changes on that front... maybe it was the big rom-side blob and firmware overhaul all LGE 8996 devices underwent on the way to LOS 20.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
By that statement I meant that connecting to 5GHz network works. In tests I have around 170Mbit/s down and 250 Mbit/s up. Connection is very good and stable.

Hotspot WiFi also works but on 2.4GHz (I don't see option to change to 5Ghz and test) - this is fine for me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
For those interested:

Google Wallet can be made to work on this ROM with Magisk + Safetynet fix - I have successfully made payment yesterday.

But please remember that this is not supported by DEVS (read first post).

If you have any questions send me DM.

(for me hiding root / unlocked bootloader from apps is a must have because of my banking app / wallet / other apps complaining)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] -Androider-:
First, thanks for bringing LineageOS 20 to the G6, awesome!

Performance and battery life are great, everything crucial (including BT) is working.

Few small things I've noticed during the first days (h870, fresh install):

- Double tap to wake doesn't work reliable, sometimes it does, sometimes not. Ambient display doesn't work at all

- The wide angle back camera can't be used

- If you limit the battery to only charge to something like 80%, the phone is freaking out when hitting that limit. It's rapidly switching between charging and not charging

- SafetyNet sadly doesn't pass (without root)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xxseva44:
Okay if it's possible, can you try what i mentioned in the post that's attached to this one? (H990 and h870 use the same fw fyi)

Post in thread '[OFFICIAL] LineageOS 20 for the LG V20' https://xdaforums.com/t/official-lineageos-20-for-the-lg-v20.4618097/post-88902095

BCM4345C0.zip

drive.google.com

Also i apologize for the late reply.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
No problem for the late reply !!! Thank you for replying !!!

Exact same problem with the BT firmware replaced by the one you shared.

---

What bootloader should I have ? I now use the Pie v30b, could it be the source of the problem ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xxseva44:
Hmm, could you provide some logs? Also, you were permissive right?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
You mean permissive while replacing the firmware file ? Nope, just moved and renamed the old firmware file and renamed and copy your firmware file (all this with amaze with root access)

Right now, with this firmware and selinux back to permissive BT still does the same dance : the icon move a few seconds and back to *off*

(I send a logcat I a few minutes)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Here it is (sorry, it seams I still cant attach files here)

Upload files for free - logcat.txt - ufile.io

Download logcat.txt for free from ufile.io instantly, no signup required and no popup ads

ufile.io
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cbouillot:
Hi all

Could someone confirm me fingerprint is not yet included in lineages OS 20?

Thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ROMSG:
Fingerprint should be working
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cbouillot:
Thanks for your feedback.

I re installed several Time: fingerprint Nevers appears in options and parameters
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
You need to be on your variants most recent Oreo firmware release.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ROMSG:
Can you send logs?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Carljaynp03:
Hello friends, I bought the LG G6 H870, I want to open the Bootloader, to install the ROM, but I can't find a solution, please someone who can help me with the unlocking, I'm willing to pay for it.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ROMSG:
Unfortunetly if you didn't get an unlock.bin from LG when the service was still up there is no way to unlock the bootloader. As of now only the H872 can have its bootloader unlocked
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rcabrer389:
Hi, have you found solution for double tap to wake ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] -Androider-:
Hi, no and we probably can't fix this ourself. The devs would have to make changes with an update.

I think it maybe has something to do with energy saving or sleep. It's always working while charging and often diretly after locking the phone. It never works when the phone has been lying around for a while.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rcabrer389:
too bad,even the newest official build not working well also
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Hi

I've took the time to redo a full wipe & install, since I've think of maybe made a mistake in restoring some Bluetooth parameters with NEObackup : and now the bluetooth works perfectly.

Sorry for troubling the thread, good to know about restoring parameters though !
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cbouillot:
Hello

After investigation I found the issue; finger print seems not working any more, even with a regulat ROM; this info is coming from the HW test included in LG rom

Thanks for your support
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Carljaynp03:
Sí Who could help me with the unlocking for the H872 version, with the unlocking of the Bootloader please
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ROMSG:
I thought you said you had an h870, h872 unlock methods will NOT work on h870
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rcabrer389:
872 pf working, check ur back cover or connector,
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rcabrer389:
Check bernardobas thread for 872
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Andrea224:
Hi, it's not new to report that for this device I think (or maybe it was on another but same issue, my memory lacks a bit on that lmao), anyway certain apps or games can't be installed, maybe an Android OBB folder issue thing I guess, for example Call Of Duty Mobile can be downloaded but not installed by Google Play Store as it gives back an error for installation.

Anyway, I tried installing it with Aurora Store with Shizuku installer method and it gives me this error log:

java.io.IOException: write failed: EPIPE (Broken pipe)

at libcore.io.IoBridge.write(IoBridge.java:651)

at android.os.FileBridge$FileBridgeOutputStream.write(FileBridge.java:186)

at androidx.activity.p.y(SourceFile:1)

at t3.k.h(SourceFile:170)

at t3.l.a(SourceFile:151)

at d5.e$a.M(SourceFile:51)

at q6.a.m(SourceFile:9)

at h7.h0.run(SourceFile:1)

at m7.l$a.run(SourceFile:4)

at n7.j.run(SourceFile:1)

at n7.a$b.run(SourceFile:66)

Suppressed: java.io.IOException: write failed: EPIPE (Broken pipe)

at libcore.io.IoBridge.write(IoBridge.java:651)

at android.os.FileBridge$FileBridgeOutputStream.writeCommandAndBlock(FileBridge.java:169)

at android.os.FileBridge$FileBridgeOutputStream.close(FileBridge.java:157)

at androidx.activity.p.u(SourceFile:1)

at t3.k.h(SourceFile:191)

... 7 more

Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)

at libcore.io.Linux.writeBytes(Native Method)

at libcore.io.Linux.write(Linux.java:296)

at libcore.io.ForwardingOs.write(ForwardingOs.java:943)

at libcore.io.BlockGuardOs.write(BlockGuardOs.java:448)

at libcore.io.ForwardingOs.write(ForwardingOs.java:943)

at libcore.io.IoBridge.write(IoBridge.java:646)

... 11 more

Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)

at libcore.io.Linux.writeBytes(Native Method)

at libcore.io.Linux.write(Linux.java:296)

at libcore.io.ForwardingOs.write(ForwardingOs.java:943)

at libcore.io.BlockGuardOs.write(BlockGuardOs.java:448)

at libcore.io.ForwardingOs.write(ForwardingOs.java:943)

at libcore.io.IoBridge.write(IoBridge.java:646)

... 10 more

Unfortunately Aurora Store won't give me the full detailed log, that's all it copies from the app log.

I tried installing CoD Mobile also with Uptodown Store App, but nothing working anyway.

I hope it helps and in case let me know if I need to take any other logs.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Andrea224:
I tried installing now with SAI and .apks file version of CoD Mobile, it works and everything seems fine
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ankerlevel:
Hi. Has anyone tried to play Stumble Guys? I installed it from Playstore but whenever I open the app it stays forever in the splash screen and never logs in.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HandyE:
Thanks again for the great ROM!

For me bluetooth is just working "one way". Still, as I wrote here earlier, bt-calling is NOT WORKING. A callee cannot here me, just a lot of noise is heard by the callee and my voice sounds like a robot to her/him. I can hear the callee without any problems. So calls via bt are not possible.

User @TheWolfSVK fixed the BT calling bug (fixed 25.01.2020) in HavocOS-v4.12 ROM and it was also fixed in LineageOS 18.1 (@bernardobas). But now, in official LineageOS 19 and 20 that bug is here again, resulting in a phone which cannot be used in car while driving.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ROMSG:
I'm looking into that right now, is there any chance you could try applying this commit using a root file editor and editing 'mixer_paths_tasha.xml'? Unfortunetly I and most of the Devs on the g6 side are unable to test regular voice calls as the 3g network has been shutdown in our countries.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoopyOratory:
i cant seem to flash lineage recovery in fastboot mode on my H872i can i flash it with twrp ?

this is the error i get when i try to flash in fasstboot mode

please help

fastboot flash recovery recovery.img

target reported max download size of 536870912 bytes

sending 'recovery' (23052 KB)...

OKAY [ 0.871s]

writing 'recovery'...

FAILED (remote: unknown command)

finished. total time: 0.890s
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rcabrer389:
hi sir, will there be a fix for the tap to wake, it doesnt work if phone off for a couple to minutes
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
just flash it with TWRP then reboot to recovery.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ROMSG:
the h872 doesnt have working fastboot commands
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoopyOratory:
I tried flashing with twrp but the the phone got stuck on the lg boot logo couldn't even boot into recovery or Os so i had to reflash the kdz stock file and start over
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoopyOratory:
Thanks for letting me know,

I spent days thinking there was something wrong with my device
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Then something is wrong and the ROM will not boot. If recovery doesn't, it won't.

Are you sure you started on the correct firmware like the wiki says?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoopyOratory:
yes bro i did exactly as the guid said 20g
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HandyE:
@ROMSG : Thanks for looking into that! I applied the commit and edited file "mixer_paths_tasha.xml" within the vendor audiofolder accordingly. After that I rebooted the phone. Sorry to say that this doesn't make any difference. Phonecalls via bluetooth headset or with the cars bt-audio still result in loud crackling noise at the other end of the wire.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Hey all, I am moving and therefore the unofficial update server/wiki will be down for a few days. Likely Wednesday, Friday at the worst.

Don’t panic when links in the OP don’t work, and your Updater app says something like “Can’t connect to server”. It is planned outage.

Thanks, see you on the other side!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Hey y'all - Unofficial build server/download portal is back up.

It may be hit and miss tomorrow as I rewire everything, but everything /should/ be functional for now.

Thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Andrea224:
@npjohnson Hi, thanks for your work, but how can we disable fast charging on LG G6?

It gets warm and I would like to preserve as much as possible my battery against speed charge and heat, how can I do that?

Even in EX Kernel Manager isn't possible to turn off fast charging.

I noticed that only with "data" USB C cable it will go slower, while with every "only charge" USB C cable it goes immediatly on fast charging (and even not so fast sometimes, like about 2 hours for 3300mAh is absurd, it only gets annoyingly warmer)

Also, what "Pixel goodies" are there in the unofficial builds? I'm currently on official builds, but if I want to use unofficial builds, can I dirty flash it over the other one or do I necessarily need to do a clean flash?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] WojtekCC:
First impressions are nice.

It just works, but one thing is little annoying - you have to swipe all the way up(not just quick swipe up) to show pattern unlock
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] pelopsxalikias:
Amazing work once again, Great to see the little thing running a13 let alone as well as it does, keep it up!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AShiningRay:
Should be fixed on the next build
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xc112:
its my account i forgot my login XD
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] macranjoh:
Hello, will this work with an H870DSU too? Thank you!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
if you can unlock it probably.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] knur004:
Hello,

I have an LG G6 H870, i unlocked bootloader years ago, flashed twrp recovery, and was using custom oreo rom for a few years. I would like to try new linageos 20 - can I flash it via twrp recovery normally like i used to with oreo rom (clearing data, cache dalvik beforehand)?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, you'll need to start on stock nougat firmware and work from there following the wiki guide and using lineage recovery.

We use an entirely different new kernel
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] knur004:
Nougat? So I need to downgrade? Can't I start with stock Pie V30B?

Also what could potentially happen if i would update twrp to 3.7 (Android 12 support added), then flashed Pie bootloader, then flashed LOS 20 with it, then Swan Kernel and then Gapps?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Wait, sorry, this is G6, so you need to be on Oreo.

But yeah pie likely fingerprint won't work.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] PizzaAmerican23:
Do I need to upgrade my recovery or anything if Im going from on OLD version of havoc to this? Phones been in a drawer for over 2 years probably.

Im pretty sure its havoc. Build is qq3a.200605.001, which is android 10.

Bootloader is unlocked.

Anything special I need to do? Lineage website has boot.img and recovery.img linked there. Do I need those?

Been a while since I flashed lineage. Been on a pixel/graphene for years now.

EDIT: Booted into recovery. Its Orangefox version R10. twrp 3.3.1
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Wiki.lineageos.org

It has a full walkthrough.

Only lineage recovery will work.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] MasnarT81:
Compatible with H873?

Bought one few minutes ago.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Nope, not bootloader unlockable? You'd need to variant convert it if possible to one we support.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] -Androider-:
After installing the latest update (18.11.) the phone can't connect to our wifi network anymore. I can activate wifi, but when I tap on connect it says that it can't establish a connection. Already tried reinstalling the update and resetting network as well as removing wifi, but same result.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
Same here (h870), no 5GHz or 2.4GHz connections. As I cant stay with phone without wifi for now I've reverted back to 11.11. If any logs will be needed please let me know - I will swich to 18.11 to grab ones
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AShiningRay:
Interesting... i wonder if it's the recent merges from kernel_qcom_msm8998 into our shared source:

Commits · LineageOS/android_kernel_lge_msm8996

Contribute to LineageOS/android_kernel_lge_msm8996 development by creating an account on GitHub.

github.com

The last one was done before 11/18 but after 11/11, and there are definitely some wlan changes in there. Not running that kernel on my V20 right now, but i'll give it a shot to see if it causes issues on all lge_8996 devices, or if it's specific to G6.

Meanwhile, if anyone with a G6 is available to help me test it this weekend, hit me up, gonna see what i can do tomorrow.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AShiningRay:
Nevermind, fixed it. Was a single commit on that merge, nothing too big that would cause issues if reverted so next builds should be fine.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
and we pulled the problematic build. Sorry about that. Downsides of keeping kernel up to date lol.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
For me it's not a downside - issues are expected when ROM is activlely developed. Every new release can potentially introduce new errors. Still this is a lot better situation than old ROM with no support
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] -Androider-:
Absolutely, I totally agree. Bugs can happen and are expected. No big deal. I'm happy that we still have support for the G6 (y)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Kaleshwar:
Hi everyone! I wanted to share my feedback and experience with LineageOS and installing it.

I have the H872 variant and I used the SU98 exploit to root and install TWRP. When I did that I rebooted to the recovery and flashed LineageOS Recovery image then rebooted and sideloaded the ROM and MindTheGapps packages. What a difference this ROM makes! Everything works fine and I am very happy that the G6 is still getting love 💕. Using as my secondary phone because I like the DAC and my FLAC files.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
Hi, i've done some testing yesterday with bluetooth calling and it seams that this is still not resolved (H870). I can live with this so I'm only give you some feedback.

It looks like issue is with getting sound from bluetooth microphone, not calls itself.

Here is how I was testing:

- connect any bluetooth headphones to phone

- connect with any video calls software (google meet / teams / nextcloud talk etc) to any conversation even with yourself

- connect to the same conversation with PC/laptop (make sure that you're using headphones with microphone too - not integrated speakers)

- mute microphone on PC

- say something and listen

It seams that there is a lot of oversteer / distortion / strange noise. Voice, if there is some, is muted / low quality.

In my opinion there may be driver / mixing issue or HSP/HFP issue but this oversteer / cracking sound is all time not only when speaking so looks more like mixing / boost issue (i may be very wrong here)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlaricVT:
Oreo 20J bootloader won't allow you to flash the rom. Comparing TZ versions fails.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
I can fix that! Next build will let you flash.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xc112:
try to turn off aufiofx
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Does that actually fix it?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] radekula:
Tested today on 11/11 and disabling AudioFX didn't fix this issue. I need to test this on latest build (I will flash that in few minutes).

I remember same or similar issue in 18.1 (it was fixed) and discussion on this topic in corresponding thread - I need to find that to narrow timeframe of commit (or commits). I will at least try to find this