yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
It appears they have sorted out the rogue process hogging the CPU which may explain the previous poor performance.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] J0SH1X:
remember he also owns LG G6 and this has same chipset but probably doesnt matter since it was on msm8996-common and thats used for both devices idk how g5 is but g6 works fine just no charging with wall charger (it works on pc) sound is a bit random one time it works another time it doesnt and camera preview is green but else its pretty useable
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] elschmalo:
I also have been asking myself the questions what's going on with the encryption for a long time.

But I do not fully understand your answer. Does that mean that encryption does generally not work with LineageOS? On any device?

Or is this LG G5 specific? Does encryption work for any other custom rom with the LG G5?

I would really appreciate some clarification. Thank you :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nmyron:
Where does one submit bug reports these days? I've not used anything but stock since CM 12 or so and I'm not sure where one would submit a bug.

My G5 has 32GB internal storage, and 128GB on an external SD card. But the values under storage are all wrong. My 'device storage' value is 102GB used of 119GB. Same for the 'internal shared storage' values. My SD card is reporting correctly at 41.74GB used of 119GB.

If I check the used/free in Solid Explorer it all reports correctly, Internal Storage 17.71GB free/5.30GB used of 23.01GB, SD card 77.57GB free/41.74 GB used of 119.31GB.

It looks like Settings>Storage is reporting the ExtSD card's capacity as the Internal Storage capacity base value, but is actually calculating available storage correctly. It says I have ~18GB free, which I do I'm fact, but the used/free values reported are skewed because it's subtracting that 18GB from an erroneous 119GB total capacity that actually belongs to the ExtSD.

Tried attaching photos, apparently I still don't have the clout to do so around here or it doesn't work from the Tapatalk app. So I've linked to an Imgur pic below.

LineageOS 14.1 LG G5 H830 Settings>Storage https://imgur.com/a/IRtp1
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
Encryption of the phone on (some ?) other LOS 14.1 devices works fine.

An Sony Z1C with an (unofficial though) 14.1 ROM encrypts fine.

