yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] NuttyJitters:
I believe this is exactly how you enter TWRP with hardware buttons. It is scary to say YES to wipe to Factory but it should take you into TWRP if it is installed.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] NuttyJitters:
I don't know about the network, but as far as the camera I agree with others that you should follow the instructions in post 136 & 138. I was skeptical but it worked for me. I was on Unofficial 16 and camera was not working. I figured wiping Data, System & Cache would make flashing of the unofficial builds irrelevant. However, it worked for me.

Check post 136 & 138 for more detail, but here is a summary of what I did to finally get the camera working for me:

Clean flashed** Unofficial 15.1 - boot to system, test camera, flashlight, etc.

Dirty flashed Unofficial 16 - boot to system, test camera, flashlight, etc.

Dirty flashed Unofficial 17.1 - boot to system, test camera, flashlight, etc.

Clean flashed Official 17.1

**Did not apply OpenGapps on the Clean flash of Unofficial 15.1 to save time.

I don't know how, but that got my camera to work. There may be some other trick to going straight to Official and getting the camera working, but I struggled until going through the Unofficial pathway. It would be interesting to know the why behind this since performing a clean flash would likely wipe out any remnants of the unofficial code.

Definitions of Clean vs. Dirty as it relates to this post

Clean Flash - Wipe Factory, wipe System & Cache, flash ROM, flash OpenGapps, Wipe Dalvik/Cache, Reboot System

Dirty Flash - Wipe System & Cache, flash ROM, Wipe Dalvik/Cache, Reboot System
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] actitube:
I just bought a LG G5 (h850) with stock OS. Installed TWRP 3.2.2.1, flashed LineageOS offical (20200404-nightly), flashed Gapps (nano). Booted into Lineage, everything seems to work - except the camera. No camera App there. Installing different camera apps did not make the camera work. Going through all the unofficial builds to get the camera working seems a little bit over the top. i thought offical build means basically everything should work? anyway, will try as described but i hope this will be fixed soon!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ViSiKa:
I'm facing the same issue with the camera here. I have h850 and nightly 20200404.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
When coming from stock you have to follow the instructions in post 136/8, otherwise camera, sensors, flashlight, NFC etc may not work.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] NuttyJitters:
Have you tried a reboot since your install? I have had to reboot after the initial install for each new version before camera will work. Figured it was worth throwing out there in case it was something that you hadn't tried yet. I'm sure some people would like to be able to dirty flash from x86CPU to official but also want their camera and sensors to work.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
On earlier versions of LOS rebooting solved the problems for me but eventually they would return again. Also on 17.1 unofficial, (dirty flashed) sometimes I would have camera kernel errors (logcat) and high CPU usage, rebooting solved that too but would return again periodically. Clean flashing solved this, but I had flashed 15 and 16 at some point before this.

If the problems persist or reoccur after rebooting it's best to follow post 136/8. If you've already been through this (in one go or over course of last few years) you may have to clean flash 17.1 official again with latest optional gapps, magisk etc.

As you have previously stated, updating via OTA sometimes causes camera issues and a reboot will solve this.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] doc.moc:
Hello together,

i have installed 17.1 beta and flash today the official 17.1 20200404 on my H850. WLAN, NFC, Camera works fine. It's a very fast image. IR Blaster doesn't works. Thanks for this great image.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ViSiKa:
Thanks, done that and now it works! :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
I came from LOS16 (H850) and dirty flashed LOS17 with success.

I only face a way worse battery life compared to 16, FDE app running in adaptive mode. It feels to be a bit better after installing naptime.

What didn't work was the Updater. It downloaded the latest (newer) OS, booted into TWRP, seemed to flash, but then booted to bootloader. Only escape was manually booting into TWRP again and reflash LOS.

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
If it keeps looping, you may want to try reflashing latest twrp via fastboot.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
I'm not very experienced with fastboot. Do you think it's necessary?

I helped myself by downloading the newer version and flashing it manually [emoji4]

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Manually should be fine too. The older version may have been causing your flashing issues.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
You were right. Just minutes ago I flashed newest built via updater successfully.

Just the battery drainage leaves me a bit frustrated.

First 10% go down within minutes which was better with LOS16, I think

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] flurryman:
Oh indeed, it works. Although I would like to understand _why_ this works, (as opposed to sharing anecdotal evidence), this works for me [TM]. I'll keep an eye on whether the Cam eventually fails again.

NFC is still not available though.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Here's a guess, but one which can be tested. The app cache is has information for the earlier version. Test: in settings, go to apps, force stop that app, then clear that app's cache.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Try resetting your battery stats with the app battery calibration, if that doesn't solve it may be your battery is on its way out.

