yashsingh1/xdaforums huggingface dataset:
[General Topics] JimmyMcGee:
Ok then, I will shut it down.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
LG G5

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

Introduction:

This is the Official Lineage OS 18.1 thread for the LG G5.

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.

h830

h850

rs988

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.

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.

Kernel Source: https://github.com/LineageOS/android_kernel_lge_msm8996
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Well done!

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
Official now, I'm still using this device thanks to npjohnson, x86cpu and aleasto Well done :love:​
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
I think it has been official for a while now...this is just the first official, official thread.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
I have a question to someone smarter than me. I've already looked this up on XDA forums and even submited a bug report (via Lineage's official bug report page alongside a logcat) but it seems this particular problem is still present in Lineage 18.1 (and has been present throughout all builds I've tried - beginning with Lineage 15.1). In fact, it's a two-sided problem I'm really surprised to see no one else is reporting for the H850 (International).

The issue concerns microphone gain level and speaker sound (but just the speaker - headphones work fine).

In case of the microphone, its gain level is particualry nonexistant. If I record using the camera app, I can't hear almost any sound in recorded videos, except for massive distortion and crackling sounds (unless I boost the volume level to max - in which case I can hear some of the recoded sounds, but the distortion/crackling also gets louder to the point of being completely unacceptable). It's the same when I use the built-in sound recording app and listen to what I recorded.

The second thing - related in a way - is the speaker audio quality. The speaker produces tons of distortion and crackling sounds - whether its watching videos, listening to music etc. Up to the point I get worried that I'll damage the speaker by continuing using it. Again - just the speakers, not the headphones.

What I've tried to do to resolve the problem(s) so far:

- Downloaded various audio / equalizer apps nad tried to deal with the distortion/crackiling sounds - none of them helped.

- Used an app to boost micrphone gain level - gain level increased, but so did the distortion/crackling.

- Tried reverting back to stock OS (problem dosen't occur on stock OS) and then installing first Lineage 15.1, then 16 and then 17.1 - but the issue remains on all builds.

- I replaced the chin/bottom panel (the one containing the microphone and speaker) thinking it might be a hardware issue. It's not - it didn't change anything.

I assume it has something to do with the audio driver Lineage is using for LG G5 H850? I found a post here on the forum, where someone mentioned that Lineage is using a driver/audio frequency which is dedicated for newer phones, and not for older ones, like the LG G5.

Is there a way to perhaps extract the audio/microphone/speaker drivers from stock androind 8.0 and use it with Lineage 18.1? Perhaps that would resolve the issue, but I'm not sure if that's at all possible. Has anyone else using H850 encountered this issue and found a soultuion? I'd love to continue using Lineage but it's really diffcoult without resolving the matter. Sorry about the lenght of the post and many thanks to anyone interested in looking into this.

P.S. To be a bit more specific: a subtle audio distrotion / crackling sound is present on stock Android 8 Oreo, but it's barely hearable unless I put my ear next to the speaker and actually look for it. It's like a subtle white noise / hissing in the background. When I Install Lineage, this "noise" gets strenghtened and boosted into forground, as if Lineage magnifies it and turns into crackling.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I just checked my phone. I'm using 18.1 self built on 30 March, with no changes to audio. The phone is H850. I've gone from lineage 14 -> 15 -> 16 -> 17 -> 18. I've never used stock on it.

1. Playing music or audio books over the speakers sounds fine (given the quality of the speakers). No crackling or distortion.

2. Recording with the Recorder produces an audio file that is on the low side with regard to volume, but no particular distortion.

3. Ditto for recording with Open Camera.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
Thank you for your reply. I was about to ask which version of stock Android you migrated from, but then I noticed you never used stock. Maybe I could recerate the same route (starting with 14 and stopping at 18) to see if the problem persists. I'm not entirely sure how should I go from zero to Lineage 14 though. Does this indicate formatting all data (in TWRP recorvey/wpie) - as this would presubmly wipe any traces of previous audio drivers - or should I check other options in the 'advanced wipe' section of TWRP and avoid formatting data, as that would wipe everything whatsoever and leave no ground at all for Lineage to be installed? Just thinking where should I start to make a clean install as if no stock was involved.

As far as the microphone and video recording is concrened, I've tried using a different camera app - including Open Camera - but this didn't help with the crackling audio nor increase the microphone gain.

Many thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I don't see the advantage to cycling through all these versions. Have you just tried a clean install? This would require wiping data, caches, and, perhaps, system. Then installing lineage via sideload or from external storage, adding GAPPS if you use them..

Indeed, just following the instructions for installing lineage given on the wiki is going to give you as clean a system as you are likely to get.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
The first official nightly build released just today
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
I see. I've made a full cycle like that once (stock Android 8 -> 15.1 -> 16 -> 17.1) only beacuse I stumbled upon a post which said this might resolve my issue. It included a dirty flash from 15.1 to 16. Back then - but also this morning, when I installed 18.1 for the first time - I began with wiping data, caches and system. I guess that counts for a clean install then.

When I first heard about Lineage (that was in January I think) I initially went from stock Android 8 -> 17.1 and I've followed all the insturctions found on Lineage wiki (I've even used Lineage recovery instead of TWRP).

By the way, when you say "I've never used stock on it", do you mean the phone came with Lineage 14? Or did you - initially - have some other stock android before moving to Lineage, just never used it?

Other than that, I guess I'm back at square one as I don't have other ideas at present. But still, thanks for the insightful reply!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
Just wanted to report small progress here.

The good: I've used TWRP recovery -> Wpie -> Format data. Then I've flashed official Lineage 14 and checked the microphone & speaker again. Resoult: everything works falwlessly! Microphone gain level is top notch and speaker works loud and clear with no crackling, hissing sounds or whatever. It's the first time it worked for me on a Lineage OS, that's whay I consider it "small progress".

The bad:

- If I execute the above steps and flash the new/official Lineage 18.1 (instead of Lineage 14), the problem is still there.

- If I try to make a manual upgrade (via adb sideload) from Lineage 14 to 18.1, the problem is still there.

- If I dirty flash Lineage 18.1 over Lineage 14... the problem is still there.

That's that for now. Hopefully a proper solution will sprout sooner or later!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Sorry I thought you meant the LG going official in general, not specifically 18.1.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] davestuarts:
OK, I think I messed up bad. I've been applying the 17.1 nighties without issues.

Lineage popped up saying an update was availble. Without me realising it was 18.1, I downloaded and installed like it was 17.1 and now it just loops, is it ****ed up?

Have I lost everything !! noooo. I knew I should of done a backup...Feck!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
I installed lineage 18.1 and mindthegapps for android 11 over lineage 17.1 and it works fine .

Try installing gapps for android 11 from sd card, it may fix the loop.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] davestuarts:
Oh. I went the other way and I installed the last 17.1 nightly and it's still looping.