Somehow the culprit looks to be in the implementation of the recovery API (commands and results are communicated via /cache/recovery/*, see https://android.googlesource.com/platform/bootable/recovery/+/android-cts-7.1_r11/recovery.cpp). Fixing this may also fix the updates of LOS (which now needs manual install from TWRP).

First we need to find out whether the error is caused by the caller (system) or by the callee (recovery).

The fault is in the caller since recovery is not even entered when the encryption process is started from the Settings app.

Anyhow, for a device that's officially supported by LOS, this seems a serious bug that warrants high priority in fixing it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] elschmalo:
Thank you, poruid!

Reading your answer I come to two conlusions:

1. Since the problem is the implementation of the recovery API, and this implemenation is in AOSP, there is no other custom rom which has a working encryption of the LG G5. Correct?

2. All LOS builds for all supported devices use the same recovery API calls. Right? And on some devices encryption works, on others like the LG G5 not. Therefore the problem must be in the device-specific recovery rom, meaning TWRP. No?

On the other hand I read in your answer that the fault is the caller since recovery is not even entered when device encryption is triggered. So how come on one device the caller is right and on others it's wrong.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
ad 1. Incorrect, because what I wrote is a) just a speculation on the possible causes and b) suggests that the bug would most likely to be found in the caller, in way the relevant recovery API is called by the main system, in the way it has set the needed context for the execution by recovery of the encrypt command.

Another (custom) ROM may have implemented all this correctly, but I do not know which one that would be. Since many custom ROMs build on LOS, most likely those also suffer from this bug.

ad 2. Your assumption that all LOS builds run the very same code when setting up the call into recovery is incorrect. The code may very well be quite device specific, since parameters and commands are passed by way of persistent data placed at some block device etc.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
ENCRYPT PHONE, log

Follows an excerpt of the logcat after the encrypt phone command is started from the Settings app.

The two error messages by Cryptfs might be something of interest.

***** PRESSED confirm encrypt phone
11-07 10:48:00.359 5761 5761 D SubSettings: Launching fragment com.android.settings.CryptKeeperConfirm
11-07 10:48:00.383 5761 7082 W TileUtils: Found com.android.systemui.tuner.TunerActivity for intent Intent { act=com.android.settings.action.EXTRA_SETTINGS } missing metadata
11-07 10:48:00.395 5761 7082 W TileUtils: Found com.android.systemui.tuner.TunerActivity for intent Intent { act=com.android.settings.action.EXTRA_SETTINGS } missing metadata
11-07 10:48:00.401 5761 7082 D Index : Indexing locale 'nl_NL' took 4 millis
11-07 10:48:00.446 5761 7082 D Index : Indexing locale 'nl_NL' took 19 millis
11-07 10:48:00.469 1410 1472 I ActivityManager: Displayed com.android.settings/.SubSettings: +138ms
11-07 10:48:01.896 1410 4877 D CryptdConnector: SND -> {6 cryptfs setfield PatternVisible 0}
***** SKIPPED some possibly personal/sensitive log messages, most of CryptdConnector
11-07 10:48:02.703 437 7086 E Cryptfs : Unexpected value for crypto key location
11-07 10:48:02.703 437 7086 E Cryptfs : Cannot open block device
11-07 10:48:02.756 437 7086 E ProcessKiller: Process /system/bin/cnd (537) has open file /data/connectivity/bqe_hist.db
11-07 10:48:02.756 437 7086 W ProcessKiller: Sending Killed to process 537
***** TEARDOWN continues and ends with SOFT REBOOT
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Nick cutter:
Updater

does the updater of lineageos work now?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Homuncoloss:
Update my phone with the updater without any problems.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] squat251:
h830 4g works great! but I can't make or take phone calls/texts. If it roams off t-mobile, it works fine. Any idea what is going on?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Homuncoloss:
Are there any news about the development with new LOS 15 for our G5? Couldn't find something.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EtenNewbie:
Hi,

You can see the changelog here:

https://www.cmxlog.com/15/

There are no device specific logs like we see with the current version but you can see changes being implemented for our G5.

Just search for comits for

android_device_lge_g5-common

android_device_lge_msm8996-common

Ian

--
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Randomuser666:
And thereafter you still had root and twrp access?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Rumzie:
I saw that the G5's weekly didnt build last night (but the H850 did). Any reason for this? Would gladly help test any changes.

I also thought I would update a previous list with current issues and workarounds:

Bluetooth audio in calls does not work.

VERY slow charging

Workaround: Quick charging works in Recovery (Thanks [MENTION=4579387]pedro1977[/MENTION])

LiveDisplay not working

Workaround: The f.lux app works fine. Automatically tuned display temperatures throughout the day/night.

NFC still not working

Note: Unless you disable NFC ( I used [MENTION=569729]drizzt[/MENTION] 's Magisk module, thanks!) you will get constant wake locks and horrible standby battery drain.

Vertical lines on the camera (specifically when focusing in low light)

Note: Using HDR from the Pixel camera port immensely helped image quality. Try it out! Pixel Camera Port Thread here!

Once phone gets thermal throttled (from being hot in general), seems like the throttling/lag sticks.

Note: Reboot usually fixes this.

Weird "warm-up" period before you can play higher quality audio files.

Workaround: Playing MP3s for some time usually fixes the issue, and will allow playback of higher quality files like M4A and FLAC files.

Magisk Module (open the original post to see download):
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nmyron:
I, too, was watching the Build Status page like a hawk last night, and noticed it's been hung at nearly completed since mid-evening last night.

I've noticed in the 10/31 Nightly you can't even turn NFC on, all of it's settings are greyed out. Is this still necessary? Would seem it's wholly disabled in at the OS level now.

If you install OpenGApps using the "stock" config, it will pre-install the Pixel Camera for you. If you don't want a lot of the other fluff, you can use a custom .gapps-config file to tune the installation. Personally I downloaded the "Super" package, and whittle it down to what I want using an "Exclude" config.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Twilight is another alternative to live display.

The lagging was caused by memory management issues and appears to have been fixed, if you're still having problems try a ram manager app to correct it. Overheating may be a problem in hotter/ humid climates.

There was also a rogue process which appears to have been fixed. Battery life should also improve.

Fast charging appears to have been disabled, but im not sure why.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nmyron:
Besides the storage size mismatch issue I brought up, I've also found that Wireless Display doesn't appear to be working correctly on the 10-31 nightly. I can't cast to either of my Roku TV's, but from what I've read of LineageOS this should be possible. Any ideas?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
After the installation of the 11-7 nightly my phone rebooted into TWRP all the time. I had to use the hardware keys to start recovery, after that system rebooted normally. No idea why. Issue with burnt-in icons seem to be better. No visible changes on the issues of LiveDisplay. Still charging slowly.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
Have to disagree myself. Problem still exists.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nmyron:
I can't really comment to the positive or the negative. The build for the H830 has been frozen since the evening of 11/7. :-/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nmyron:
Looks like the build for the H830 is no longer hung up on the build page, but neither is it available on the Nightlies page. Glad to help test if needed.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Its unlikely to be built until next Tuesday.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] thebluesboy:
If i install los on H830 will i have to use unlock device for using sim?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
If you've factory unlocked it already it won't need unlocking. If its a buyspry phone then you will lose your OS unlock permanently. If its locked and you plan to unlock it, the device unlock app will not work in LOS, you have to use it in stock.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I've set up a local OTA server for my self-built h850 ROMS. When I use it, the phone connects okay, downloads okay, and installs. However, I get a TWRP loop, i.e., it doesn't boot into system, just goes back to TWRP. I can fix it so that it boots the system. However, I would appreciate suggestions for avoiding it. In particular, it would be useful to know whether it is operator error particular to my setup, or whether the h850 exhibits this behaviour when using the Lineage OTA service.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
I believe the latter to be the case. I've been updating manually for ages...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Cheers.

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
It seems to be a problem with our LineageOS for the h850 and to reboot to system some bytes need to be cleared in the misc partition (the following command is undoubtedly known to you):

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc

Likely the boot into recovery to perform the install is not setup correctly; that the TWRP would not have implemented the recovery API seems unlikely. I suspect this error has some relation with the in-ability de encrypt the phone.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Many thanks. That sound reasonable.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
update failure

I've created issue https://jira.lineageos.org/browse/BUGBASH-1237

---------- Post added at 11:27 PM ---------- Previous post was at 11:22 PM ----------

Encryption of the phone fails.

An issue has been created: https://jira.lineageos.org/browse/BUGBASH-1226

Please vote for these issues.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] :
Hello, any chance we'll see support for the RS988 variant?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
No
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Rumzie:
Cleaned installed the 11/21 build. Seems like the G5 lineage gets smoother with every weekly.

I've been running into this weird bug ever since the first Lineage install. Sometimes when I get into the app switcher view, the back button will randomly activate (especially in the middle of swiping away apps). This also happens throughout very specific UI touches. Has anyone else ever noticed an occasional random back button trigger?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] LittlePlumb:
Can't replicate the app switch error.

Went clean too (h850).

Should mention i flashed light patch 1.6 too.

For me battery life has improved. (Subjective Impression)

Occasionally, when fiddling with several apps at a time it would seem the system hangs.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Maybe its my WiFi setup but unsure as sometimes WiFi data drops out even though there is a strong signal.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sublim3style3:
First day phone reset

I like LOS, along with CM obv.. 7.1 is the ish. But a day into using LOS with mini gapps I had a hard reset. It happened when I tapped on the messaging (text) going from Facebook messenger. I'm thinking it had to do with the screen overlay but I'm no dev. Hope I can help.

P.s. any news on Oreo or other stable LOS (14.1) based ROMs? Havent tried crDroid, RR is aggravating so I came here. Maybe I'll just go G6.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 4ndr0x:
Any bugs in the current build? Is NFC fixed?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] PrinceLc:
Nope NFC not fixed Bluetooth and Livedisplay isn't fixed too
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sublim3style3:
Any fix for camera saving videos? Footjej legit?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
Regarding LiveDisplay no change recognized. But battery seems to be charging a little faster. Still burnt-in icons on display.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tavocabe:
I don't think the image retention has something to do with lineageOS as I get it also on Fulmics and even on stock. This is a hardware issue with the G5 display. I cracked mine and replaced it for a brand new original one and it lasted maybe 1 month without any kind of image retention on any rom, then it started happening just like the one I cracked.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
I'm not sure. I had no problems with the display on stock rom. Issue started with flashing lineage.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] vampsm:
Please fixed the NFC bug
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] f4n471c:
Is there a list somewhere with current bugs? Strange there is nothing in the OP??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
bugs and issues

Because this ROM is officially supported by LineageOS, any issues should be reported to that project; it's issue management system can be found on JIRA.

Bugs specific to the the h850 can be found by setting Device to "h850" when searching.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] f4n471c:
Thanks a lot. This looks very good.

Unfortunately also looks like the bugs are quite severe. Guess I need to wait then. Thank you!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dericktin:
Does this work with H860N?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wp007:
Running the latest nightly for a few days now. It seems to me that there hasn't changed anything obvious. What are your experiences?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tristan6100:
I was also wondering is there's any plans for rs988 support. I can't get an h850 anywhere (I tried eBay twice and I got the iot marketing version) and the h830 costs 80$ to unlock.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ctag:
Ditto, except I already bought an RS988 without knowing the difference, so now I'm stuck with it. The question's already been asked on this thread, and the response is usually negative.

It looks like there's some work here: https://github.com/LineageOS/android_device_lge_rs988

But I don't know what state it's in or if there's active progress.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sjcali566:
Don't know what just happened. I went to see if the update (December 5th) was available under lineage updates on my phone and it was. I proceeded to download the zip file and it was ready to download through TWRP. I went into TWRP to make a backup first and then rebooted my phone once it was done. I went back into where the download was ready to run in TWRP and it took me there but the file didn't run. I tried to reboot into system but it took me back to TWRP. I assumed the file was corrupt so I tried to restore my backup but it says running recovery commands updating partition details...done Full SELinux support is present and that's it. I'm stuck on this screen and now when I take out the battery and reboot it takes me back to TWRP.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
This is because of aan error (see https://jira.lineageos.org/browse/BUGBASH-1237, you may vote for this issue).

To be able to reboot into system again you'll have to clean some piece of data that keeps the phone booting into recovery.

This requires that you connect with adb to the phone and run the following command:

dd if=/dev/zero of=/dev/block/bootdevice/by-name/misc bs=256 count=1 conv=notrunc

Good luck.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tomas039:
I tried to download directly to my phone, and flash with twrp 3.2.0.0 without wipes, and restart system... All ok
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sjcali566:
Thanks, I found that too and it worked! Yippee!!!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] poruid:
If you want to thank someone, this trick is not something I did conceive, but found in this thread.

So, search this thread for the earliest mention of the dd command to find who you should thank. And since this is not difficult to find, it's a good exercise for learning to search for answers in the thead -;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] sjcali566:
Ok, I wasn't thanking you for coming up with the solution but for the suggestion. :rolleyes::laugh:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 4ndr0x:
Can we please have a list of known issues on the first page? I want to install this ROM as soon as NFC and Bluetooth are fixed, but I cannot find any information about it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Phong phamj:
did the h830 vesion fix the wifi mac bug in the 1205 build??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 0657_Code:
Did you clean flash?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] 4ndr0x:
Please? Where can we find a list of bugs?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Randomuser666:
well, here is where you can look up the officially submitted issues:

https://jira.lineageos.org/browse/BUGBASH-700?filter=-5

apart from that you could perhaps read the last 10-15 pages here to get an idea..

-For the moment the biggest issue is the charging: max around 400mA.

Quick charging only in recovery mode (seriously)

-NFC seems not to be working or causing extreme battery drain (cannot confirm it, I'm not using NFC at all)

-For some headsets Blue-tooth seems not to be working properly . I'm using BT sometimes to stream music to my stereo and that woks fine for me.

-Recently it takes pretty long to start playing music. Esp. for high resolution formats, up to 15-20s sec.

And often I need to press the volume-up button otherways the music is muted. But these two "features" were "implemented" in the last month or so...

-Also recently from around 15% battery till shutting down due to lack of power might take minutes, which is quite annoying

-Updating or setting up the ROM has always been quite tricky but it is more of a general problem with the phone, TWRP loops are happening on the other custom roms as well. After flashing (first time or update) immediately flash SU, and only then reboot. That will save you a lot of troubles. And do not update through the LOS updater. But that one might have been fixed, not sure here. To be honest, I do not dare using it.

-Not sure if that's an issue for anyone but me, since I mentioned it several time and absolutely nothing happened- I think no one else complained about it yet: FM-Radio is non existent on LOS for the G5 at all.

I'm sure I forgot quite a nr. of issues but these are I think the most common ones.

I guess King_lilrowrow simply doesn't want (or doesn't care) to implement a list of the bugs.

And yes, the ROM is mostly quite stable, I cannot recall any ROM crashes

I assume everyone here is waiting (im)patiently for LOS 15(.1) to get finally relieved.... but since (I think) only one person has being developing for the G5 it takes some time, and most ot the LOS 14.1 issues are most likely here to stay.

Otherways, you can switch to Fulmics. His ROM is supposed to be stable but it is stock based.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] x86cpu:
What wifi mac bug?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Then how do you have T-Mobile? :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
Haha T-Mobile does exist over here but they run under the alias of EE here in the UK :)

If you fancy a read:

http://www.telegraph.co.uk/finance/...e-and-T-Mobile-complete-after-five-years.html
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] nima0003:
Ah, I see. :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] xlxcrossing:
Well there's a bluesleep bug in CM which keeps phone awake with screen off when Bluetooth is enabled. There are a bunch of others like location manager services and such that make a lot of requests for wake. Using apps such as greenify and amplify can help you reduce or eliminate this strain on battery life. To put it bluntly, custom roms like CM tax hardware resources hard.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
20161110 build for the H850 variant is up!

Download Here

(the power off bug is kinda fixed it does re-appear even now and then but isn't constant like before)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] gerax07:
I'm fervently and anxiously waiting for the h830. Why is it that the h830 won't be released until tomorrow?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ted presley:
[emoji16] , it's too late, he needs some sleep :D
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] King_lilrowrow:
It's 3am here :)