---------- Post added at 12:25 PM ---------- Previous post was at 12:04 PM ----------

You may have to clean flash 17.1 to resolve NFC won't enable issue, if that doesn't work then you may have to follow posts 136/8. As I haven't tried it, I'm not sure how well it works even if you can enable it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
I can try that. But my batter(ies) should be ok. I have 3, all maximum a year old, and I usually let them drain to at least 10% before charging, or I use an external charger and switch them. That's one of the reasons I still use this phone, the removable battery [emoji6]

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] flurryman:
If I get the 136/138 thread right, this is about getting NFC to work with 17.1-UNOFFICIAL. It did work when my phone ran UNOFFICIAL but it ceased working after upgrading to OFFICIAL. Going back to 15 and starting all over is not really an option when it seems clear that the issue is between 17.1-UNOFFICIAL and 17.1-OFFICIAL. Which is why I looked into logcat, but there does not seem to be any hint there.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Then the upgrading from unofficial to official which X86cpu recommended against is most likely the cause of your problem. You could try and clear cache/ delvik cache etc, if that doesn't work then you'll have to clean flash the latest official 17.1, magisk, gapps etc.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stiesen:
Hi,

first of all huge thanks to x86cpu for resurrecting the G5!!!

I installed the official release on my h850 and its mostly working fine. Here are my issues:

April 4 release:

Installed after full format and wipe through TWRP by sideloading LOS and nano apps as set out in the Lineageos.org Wiki. Issues:

- No NFC

- No camera and no camera app

- Bluetooth does not work (app crashes when searching for a device)

April 6 release:

Installed through LOS-Updater

- NFC now available

- No camera and no camera app

- Bluetooth does not work (app crashes when searching for a device)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
You didn't say what you had before official 17.1. but a reboot may fix your camera issue if not then you may also have to read post 136/8. If you've come from 15/16 before then a clean flash of 17.1 may be all that's necessary.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stiesen:
Thank you, Pedro! The reboot did not fix it, so I guess I will have to work my way through the procedure described in posts 136 & 138.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
I came from stock and this is what I did to get the camera and sensors working:

-Clean flashed 15.1 (cleared system, cache/dalvik, data)

-Booted to system and tested sensors/camera

-Dirty flashed 16 (cleared cache/dalvik)

-Booted to system and tested sensors/camera

-Dirty flashed Official 17.1, Gapps nano and Magisk 20.4

Everything works. Haven't tried dirty clean flashing from here but I imagine it would.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Kalisz1985:
After uploading the system you need to clear the memory of the cache Everything works camera, bluetooth Learn how to master the system People Sorry for the correctness But written in a dictionary
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rjmohit:
Can verify this works! Has anyone been able to get Google Pay to work after getting on LOS17.1? Magisk shows CTS not passing, not sure how to fix that. Suggestions?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] blackwind.:
So has anyone successfully encrypted their device in official?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Try jayem tech post on this page, seems to work for me, at least for now anyhow.

https://xdaforums.com/apps/magisk/module-safetypatcher-t3809879/page44

The Edxposed module didn't work for me, even the Canary version, some others on other devices have had some success.

I haven't tried it but another option is to try the magiskhide props config module.

https://xdaforums.com/apps/magisk/module-magiskhide-props-config-t3789228
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] margiekami:
I read 136-138 and everything works fine (thanks).

After 6 April update (official) no camera no flash.

Any suggestions?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
How did you update to 6th April? And from what version? Have you tried a simple reboot??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] margiekami:
From previous official 04/04

From phone

Yes i did

Στάλθηκε από το LG-H850 μου χρησιμοποιώντας Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I'm guessing when you say phone you mean OTA, assuming they were working in 0406 do a few more otas and see if it resolves (I did 4th, 5th and 6th, 6th had camera issues but a reboot solved). If it doesn't you may have to clean flash 17.1 again or put up with it for now.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ViSiKa:
I followed the instructions in #136/38, flashed 17.1 unofficial and then the to_official.zip with nightly successfully. (Magisk and openGapps nano applied)

Now I experience another issue. The lock screen periodically freezes:

I input the code and tap enter. The button fades but the lock is unsuccessful

I press power button to power off the screen, press again to try unlocking the phone again but the PIN pad only shows partially, like the animation fails midway, numbers 1 to 4 get shown.

Power off screen again and now it will always be black if i press power again.

I can only hold the power button to show the power options, but the menu isn't the LineageOS one on the right; instead it is plain white in the center, with options Shutdown, Reboot, Lock.

Reboot.

