yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] orclex:
I just installed LineageOS 18.1 on my LG G5 h850.

Is there any chance to use Google Pay on that device with LineageOS 18.1?

I do not need root so I'd like to disable root support if this allows me to use Google Pay. Unfortunately at the LineageOS webpage https://lineageosroms.com/root/ there are only patches to disable SuperUser up to LineageOS 16. What about 18.1?

I also found Magisk 23 and installed the zip in recovery mode and hide magisk in the settings. Unfortunately I still cannot pass the SafetyNet check. Has anyone passed it?

Is this the way to get Google Pay working?

Thanks!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Lineageosroms is not lineage, it's some random ad filled crap site. Stay away.

Magisk no longer passes safetynet.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] orclex:
Thanks for the advice!

Ok. Is there currently any other way to get Google Pay working on LineageOS?

I just want to know if I should keep trying to get it working or live without Google Pay.

Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Hi all,

I am a longstanding LineageOS on H850 user - I've used 14.1 for several years as my daily driver.

Because the hardware started failing (power button) and I have yet to find an alterative handset that fulfills my wishes (removable battery!) as well, I recently purchased a second H850. I have recently been trying Lineage 18.1 on the new handset, but have run into a few issues. I'm running OpenGapps and Magisk 23.0 with TWRP 3.5.2 recovery.

The minor issue is spell-checking doesn't want to work properly with two languages, see https://xdaforums.com/t/spellcheck-gone-after-upgrade-to-android-10-los-17.4145015/post-85865939

The major issue (that is driving me mad!) is that the phone crashes randomly, and rather frequently (I rarely get through much more than 24 hours without incident). There is no pattern in the crashes, sometimes they even happen in the middle of the night when sleeping, sometimes when typing, sometimes when opening an app etc. Occasionally the phone then bootloops and I put it out of its misery with a battery pull, usually though it reboots without further issue.

I've already done a clean install (TWRP factory reset wipe, then latest nightly etc.), and the issue has not gone away.

I would be immensely grateful for a route to a solution. As it is, the only thing I can think of doing is reverting to 14.1 in the hope that everything is as stable as on previous hardware... Any ideas?? Note that I am not an android expert - really, I just want a phone that works (without ads, bloatware etc.) - so comprehensive instructions are appreciated.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
If you are not already using the new H850 I'd install LOS 14.1 on it just to see if it works. Use the same setup as your existing H850 including Gapps/OpenGapps and root method.

If your new H850 still crashes using your older existing stable LOS 14.1 config, then your new H850 HW is bad.

If your new H850 is stable using the existing LOS 14.1 config then take a closer look at your LOS 18.1 setup.

I should mention that I have an H830 running LOS 14.1 new this year. Out of the box I installed official LOS 18.1 but my favorite apps kept crashing, so I went with LOS 14.1 instead.

EDITED: Fixed typos
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Thanks a lot for the advice! I have been trying to use the new phone - but clearly this is currently "challenging", so I have already concluded that I will need to do another wipe...

What partitions should I wipe in TWRP for "the cleanest" installation before reverting to 14.1?

Of course interesting to hear that you've had a similar experience with 18.1 (on H830)...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bernardobas:
Hey Brizzler. The rom is very stable. Looks like a Gapps issue to me. Try using a different package (the smaller the better) like OpenGapps pico. I'm running Roar Gapps on my device and everything works fine.

Then install the rest of the apps from Playstore.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Thanks for your input!

As it happens, I'm already on the pico version of OpenGapps - sorry, should have mentioned...

Still worth trying a different Gapps?? What's the difference in practice between OpenGapps and alternatives like Roar (admit I've never heard of this)? Thanks!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bernardobas:
Yeah, definitely. Try mindthegapps or the one I mentioned.

Roar gapps is similar than pico but more stable and drains less battery.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Great thanks, will give it a go when I get the chance...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Not sure how it drains less battery - Google Apps are Google Apps, not like one can optimize them.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bernardobas:
Gms doze
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Is that just a doze config for Google apps?

If it's just forcing doze on those you're breaking a ton of background features.

Plus unless you're stripping the exemption XMLs it's not doing anything?

Even if notifications work, Nearby discovery, Quick pairing, etc.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bernardobas:
Honestly, all I can say is that everything works fine. I started using it in the early A11 days and at that time the difference with other packages in terms of battery consumption was notorious. Then I sticked with it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Since the Dec security patch has been merged, I tried to build the system. Everything builds okay, and the apk signing goes okay, but when putting it all together I get an error.

ERROR: Failed to run command '['simg2img', '/tmp/targetfiles-d7sa0b/IMAGES/sy
stem.img', '/tmp/targetfiles-d7sa0b/IMAGES/unsparse_system.img']' (exit code 255
):
error: file_write: write: No space left on device
Cannot write output file