When you installed 18.1 and mindthegapps, were all files and apps as normal with settings?

I need a few apps and sms to be accessible at the least if not all?. I'm losing it I think.

My recovery is twrp 3.5.0_9-0.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
I lost nothing, all apps and data the same, just like normal 17.1 update.

I use orangefox recovery.

You may try installing magisk canary zip, it also fix the bootloop sometimes.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] davestuarts:
Oh. I went the other way and I installed the last 17.1 nightly and it's still looping.

When you installed 18.1 and mindthegapps, were all files and apps as normal with settings?

I need a few apps and sms to be accessible at the least if not all?. I'm losing it I think.

Ok thx, really appreciate this, I'm still panicking. I'll install 18.1 again and mindthegapps. I cannot find the magisk canary as a zip, apparantly its all changed to an apk install.

update: Mate you're awesome!! So glad it worked! I'm just trying to figure out new magisk install method, but I'm back in. Phew! Appreciate the support.

Back to doing backups! Been doing this for years, and this time..damn...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
If you're phone is misbehaving and you never did Stock updates, I highly recommend doing a full wipe/format and flashing the latest Autoprime's COMPLETE flashable stock packages for your G5 via TWRP (whichever specific model you have)

I've experienced odd issues when using custom ROMs on the G5 that were fixed once doing so. Those full updates made an update to something important to whichever partition (boot, modem, who knows) that later Lineage builds are based off of.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] davestuarts:
Ok, so far so good. This accidental update from 17.1 to 18.1 had me sweating for a few hours.

My fault for not noticing the update number and noit creating a backup.

I've been on custom roms a while with this phone and each major update, I'll always start with a fresh one, so my 17.1 was fresh but as this time thinks got messed up, I've essentially had to dirty flash to 18.1, with reassring advice from here.

This rom has randonly crashed and restarted 3 times so far, and I think it was down to twitter app, so I've updated my most used apps to see if that helps.

If things continue to crash/restart, I'l lsave important apps/data (migrateGPE app worked well before) and then do a fresh install of 18.1. After having a panick mode before, I've already created a twrp backup.

The ROM generally works fine, quite speedy and all connectivity works as it should.

Appreciate the continued support for this phone
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
I'm back on LOS from Havoc not wiping data partition, but wiping everything else. Settings are crushing on me when I try to enter About System. Is it just me or not?

