yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Siegurd01:
My bank app and GPay/Wallet does not work. Is there any instructions on how to fix SafetyNet/Play Integrity/GPay signature check?

I read that when build OS, you need to make a non-test signature, and also that the name in uname -a should not contain references to custom ROMs like Lineage and AOSP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] npjohnson:
No and we won't be patching it https://lineageos.org/PlayIntegrity/

They're checking insane stuff now, it's a hopeless cat and mouse game.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Envinite:
I just bought a phone gimbal (DJI Osmo Mobile SE) and tried connecting it using bluetooth to my LG V20 H990 Dual Sim running the latest official & clean installed LOS 21 & default kernel, but find that it won't connect to the gimbal's bluetooth. With bluetooth turned on, I can see the gimbal device is available, but any attempt to pair it will result the bluetooth service to crash and restart itself.

However, connecting H990 DS to my other LG V20 (US996 Dirty Santa) and PC works well, and I can reliably transfer files between them. I don't have any other bluetooth peripherals to test this behavior.

Interestingly, my LG V20 US996 Dirty Santa running the same latest clean installed LOS 21 official and default kernel seems to have no problem with the bluetooth.

Someone else in this thread mentioned that the Swan2000 BETA10+ kernels could remedy the bluetooth issue, I tried them (BETA10 & latest 11 kernel) and doesn't seems to solve anything. Seems like few other LOS21 & 20 users have similar bluetooth problem so I guess it is variant dependent?

Anyone else experienced this problem when pairing their V20 a blueetoth device? Was this just H990 DS sheaningans?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
LG G5

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

Sadly, this device utilizes android.hardware.radio@1.3 (or below).

This means that the March security bulletin - known as QPR2 - fully killed this device.

We (LineageOS) are trying to write a wrapper to make older radio HAL versions compatible with newer radio HAL versions.

With that said, we may or may not be successful and we're entirely unsure how long it would take.

So, sadly, for now, this device has 21 builds disabled - I have deployed one final February ASB unofficial build people can use in the intermediary (or you can use the final official build).

I will announce here if/when the device is re-added to the roster.

Introduction:

This is the Official Lineage OS 20 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.

Official Builds:

h830

h850

rs988

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

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.

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

Find any? Report them according to this guide.

Notes:

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

This uses a port of Linux kernel version 4.4.

Kernel Source: https://github.com/LineageOS/android_kernel_lge_msm8996
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
yup
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] timbuctoo:
Thanks for confirming
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bunzo:
Hello, I updated yesterday my LG G5 H850 to LOS21 version and until now apparently it works fine except that I have realized that neither the system nor 2 different file explorers do not detect the micro-SD that the phone has installed (it did not detect it before with the previous LOS20). Does anyone know if there is anything I can do to solve this problem?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] b70386:
this is for G5 SE (H845) Also ?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No. Different chipset.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ponce70:
I had 20 installed and I just applied as updates yesterday's unofficial recovery and 21 zip: everything went fine and dandy...

thanks a lot npjohnson!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bombitout:
it is official now?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yup
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] doxts:
@bombitout Here you can have a look at the official supported devices list: https://lineageos.org/Changelog-28/

The LG G5 h850 is listed as well.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bombitout:
but I can't find an official Lineage 21 download. I guess we'll just have to be patient a little longer.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Hi! My apologizes if the quuestion is not new... could be this ROM installed by TWRP from Android 7 fully updated?

Thank U very much for your great work keeping this phone update to developers and to the rest of the comunity for your attention.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, follow the wiki instructions to a tee and you'll succeed.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Thank U!

One more... May I install first the

[OFFICIAL] [14.1] [7.1.2] LineageOS for LG G5 (H830 - H850) and save time updating a H850 from 6.0?? Yes, just unlock bootloader and root since I bought It 8 yesrs ago.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No.

You don't need to be on Android 7 custom ROM.

You MUST start from stock Android 7.

We need your firmware to be Android 7.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Ok, ok :)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
Works great from day 1 (y)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Hi! Is there a way to get android 7 by updating from 6 using official firmwares OTA or any other way, but allow keep installed TWRP and don't have to uninstall it?