I found the issue with PIN and with fingerprint.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
This is a known problem that has been raised before but there is currently no fix, it's happened to me in unofficial and has happened several times already in official. It's also occurred a few times in setup when reconfirming the new pin. It usually occurs with the charger in and will freeze-up overnight. I've just removed device protection to see if it occurs again.

It's difficult to get a log as I have to pull the battery and it's lost. Only possible way is connected to a comp which I don't have at the moment.

For future reference you can go from 16 to 17 latest nightly official. Even though the installation is almost default, I've updated instructions to recommend a clean flash from 16 to 17.1 too. This is to reduce the likelihood of creating bugs during the upgrade process.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] flurryman:
New issue with former dirty flash to official

I have a new issue with my former dirty upgrade. I tried to upgrade from 20200403 to the 20200407 image yesterday, leaving everything else untouched except OpenGApps, and after flashing the phone would not boot, but eventually rebooted to recovery without interaction. Ooops. I tried to go back to 20200403, but same thing: boot loop to TWRP. I also wiped factory incl system, to no avail.

Fortunately, I had made a TWRP backup before initially flashing official, so I could go back to the latest unofficial and start over from there, with success. My local folders are empty, though.

Now on 20200407: Gcam works, but it seems I have to reboot after flashing and booting (weird if you ask me :confused: ) and invoke the stock Kamera once prior to using Gcam. NFC is greyed out in the settings. Haven't tried anything else yet. BT audio is a killer app for me so I'll try this today.

Can't think of how things would be related. :confused: Ideas are welcome!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Have you flashed the latest version of twrp? Are you upgrading via OTA??

If so and you upgraded from 16 to 17 (and didn't follow my 15 to 17 instructions) you'll probably have to clean flash 17.1 latest nightly.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] zwq939681378:
My H850 have some problem on speaker. When it is playing sounds, it is always with noise. I can solve the problem with mk2000 kernel, but it's not compatible with lineageos(15,16,17).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] flurryman:
TWRP has been -latest for quite a while (3.3.1-0), and I flashed from a previously downloaded, sha verified and locally stored image.

The full story was described above. I was on 20200403-x86cpu before upgrading to 20200403-nightly, by flashing to_OFFICIAL.zip first, which worked. I tried clean flashing nightly-latest (yesterday, 20200407, coming from 20200403-nightly) and the phone ended up in a boot loop.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Try following my instructions in post 138. If you're not already, when you update a nightly use the OTA updater under settings. Also you mention to_official.zip, if you're referring to_x86cpu.zip then you're only suppose to flash this once before flashing 15 for the first time and never again.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Anyone else having sound levels decreasing/ increasing while playing music on Spotify, Deezer et al?? Definitely affects speaker playback not sure about via bluetooth headphones. Seems to occur after activating equaliser, normalise audio in Deezer app, after deactivating this continues. Seems to occur sometimes when app is looking for location. As I haven't found away to revert back, if you're going to try it do a full twrp backup first, it becomes annoying over time. Problem appears to be in the data partition.

Update: could be a hardware fault.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] loretta1980:
WiDi does not work for me on H850 20200401 - 20200407 nightly.

WfD Service is chrashing when i try to stream to my HiSenseTV(Anyview) or Hama Miracast Stick.

The TV shows: "Try to connect to device" so the TV can see the H850 but is not able to establish the connection.

P.S. First CleanFlash with 17.1 after dirty Flash from 16. No GApps only MicroG from VancedApp

Camera works, flashlight too
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] no_means_no:
I want to report I can not use my 3rd party alarm anymore. I gave all rights to wake up the phone, tried to deactivate naptime and FDE. But the alarm just doesn't work, even when phone is in use. Battery optimisation is surely off. Maybe I forgot or oversaw anything.... This is new since Android 10.

Gesendet von meinem SM-T813 mit Tapatalk
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Alexkar99:
Try using this kernel

This is the same kernel but for lineage : https://xdaforums.com/lg-g5/development/mk2000-kernel-t3950885/amp/

I have the same problem ..the only thing that worked was flashing this kernel ...sound is unbearable without flashing this kernel
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] actitube:
so, after following exactly what is described in threads 136 & 138, the camera still doe not work. it worked in 15.1, as well as in 16.0. after following the procedure of post #138 and flashing 17.1 20200409 nightly, followed by magisk and GAPPS nano the camera does not work :(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Did you reboot the phone and test it again? Try it a few times if necessary.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stiesen:
I followed the procedure described by Pedro1977 and summarized by DJSkribbles, and it solved the problem with the camera. Thanks, guys!