simg2img is available. /tmp has plenty of space, as does the filesystem on which the lineage source is located. Any suggestions?

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tootandboom:
Hey folks,

So I'm curious what our current status is with regards to the US carriers shutting down 3G. Is this fully confirmed for 2022? I've seen some movement with AT&T on it, not sure about T-mobile.

I would hate to lose this phone, it's good harware made into a great phone with LOS.

As stated before, volte won't work on LG because it's baked into the framework.

What other phones do we know of that will work using LOS on 4G (volte, wifi calling)?

Cheers
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@tootandboom just being curious:

here in Germany 3G has been shut down already and when making a call with my G5 (on DotOS 5.2) it just switches to 2G for the call and afterwards turns 4G on again.

Doesn't that work in the US?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
in the US they're taking down 2G as well :/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tootandboom:
Currently I'm on LTE for data, when I make a call it will switch to H/H+. 2G has almost all been decommissioned, and now 3G is on the way. From what I've read the companies are looking to reuse the infrastructure to expand the 4/5G. So it appears that by mid-year 2022 it will be almost completely 4/5G only......sadly.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
So before I visit US again I have to change the phone.

That's too expensive imo.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Operator error. Apparently, 7GB wasn't enough for /tmp. I switched /tmp in /etc/environment to a larger disk, and all went well.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hehephonegobrrr:
Hi all,

I'm having trouble encrypting my phone (Settings > Security > Encryption and credentials > Encrypt phone). I've installed twrp-3.6.0_9-0-h850.img and lineage-18.1-20211226-nightly-h850-signed.zip without any issues, however when I press 'Encrypt phone' I see a green android/gear logo for a few seconds, then the phone restarts without encrypting. I've dealt with a problem with similar symptoms before on a different phone (not an H850), however the solution for that phone (resize2fs /dev/block/bootdevice/by-name/userdata xxxxxxx) doesn't work this time. I have one other issue, when I press 'Power off' the phone either reboots of vibrates continuously for about 5 seconds and then reboots. Are these problems related? Any solutions? Would a logcat dump of the encryption issue help?

Thanks in advance!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
You need 100% to use lineage recovery, and have formatted /data with it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hehephonegobrrr:
Thank you for your response,

I installed lineage recovery and formatted data, but the problem persists. I'm now looking into this possible solution:

Device unable to encrypt filesystem (#2907) · Issues · e / Backlog · GitLab

/e/ version: 0.15-q Device model(s): LG-H850 Summary Device remains unencrypted after encryption had been requested....

gitlab.e.foundation
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
That ticket makes it sound like you're on the wrong firmware. Are you on the latest nougat firmware?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hehephonegobrrr:
Nope i'm on lineage-18.1-20211226-nightly-h850
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
I meant when you started :p
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hehephonegobrrr:
No i think it was marshmallow
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
There is your issue. Get in nougat. Need matching keymayer firmware. That's why in that ticket the splash screens were different.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hehephonegobrrr:
Install LineageOS on h850 | LineageOS Wiki

wiki.lineageos.org

I will rtfm more attentively next time 😅
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CounterbaIance:
NFC not working, even after the post of VortexHD. Its not in the list of known bugs, so how do you guys get it to work?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CounterbaIance:
Ok i found the solution to get NFC working. VortexHD was right, but the thread he linked about lineague 15.1 has broken downloads. So after searching old threads, i found another 15.1 lineague thread with working downloads, but that one doesnt fix the NFC issue, because the version was too old. But this thread (https://xdaforums.com/t/rom-h830-h8...og-15-1-8-1-2020-build-by-bernie_nix.4059851/) has a 15.1 lineague version with micoG preinstalled, which doesnt matter. This one is newer and fixes NFC when repeating the steps of VortexHDs solution.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Cheers! I can confirm that this works.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Reeves00:
Hello,

I have G5 (H850) with Android 8.0 for a loong time, and now is the time to do little software upgrade. I checked couple of ROMs available on forum and this one seems to be the best/most updated/most stable (is that right?).

But before I start I need to ask some questions:

1. My Volume Down button doesn't work. Is there a way to enter recovery mode using cmd console or some external software? Or maybe there is a something that will do the whole proccess on Windows (Last time I changed the ROM was on Nexus 5 and [not sure] there was a software to do everything on computer)

2. I saw that official way to unlock bootloader is no longer supported by LG (LINK). Do you know a way to do it?

3. According to THIS guide, the best Android version to start of is 7.0. Is it still necessary step to do or it doesn't matter anymore?

Thanks in advance,

Have a nice day!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Afaik ADB will do that if USB debugging is activated.

"adb reboot recovery"

Not possible afaik (yet?)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] salmanbashir:
Hi there

Just flashed latest nightly with no problem except when try to flash g.apps package im facing error 1 in twrp....

Anyone plz suggest how to resolve the issue

Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Use lineage recovery
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] salmanbashir:
THANK YOU.