Now phone restarted randomly. That never happened before on LOS.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] toot-217:
FInally I found the time to install 18.1 on my (spare) LG G5.

I sticked to this "guide" and started with 15.1 and ended with 18.1.

Everything works fine, except of the fingerprint reader, even Android Auto works! :)

I tried this time MindTheGapps and encountered no problems during the installation.

@rfrazier

You are talking about the counterpart of this area on the mainboard, right? (took the screenshot from this video)

I'm still a little bit skeptical, the fingerprint reader stopped working on my two G5s almost at the same time, but it've to be a hardware decet, during flashing 15.1 - 18.1 it never worked.

(By a funny coincidence I've got two H850 and I'm switching them regulary after testing a new / updated rom on the other device)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Yes, that's the fingerprint sensor pad, with corresponding spring connectors on the mainboard.

I too had a spare LG G5. It would have been useful to be able to use it last week. Unfortunately, about 4 months ago my wife's phone failed, and I gave her the spare LG G5 to use until she got another phone. After a month, she said that she quite liked the phone and would keep it. :)

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
Hi Bob. I have the LG G5 H830 and I've been running Official 14.1 and like you never used stock.

I'm still on LOS 14.1 because its stable & I really like Privacy Guard. I wanted to ask you, in your journey from 14.1 to 18.1 on this phone can you tell me if each upgrade worth it in terms of stability, battery life, features, and performance? Any real advantages for each upgrade other than a new GUI each time?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I still run 14.1 on a couple of tablets: Samsung Tab S (chagalwifi) and Note 8 (n5110). The UI is more coherent and better organized on 18.1. Notifications are much richer and better controllable. Everything I want to use works pretty well (BT media and calling, wifi, encryption GPS, ....)

I can't tell you whether each upgrade is worth it, as each has some advantages and disadvantages. Some of these have to do with Lineage and many have to do with the underlying android system. So, privacy guard was good, but the permission systems for 18.1 is almost as rich. The change to frameworks storage was a big one, and early on (16/17) was a pain, but things are better in 18.1. Lineage now has a built in local system backup, which is a very good thing. It no longer has native root, which isn't so good, but a result of the underlying android system (on my understanding). There also seems to be more "sandboxing", which is good, but has its downsides.

It is too hard to do a comparative measurement of battery life and performance. Battery life for the G5 has never been that good. But, I don't worry about that, since it is so easy to replace it. For example, I have no hesitation to charge it to full whenever I can. This reduces battery life somewhat, but I replace it every year anyway.

18.1 has been stable. Although there have been some hiccups early on. I'm not a developer, but I think that the major change from 16 to 17 made a big difference as things became much more modular, with overlays and the like. Once that hurdle was overcome, I think that there was time to get things working well, while thinking that the work done on 17 would be transferable to 18 in a way that work done on 16 wasn't so transferable to 17. My guess is that further updates (18->19) will be less problematic than earlier version changes. But a developer like @npjohnson might be able to say more about this, or set me right, if I'm mistaken.

One real advantage for me with 18.1 is that using accessibility controls I can have the system adjusted so that one sound channel is louder than the other. The hearing in my right ear isn't as good as the hearing in my left ear. It used to be that I would have to try to adjust things app by app, which wasn't always possible. Now it is fire and forget.