The only remaining problem with the camera is that the camera app cannot write to the external sd card.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Download and install Google camera
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stiesen:
Thank you, Pedro. I tried it, but the Google camera app doesn't even give me the choice between internal an sd card.

But that's okay; I can live with it. I'm just happy that you gave me back my camera. ;)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] actitube:
Ah, the second reboot did the trick! thank you, now it is working like a charm :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
My 2 cents with 988. Clean 15 -> test -> dirty 16 -> test -> dirty official 17 (first available on april 2) with wipe cache and dalvik -> magisk + nano gapps -> Cams ok, NFC ok (verified at the store paying with GPay). I have NOT upgraded to any later OTA (seems like it was a good decision). Some freezes and hangs within a week. Overall - not bad, though I'd like it to be RR ))
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] wurmboss:
Hi,

Just a quick question, why are many people taklking about an official 17.1 Version? I thought they are only unofficial versions avaleble ore do i miss Something? Thx in advance!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
It is now official. Here's the link for the h850.

https://download.lineageos.org/h850

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mgreig:
Which Gcam should we be using with this ROM? I've tried a few and just FC's on the ones I've attempted. Looking for the latest/most feature-rich Gcam that works my TMO LG G5 H830.

I have tried both official LOS 17.1 & this unofficial 17.1 (though to be fair, I haven't gone through your instructions here for unofficial (https://xdaforums.com/showpost.php?p=81972297&postcount=136) as I've been mostly trying to get the official build to run properly.

Additionally, am I correct to think of this unofficial build line as the beta version and once builds have been tested for a while, this same code tree is then committed to the official builds on LOS's site? ... i.e. - if I get a working, unofficial build on my phone, I'm not "losing" anything by not running an official build - correct?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Have you ever flashed 15 and 16 before?

Google camera in the play store.

---------- Post added at 08:20 PM ---------- Previous post was at 08:18 PM ----------

After coming from stock you have to go through them once, and then from 16 you can go straight to latest official 17 nightly via clean flash as indicated in post 138.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mgreig:
Appreciate the help here - so to recap and be explicit I need to go:

Backup any important data first.

Boot into TWRP recovery and wipe:

- Delvik/ ART cache

- System

- Data

- Cache

Flash the to-x86cpu.zip (and reboot recovery before upgrade, not reboot into system).

Then Install/ flash 15 (i.e. - lineage-15.1-20200303-X86CPU-h830.zip)

Reboot and test.

- (You can use the app androsensor to test the sensors etc - also test other things like flashlight and anything that is important to you)

If everything works youre going to dirty flash 16.

Wipe:

- Cache/ art delvik.

- System

- Cache.

Then flash/ install 16. (i.e. - lineage-16.0-20200303-X86CPU-h830.zip)

Reboot and test

Then from this point, can I just dirty flash Official LOS (i.e. - lineage-17.1-20200404-nightly-h830-signed.zip or whatever the newest nightly is)?

Or do I have to run something first to change from unofficial to official first?

And once all of the OS installation is complete - I can then boot back into TWRP and run GApps & Magisk and whatever else I want? ... or do you have to run GApps & Magisk and whatever on this last (17.1) flash *before* you reboot out of TWRP and into system to setup Android for the first time?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Nope your set of instructions doesn't match those indicated in post 136/8, instead of me writing them again revisit them i.e it says only flash to_x86.zip once so if you've done it once in the past after coming from stock there's no need to do it again.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mgreig:
Sorry - this is on a fresh H830 (have 5 of them) - so running this fresh on a newly unlocked phone where I would have to run _x86.zip...

Goal is to have a repeatable process from scratch so I can run through it 5x's once I get this working and tested on phone #1.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Yes everytime you're coming from stock you would have to flash it once and reboot to recovery.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] mgreig:
Really appreciate the help BTW...

So once I get to unoffiical 16.0:

Then from this point, can I just dirty flash Official LOS (i.e. - lineage-17.1-20200404-nightly-h830-signed.zip or whatever the newest nightly is)?

Or do I have to run something first to change from unofficial to official first?

And once all of the OS installation is complete - I can then boot back into TWRP and run GApps & Magisk and whatever else I want? ... or do you have to run GApps & Magisk and whatever on this last (17.1) flash *before* you reboot out of TWRP and into system to setup Android for the first time?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
I've just revised and merged post 136, full instructions and the answers to your questions are here.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
Hi all, can updates be installed with twrp or should I flash the official lineage recovery ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] fernseher:
I use TWRP 3.2.3 with no problems.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
Thanks ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
TWRP is fine but I would recommend you use the latest version (currently 3.3.1.0.) as some have had problems with OTA updates, and other errors with older versions.