it worked without using LOS recovery, actually, the problem was a corrupted boot image.

Rom is quite stable enough for daily use.

thanks to VortexHD for the guide about the NFC issue.

thanks to all brains behind this great Rom
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] giaur:
Gps is dead completly. No satellites in view, no signal. Do you know any way to fix that?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
It might be a hardware problem. The connection between the GPS unit and the antenna on the caseback is dodgy. I fixed my GPS problem by puttig a bit of conductive mesh/cloth where they connect, making the connection more secure. There are online guides explaining how to do this.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
works here for us on g5, so maybe a hardware issue?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
My G5 (h850) works at least as well as it ever has. I don't think that there is anything of significance not working. Well done!

I've also got enough spare parts to keep it running for a couple of years more. :) Alas, only one spare unlocked motherboard, and no more bootloader unlocking, so when that goes, I'll probably get a FairPhone. (Both my wife and I use G5s.)

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Cryomichel:
Hello,

I was busy in December and couldn't do the unlock.

Is there mandatory to update to Lineage ?

My G5 was bought refurbished, do you think I will be able to jump to Lineage OS and keep it almost working for a few months ?

I plan to do keep it as long as it's running fast for my daily use.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Me again, still having issues...

So, I have now attempted:

TWRP + Lineage 18.1 + OpenGapps pico + Magisk (twice!)

TWRP + Lineage 18.1 + Mindthegapps + Magisk

TWRP + Lineage 14.1 + OpenGapps pico + SU (as used without issue on old handset!) - TWRP error 7, aborted

TWRP (updated to 3.6.0) + Lineage 18.1 (latest nightly at time of install) + OpenGapps pico + Magisk (updated to 24.1)

For all combinations that actually flashed ok, things start quite well, but crashes occur with a generally increasing frequency, largely at random points (even on standby). The last combination seemed to be an improvement, most stable to date and the previously seen issue of spell-check not working in two languages seems to have been magically resolved. However, I've now had about 10 crashes in a handful of days, and it also now seems to be reproducibly crashing (when I try to attach a pic from gallery to a Signal message).

The whole experience is incredibly annoying, considering I really just want a working phone (with minimal Google footprint, no bloatware, a proper firewall and exchangeable battery), and this is supposed to be my daily user! Kinda at my wits end with the handset - what else should I try? Roar gapps? Why isn't the downgrade to 14.1 working? Anything I can do about that? Would be good to rule out hardware issues... Is Magisk a likely source of instability?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
@Brizzler although you didn't write it I assume you took 64b Gapps versions?

I used NikGapps64 plus Magisk.

Never had a crash yet with them on DotOS5. 2.1.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
The ARM64 Gapps Version, yep...

Thanks for hint - another Gapps version to try.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Androi100:
the nfc is already working will I have to install this zip to be able to work? And the infrared? https://androidfilehost.com/?fid=962339331458997637
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
does this work to fix NFC?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Stiesen:
Hi all, has anyone experienced similar problems? I'm running out of storage, so last week I switched from a SanDisk 16 gig external sd-card (which ran without any problems) to a SanDisk128 gig microSDXC UHS-I card on my h850 with the latest LOS-build. Every now and then, the phone stops reading the card, labelling it damaged, even after restarts. The card works only after a reformat. Has anyone experienced the same problem and a clue on how to solve it?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Androi100:
npjohnson​
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
I don't speak spanish, sorry.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Androi100:
a am brazil, there is no spanish here
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Okay, I also don't speak Portuguese.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
If you clean flashed 18.1, without that zip, that zip did nothing.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Rebuilt phone after complete wipe with format today. Thought I'd try my luck one last time...

TWRP (updated to 3.6.1) + Lineage 18.1 (latest nightly) + OpenGapps pico + Magisk (updated to 24.2)

Also, unlike previously, I only flashed Magisk after the first boot to system. And things initially looked quite proming. However, since installing Magisk, boot hangs on the LG screen (never seen that before), rescued usually by long press of power button. But now phone has already become unstable again, and has crashed repeatedly - each time getting caught in a bootloop of sorts. Nightmare.

Anyone using Lineage 18.1 with Magisk?? I need root... I'm close to binning this handset at this point. Any final suggestions?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bmwdroid:
Tried without Gapps?

You use ARM64 don't you?

Older Magisk (I usually take 21) and updating later?