The email app is dropped in 18, which is probably good. (I use fairemail, used to use K9-mail, but it doesn't do oauth well.) The old calendar app is dropped in favour of Etar, which is good.

Generally, I think that 18.1 is much slicker and better organized than 14.1, which, as I said, I still use on tablets.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Postscript, of a sort.

One of the main reasons that I've been upgrading, other than having the "new hotness", is that with each upgrade, I can be pretty sure of about two years of quick security updates. 14.1 is still getting security updates, but not so quick (1 or 2 months lag), and with less surety. I think that this matters less on my tablets. (I do a DIY build and sign on 18.1 and 14.1, which are the only versions I currently use.)

Of course, it would be even better if there were security updates for the phones firmware.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
Thanks for the detailed reply, Bob! I'm concerned that you wrote LOS 18.1 no longer has native root. How does that affect removing apps, setting up root firewalls like AFWall+, etc?

BTW when I first set up my LG G5 this past January I first installed LOS 17.1, but it kept throwing Android errors on my H830 (I don't remember the errors) and two of my favorite (but older) apps crashed. I then wiped & installed 14.1 instead and it ran better.

I get good battery life on my LG G5, 2 or 3 days. Almost every app that uses background data is denied background data in Privacy Guard (can 18.1 still do this?) and every app that does not NEED internet access is blocked in AFWall+. I also have SmartPack-Kernel manager installed and set the Little CPU governor to Conservative which noticeably improves battery life.

I'm going to start looking at 18.1 and consider an upgrade. Can I upgrade in place 14.1 to 18.1 or do I need to do a wipe, install, then reinstall my apps?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
If you want to use apps requiring root, you'll have to go the Magisk route. I'm no longer using root. If I need to do a rootish thing, I do it via adb, or when I build the ROM. Sorry, but I'm not sure about blocking background data. Nor do I know the best path from 14.1 to 18.1, but I've certainly zapped everything and done a clean install.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I was curious, so I looked for settings controlling an apps use of data. Satstat in this case. Here are the options one can control.

- Allow network access

- WIFI data (allows use of wifi)

- Mobile data (allows use of mobile data)

- Background data (appears to apply to mobile data only)

- VPN data

- Unrestricted data useage (when Data Saver is on)

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
There's no sense in installing LOS if you're not going to have root.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ponce70:
I installed LOS on my LG 5 mainly because it's a maintained OS (thanks again to all the maintainers!) and never felt the need of using root.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
You mean you don't have a firewall? You don't block ads?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ponce70:
I don't need a firewall and I block ads with nebulo, setting a custom dns-over-https with filtering.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
In many devices NFC wakelock eats battery power like a hungry goldfish. My G5's battery life was horrible until I stopped the NFC service (for some ROMs disabling NFC service makes the device unbootable).

Does this ROM allow you to turn off NFC? I ask because in some LOS ROMs, including my LOS 14.1 for the G5, the option in Settings to turn off NFC is grayed out.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] etmatrix:
yes you can turn off NFC and boot works.

If NFC is grayed out is because there is an issue with the download of firmware.

Try to follow this guide
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I used to keep NFC off without problems, but leave it on more often now. Mostly because of the rise of 2FA and the use of a YubiKey.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
After research and reading a lot of guesswork online, I saw a thread with a developer that worked through a grayed-out NFC switch issue. Because the problem is rarely fixed with a hard reset, he concluded it's either a kernel or permissions problem.

The only consistently successful solution was installing a different kernel, but the real cause is probably incorrect permissions set somewhere that does not allow the user to change the NFC setting.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Those are problems with ROMs other than LineageOS 18.1, I take it.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
These are problems with some ROMs including LineagOS.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
But, not a problem I've encountered with the LG H850 using LineageOS 18.1.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
Thanks for your feedback, but as you stated before your device is not rooted. Some using LOS 18.1 have seen this NFC grayed-out switch problem problem, and it's always on rooted devices, so your feedback is more evidence this may be a permissions problem.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
So I solved my NFC wakelock problem and I wanted to share my solution. I installed an Xposed module DeepSleep that lets you disable wakelocks, alarms, servers and syncs for individual apps. I disabled wakelocks and alarms for NFC, rebooted my phone and WOW! My phone stays in deep sleep and my battery life is amazing! After 48 hours of normal use (no games) my battery was at 30%. I am thrilled with this!

I can still use NFC, I just can only use it when the screen is on. I like this as a security precaution, the developer might want to think about including this as an option in LOS 18.1.

Now, even though according to BBS Google Play used minimal sleep time, I disabled wakelocks, alarms, and sync for Google Play Store/Services anyway and my battery life is even better! It appears to me that Google can maybe mask the battery usage of some core apps?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] FredMontteiro:
Hi guys, anyone knows with VoLTE/Wi-Fi Calling works in Lineageos 17.1 for LG G5?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
nope, never worked in custom ROMs and never will - LG has a proprietary IMS (VoLTE/VoWIFI implementation) with framework ties we can't make use of.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
I̵ ̵h̵a̵v̵e̵ ̵V̵o̵L̵T̵E̵ ̵w̵o̵r̵k̵i̵n̵g̵ ̵f̵i̵n̵e̵ ̵o̵n̵ ̵L̵i̵n̵e̵a̵g̵e̵O̵S̵ ̵1̵4̵.̵1̵ ̵f̵o̵r̵ ̵L̵G̵ ̵G̵5̵.̵
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yeah, sorry, no you don't.

We've spent countless weeks looking at LG IMS. It's too complex to re-implement cleanly.

Especially on 14.1, where the IMS stack and dependencies aren't even all there to begin with.

Anything you're seeing is a false report, but not sure how that'd happen.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] HyperXG:
Hi brother...Can u manage to get Widevine L1 working in Project lighthouse for LG G5??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
Ah, sorry, I had this confused with another phone. Yeah, my LOS 14.1 G5 doesn't even have a VoLTE menu item; regardless, the call sound quality is amazing!