Thank U!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, just flash a KDZ
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Any guide how to? Downloads link? Thank U!!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sand23:
Stock KDZ files can be found here on XDA and guides on how to flash stock firmware too. You can also try looking for the correct KDZ firmware for your phone/country here - https://lg-firmwares.com/lg-h850-firmwares/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Hi all, I'm new here and it's my first post.

I heard it's impossible to unlock the bootloader for LG G5, in fact I heard that hear on another xda thread. I actually called up LG today and they told me they don't unlock the bootloader anymore.

So I'm scratching my head when I see folks talking about custom roms on the G5. Are these folks that were lucky enough to unlock the bootloader while LG allowed it, and so now can do it as often as they want?

Or is there a way to still unlock the bootloader today so I can flash a custom rom?

Secondly but related, will a custom OS (or is it called ROM?) like /e/ or lineage help against zero click/remote hackers? (I suppose the theory being hackers focus more on standard ROMs...)

Thirdly (and final : )) since the LG operator told me over the phone today that they no longer provide security updates, do any custom OS/roms have security updates for the LG G5, that still help better than using the outdated current OS?

Thank you for your help.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
1. Which G5 do you have?

2. I guess, we include security patches for the android system up through this month.

3. Yeah, again, kernel is way more up to date and system is up to date.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Hello,

I have a h830 and 988.

I'm still confused about the bootloader unlocking quandary. The LG operator told me it's not possible to do anymore, and I read in another thread here that folks are out of luck after LG disabled bootloader unlocking. But it seems in this thread some are able to flash lineage...does that mean they can in fact unlock the bootloader today? I was banging my head against a wall trying to install another custom OS, and gave up because I assumed the issue was because G5s cannot have their bootloaders unlocked anymore, which I learned you need to do before flashing a custom OS [palm against my forehead!]

Please straighten me out, good sir.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
On h830 you can just reboot bootloader and fastboot oem unlock after toggling oem unlock in dev settings if it exists, then use dirty cow to flash lineage recovery.

On rs988 you're out of luck sadly :/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
That's wonderful to hear one of them can be used.

Curious, is this a new thing people figured out how to do? I recall reading a bunch of posts where people that seemed to be tech experts said there's no way you can unlock the bootloader back in 2022 (after LG stopped that option)...did someone figure something out recently? Fascinating if so...

Sorry, I don't quite follow you on the dirty cow part. Is there a link that provides step by step directions and explains this?

Is the only custom OS that will work on the LG G5 lineage, or will DivestOS and /e/ work using the above method too?

I appreciate your guidance.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Sadly I don't know that there are many people still unlocking their G5s this late in the life cycle.

I'm not aware of any guides that comprehensively cover what you need to do.

In essence you need to unlock the bootloader with the fastboot command that I gave you, then use an exploit for the G5 that is well known on XDA, you can find it, called dirty cow, that allows you to flash a recovery image, once you flash the lineage recovery image you can proceed with the installation guide lineage has
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
I'm fascinated to understand the whole custom OS movement. Is it accurate to say that what happened is someone figured out how to unlock the bootloader of the G5 over the past two years, despite people saying it can't be done? This then allows lineage, /e/, and divestOS to be put on the h830?

My hat off to you for giving old phones new life!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
how about the vs987...will lineageOS work?

I see many people refer to the vs987 and h830 as the same model...are they?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Sorry, one last question for the day.

Are the batteries of the vs987, h830 and 988 all interchangeable? If I swap them will it cause a problem? I see generic LG G5 batteries for sale...and never thought twice if I need to ensure they need to be tied to a specific model if so...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, the short of it is that LG supported bootloader unlocking on most of these devices until 2021 when they shut down their bootloader unlocking portal.

When they did that everyone kind of was on their own to do so, and for some models that didn't require the bootloader unlock token, like the h830 which is just Factory unlockable, you can just use the standard stuff and an XDA tool kit to flash lineage.

The problem is there's no way to unlock the bootloader on the Verizon or other models now because you can't get a token to unlock it from LG.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yeah, 99% sure everything is almost exactly the same if not exactly the same
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No. Not unlockable.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Zer0_rulz:
if i install magisk 27 with swan kernel, if i reboot the device sometimes it gets stucked at fastboot mode
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Then don't use other mods?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Btw didn't your original post specifically mention the 988 DOES have an official build?