Mine is rooted but I took NikGapps64 instead.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Thanks so much for your suggestions!

Given my intense frustration I have now invested in an FP3, so priority task is to get that operational, to have a working daily driver! If I find I have time to kill I will have a go at using an older Magisk, for example, on the G5. Yep, been using ARM64 Gapps all along...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] guest2free:
Hello everyone, I'd like to point to the previously mentioned problem with GPS. First of all it IS NOT a hardware problem (at least not in my case; tested on two phones). Everything works fine with stock ROM and with unofficial LOS 15.1. It even works with 18.1 if dirty flashed over previously working 15.1 installation. But as soon the phone is restarted or powered off on 18.1, GPS stops working. I'd be glad to test it further with unofficial X86CPU versions of 16.0 and 17.1 if someone would be so kind to upload last versions somewhere and post a link, since official GDrive folder seems to be down ...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
My LG G5 was crashing with any LineageOS. I found that I had to disable NFC, including disabling NFC wakelocks and alarms (using XPosed DeepSleep) to stop the crashing.

Disabling NFC also had a big improvement on battery life.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Brizzler:
Thanks for hints... If I ever hav another go at getting H850 to work, I'll try to look into this.

May I ask, as a non-expert: how on earth did you identify NFC as the problem? What's the process for debugging "random" Android crashes??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] EEngineer:
I'm trying to remember how I diagnosed. I know Better Battery Stats (BBS) was showing my NFC was keeping my phone awake because of many partial wakelocks during screen off. So I used the XPosed DeepSleep module to disable all wakelocks & alarms for "Nfc Service". After that the crashes stopped occurring and my battery life improved.

I've discovered that often crashes & poor battery life to hand-in-hand. If you can fix what's draining the battery you'll fix the crashes, too.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Madfrog22:
i'm new to this... when i read the tutorial for flashing this rom, it requires android 7 firmware. i'm on android 8, how can i downgrade to android 7? give link to the tutorial if possible 😥

my phone is h830

no work has been done (root/custom recovery)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] NikolasOliveira:
Download firmware 20a and then use lgup program to downgrade
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Madfrog22:
thank you sir...

also, when using LG UP, which mode should i use? refurbish? since i'm on oreo

would you kindly tell me where to download?

https://xdaforums.com/t/stock-n-arb01-h830-20a-rom-flashable-zips-imgs-kdz.3511294/

is this the right link? LG UP uses .kdz right? i only have to download the kdz file

also, what about anti rollback version?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
You might want to keep in mind that to install lineageos the phone needs to have an unlocked bootloader, and the lg g5 bootloader can no longer be unlocked.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] kejava:
Hello everyone,

I’ve managed to go through the whole process of updating my LG G5 H830 by reading through many of these useful XDA forums. I switched over all of my family’s phones (4 of them) to use LOS 18.1. Initially, everything seemed fine but we each started noticing strange behavior. I’m hoping some of you might be able to help with this. Here are the two main issues:

Random reboots

Phone is sometimes warm when it happens. Usually happens right when we are about to run something, like starting an app or even a phone call. Seems to happen roughly 1 time each day. I can live with it but I’m concerned it’s due to overheating and it’s a thermal shutdown. I just read in this thread that NFC might be the cause of this. Will try disabling it for a bit.

SMS/MMS texts stop working

Can’t send or receive. Only way to fix it is to toggle Airplane mode, then messages will flood in. This one was hard to identify. When most of your family is using RCS messaging, SMS/MMS doesn’t get used. My wife first noticed it when waiting for an MFA text to her work’s VPN. This seems to only happen when we leave the house or work wifi and then come back to it. Like leave to do some grocery shopping, come home, and now SMS/MMS messages don’t come in.

Have any of you heard of this happening? If not with this phone, then perhaps others?

The second issue bugs me the most.

Here is my phone configuration:

LG G5 H830

Firmware H83020A (downgraded via Uppercut with H83020a_00_1107.kdz)

LineageOS 18.1 (May 18, 2022)

Recovery Image: TWRP [twrp-3.6.0_9-0-h830.img]

MindTheGapps 11 [MindTheGapps-11.0.0-arm64-20210920_084011.zip]

Mobile service: Mint Mobile

Preferred network type setting:

LTE / TDSCDMA / CDMA / EVDO / GSM / WCDMA
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Madfrog22:
RIP

gotta look for a new phone i guess
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] askermk2000:
I'm not too familiar with the US H830 variant, but that one you should still be able to unlock?

He must've been referring to H850 that can't be unlocked now since LG closed their mobile division.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] NikolasOliveira:
Download the version 20a kdz and then use lgup to go back to the version, it's super easy and the program does all the steps. Have you got the download link for version 20a yet?