Or it's only for folks who got LG to unlock bootloader for 988 before 2022 when they stopped (impossible now)?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yeah, it's only for folks who were able to unlock in time
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Thanks. Also I read in your Lineage 20 thread that "encryption was disabled" for the G5. And there was some exemption to a policy...

What encryption exactly/such as apps like Signal won't be encrypted?... what's the real world implications, explained to a layman, please?

And was this fixed with the Lineage 21 version?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Take a read on the wiki, it details the encryption bug entirely, in short, encryption will work in everything that you want it to, you just cannot encrypt the full disc from inside of Android settings, and no that was not fixed in 21 and will never work again on this device.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Darn, that sounds like it would have been a cool added security feature.

Though here's an interesting article on full disk encryption vs partial that states, at the end of article, a determined hacker can still break it:

How and Why You Should Encrypt Your Android Phone

Discover the pros and cons of android encryption, what encryption means, different types of encryptions, and how to encrypt android phone step by step.

www.airdroid.com

Which raises the question, can you recommend one or two phones or ROMs (like graphene) that are the most secure possible?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
I don't know man, I only work on Lineage.

Lineage is fairly secure, pixels are kind of the best bet
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Thank you for your work on the project. Many people appreciate it.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Apparently I have Android 8, and came across some posts that say you need to downgrade to Android 7 to flash lineage, is that right?

And RE dirty cow: it's designed to retain files and not wipe out everything. But if I don't mind wiping phone completely, is there an easier way to install lineage on phone?

I followed steps to unlock OEM and downloaded adb files on computer, but getting stuck here.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, still need to use dirty cow.

With that said yeah, you need to find an Android 7 KDZ for your variant and flash it with LG up
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Ok, is this what I need to download?

Download LG G5 Stock Firmware and System Dump: Download KDZ, TOT, LGUP, DLL Files for LG G5

Download LG G5 Stock Firmware and System Dump. The KDZ and TOT for LG G5 now available for H850, H851, LS992, Vs987, H931 with build number 10d. LG G5 LGUP. How to install.

www.androidsage.com

And does it need to be only Android 7 or can be marshmellow 6 too?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Needs to been nougat (7)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Ok, rolling up my sleeves...

Btw are all h830 models automatically carrier unlocked, even if they are tied to TMobile?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Ok, rolling up my sleeves...

Btw are all h830 models automatically carrier unlocked, even if they are tied to TMobile?

In other words

2 follow up questions:

1) Is this the right area to flash nougat 7?...I need to follow the 7 steps in part one, then the 10 steps further down below?

LG H830SV | LG G5 | Version: H83020d_00_0225 | Firmware for Region: TMF from UNITED STATES - Lg-firmwares.com

LG H830SV Download the latest version of firmware | OS Version: Android 7.x Nougat | Firmware version: H83020d_00_0225 | TMF - Fan club LG-firmwares

lg-firmwares.com

2) And can all h830 models get their bootloaders unlocked today (even if they are advertised as T-Mobile carrier locked)?

Thank you.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
1. Yes.

2. Yes.

Carrier lock only refers to SIM
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Thanks!

This is like climbing Mount Everest ; )

But you're helping people get to the summit.

🏔️💪
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] WhiteImpostor:
What's the difference between an H820 and H830?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Enough you can't use the h830 build.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Pizza_man432:
Hello there. I recently found a very well priced and good condition LG G5 in my country, But I think it's an H860. I really don't know if this ROM works on it or if bootloader can be unlocked if I purchase it or not. And I'm not even sure if it's a 860 or not lol. If it's a 860, can bootloader be unlocked/rom be installed? And do you know what kind of variants it could be considering my location (Iran)?

Sorry to take your time and thank you for your work!

Edit: Found another one and it is H831!. Is any device with MSM8996 supported?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Nope. Both 860 and 831 aren't unlockable.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Pizza_man432:
I saw somewhere that even the 830 and 850 are not unlockable. Is that true? If not is it free to unlock them?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yeah, LG shut down their portal, you could only unlock you factory unlocked version of devices, not any carrier device
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Hi! I've got a H850 rooted w/ stock Android 6.0 ROM ver 1.0

Need to update to 7.0 or 7.1 to use this Lineage version, but I do not have idea how to.

Please, is there a guide and links? I'm 60 old and this is quite hard for me.

Thank u all for your attention. Happy Easter.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jgeisler:
Hi, I (hope) I followed every step of the instructions (Stock 7.0, and all) precisely but unfortunately my H850 doesn't charge any more while the OS is booted. With the phone "switched off" it charges. Curiously, the battery icon shows the charging flash but the lock screen doesn't say "charging" and the settings entry says "not charging" and indeed, the battery looses percent. Also, my NFC does not work.

Does anyone have experience with these problems and a solution?

Thanks for keeping this wonderful device alive and thanks for helping.

Edit: I just reflashed Stock 7.0 and realized that in LGUP, I had to select "Update" instead of "Refurbish", because Refurbish was not allowed. May this be the source of the problem? If, will I be able to Refurbish once I relock the bootloader?

Edit2: I relocked the bootloader but that didn't enable Refurbish-ing. Nonetheless, I Updated again in the hope that maybe there would be something different with locked bootloader. But nothing changed. I unlocke again, flashed recovery and os again and again the phone doesn't charge :-(
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Sadly, this device utilizes android.hardware.radio@1.3 (or below).

This means that the March security bulletin - known as QPR2 - fully killed this device.

We (LineageOS) are trying to write a wrapper to make older radio HAL versions compatible with newer radio HAL versions.

With that said, we may or may not be successful and we're entirely unsure how long it would take.

So, sadly, for now, this device has 21 builds disabled - I have deployed one final February ASB unofficial build people can use in the intermediary (or you can use the final official build).

I will announce here if/when the device is re-added to the roster.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Ok slowly but surely continuing the process. I now have Android 7. Is that the same as nougat?

Also once Lineage is installed will it let me get message apps that require only more recent OS... specifically Session and SimpleX? My old phone can't download these, so I'd like to know if the new Lineage 20 will allow me to, if I am going to work through this.

Thirdly, does Fdroid or other non google app store types work on Lineage and have the 2 above apps?

Thanks again, this will help me stay motivated to persist if all checks out.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yes

Yes

Yes they work, I have no clue if they have those apps
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Thx. You da man.

Keep up the great work!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bunzo:
Hello, thanks for letting us know. Right now I have the latest unofficial version of LOS 21 published in February installed on my LG G5-H850. I haven't noticed anything strange in terms of operation (I don't use this phone much either, I have it as a backup) should I be affected or have any problem? Thank you in advance for your response and for the work you do keeping this device alive and still working.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, because you're on a February build.

You're not going to notice anything strange, the builds are just going to stop coming after the one that's posting today.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
What's the difference between the h830 and h850 models? Can the h850 have bootloader unlocked still like with the h830, and work in USA?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
if you can unlock it sure, but I'm unsure if it can be unlocked.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
That's a shame, considering how much effort was put into keeping this device alive. Fingers crossed, though!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
yup - agreed.

Me as well.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
All the more so it runs REALLY well with the recent updates. Dare to say it started to shine when 20 and the new kernel rolled out
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yeahhhh I know :/

We are trying to bring it back.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] jgeisler:
May I bump my question?

I went back to 20.0, still no charging.

Now I'm at 18.1 and charging works again. NFC sadly still doesn't and tap to wake, which used to work on 18.1, doesn't work either. Very strange, isn't it?

EDIT: To report back for anyone who has the same problems: I went back to 15.1. That fixed NFC. Re-upgraded to 18.1: NFC still working, battery charging. Re-upgraded to 19.1: NFC remained working, battery wouldn't charge. BatteryBot from f-Droid reported "Discharging" whenever I connected USB PC or charger. I then cleaned the contacts of the bottom part inside the phone. Now charging works. But it might have been fixed by the reboot (maybe plus the things I changed in the settings that are related to USB). I will report back if something changes again.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Please correct me if I'm wrong but it seems there are many more steps involved to flash LOS on the LG G5, or is it just that I have to take all these extra steps: i.e. get Android 7 & dirty cow etc because I am trying to unlock the bootloader to make it possible to flash LOS?

This raises a question...are there easier ways to flash LOS on other phones? What would you say is a very easy phone to install LOS on?

Thanks again. It might seem these are elementary questions, but it's a bit like learning a new hobby for me.