yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Pixels are easy. Yeah this device is hard to install on.

But not too bad.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
A generic question: some articles I’ve come across say one should steer clear of phones and alternative OS that don’t allow relocking the bootloader after unlocking it to flash the new OS. They say if you don’t relock your bootloader back up it will be easy for others to steal your info, and that banking apps don’t work as precaution agains this vulnerability. Is this accurate?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sand23:
Relocking the bootloader will erase all user data (just like unlocking will erase all user data too) i.e stock or other OS is wiped. An unlocked bootloader is required for most phones when installing an alternative firmware OS. It is what it is unfortunately!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] CodexAG:
Thanks. So relocking the bootloader would actually undo the alternative OS flash then?

Can you comment on if unlocking the bootloader to flash LOS but then not relocking it makes the phone much more unsafe than just keeping the Android stock OS? In other words does this whole alternative OS thing make our phones more vulnerable to hacks?

Thank you.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Af0x:
Hi, anyone knows if the h850 will work with this adapter:

USB-C Adapter

Especially in regards of the HDMI functionality. Thanks!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] shhnedo:
Phone has usb 3.0 so bandwidth for some basic hdmi picture output should be enough.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Af0x:
I just bought the phone and wanted to unlock the bootloader to find out that the related LG website was shutdown. Is there any other way to unlock the bootloader?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sand23:
You've missed the boat I'm afraid, as far as I know there is no other way to unlock the G5 bootloader - no hack, no brute force solution etc. Sorry for the bad news...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Guybrush.d:
I don't know if it will work, because i have this phone since long time and in January i installed a custom rom for the first time because of the LG Friends i own, so i don't remember if it was already unlocked or not, anyway you could try the Lineage OS installation instructions and check if it works or not, just give a try, here the direct link for the H850 version:

Install LineageOS on h850 | LineageOS Wiki

wiki.lineageos.org

Ciao!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Hi! Got installed 21-20240316-NIGHTLY ver. All fine and looks good! Thank U! But just a problem, NFC doesn't work, any idea?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sand23:
A solution for working NFC on LineageOS 20 or 21 is to start from an earlier Lineage version (I used 15.1) and upgrade to the later version.

Assuming fresh start from stock Nougat 7, this is how I did it.

1. Flash recovery (I used Lineage recovery from 18.1), sideload Lineage 15.1, then sideload Gemini nfc fix, a driver for nfc - https://androidfilehost.com/?fid=962339331458997637#google_vignette - I found 15.1 a bit buggy so it took a few attempts because of phone freeze/restart when trying to enable MTP connection/USB debugging for the next upgrade - if you have the same problem be patient and it will eventually work.

2. Flash the correct recovery for the later LineageOS version of your choice i.e 20 or 21.

3. Format data/factory reset.

4. Sideload Lineage 20 or 21, optional MindTheGapps etc and restart the phone. Now you should have LineageOS 20/21 with working NFC! You can also install an app like NFC check just to make sure you now have working NFC, but everything should be fine.

Good luck!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] TheStylus5Gmodder:
When flashing recovery, I'm getting the

FAILED (remote: 'unknown command')
fastboot: error: Command failed

error.

I've downgraded to Nougat.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] lusagad:
Ta

Thank you very much for your detailed explanation and time. I'll follow your help to get it ok.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
can i install this on lg g5 android 8?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
nope, you need to start from android 7. downgrade.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
omg...how?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
KDZ and LGUP
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
any tutorial links?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
nope, differs per variant. Best of luck.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
can i use any other lineageOS version on my lg g5 android 8?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
how can i find out if my bootloader is unlocked or not?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Nope, you really should figure out how to downgrade, it's not all that hard.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Did you ever unlock it? If not it's locked
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
does bootloader unlocked means that i can access the recovery mode? because after years i realize that pressing volume down and power button won't lead me to recovery.

this one led me to factory reset menu https://xdaforums.com/t/lg-g5-cant-boot-into-recovery.3614988/#post-72507984
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, read up farther.

It states whether you can flash/boot unsigned images.

And no LG device can directly access recovery, you have to go through that menu, once a custom recovery is flashed it will ignore the rest command though.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
let's say i buy an lg g5 with lineageOS 21. can you use adoptable storage? can somebody please take a look if adoptable storage is available?

pros and cons of lineageos:

+ newer android with updates (20 % of my apps need android 11 or above, had to buy a new smartphone)

+ can continue with device functions such as NFC

- no adoptable storage is not good

- can't use device fucntions like NFC anymore (i use cam, wifi, nfc, speaker, ... daily)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
No, we don't support adopt ale storage for a reason, it's an awful experience lol. Plus 4.4 is touchy about support it at all.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Miottolo:
Installed latest unofficial for h850 but USB tethering is not working at all... I can turn on the toggle while connected to the computer but in Windows11 is recognised just as an usb device named LG. It was working fine with stock rom...
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] dennyhhh:
I have h850.

So, the other day I was on LOS 18.1, NFC never worked and I have no memory of it's previous flash history. I thought, perhaps NFC works on newer LOS now. I updated to twrp-3.7.0_9-0-h850 and clean flashed lineage-21.0-20240316. Lo and behold! NFC works! So I thought, lets do it properly now, following all instructions to the letter, to avoid future headaches. I flash kdz, LOS recovery, and LOS 21. NFC does not work. I scratch my head, I start reading threads, employ some trial and error and I look for downloads for about a week. Turns out you need to have LOS15.1 on there before you put any later version of LOS on there. You can clean flash it. Otherwise NFC won't work.

The proper way to install:

Flash stock android 7 (Latest android 7 kdz I could find.)

Boot system, check NFC functionality after flashing.

Wanna be safe; Use LGUP & UPPERCUT to flash. (Windows only). Spoiler content hidden.

You want LGUP_Store_Frame_Ver_1_14_3.msi & UPPERCUT_1.0.0.0.zip linked to in this thread this thread.

Flash LOS recovery 21 (I used LOS-MicroG, But you can use the official one. Spoiler content hidden.)

$ adb reboot bootloader

$ fastboot flash recovery recovery.img

Now hold vol down+power.

$ fastboot reboot

Release and re-press power when LG logo comes up.

Sideload LOS 15.1 (I used this one. The newest.)

Format data, system, cache before sideloading.

Boot system, check NFC functionality.

Sideload LOS 21 (I used LOS-MicroG, But you can use the official one)

Format data, system, cache before sideloading.

Boot system. Done.

If you want Magisk, install the apk and patch a copy of your LOS boot image and flash that.

Notes:

If you are already on LOS 21 without functioning NFC and you followed official instructions when you installed that one; you can start from step 3.

The kdz linked above matches with the hash on lg-firmwares.com (7678e5fbe47304f113e2fc26301a50f6).

I could not find an offical LOS 15.1 to try. So I used Bernie_nix's build, linked above.

In my trial and erroring; TWRP-3.7.0_9-0-h850 seemed to work just as well. But I didn't test that at all steps.

As far as I can tell; the reason you need Android 7 initially, is for drivers for baseband and modem.

Prerequisite: Your bootloader needs to be unlocked. To do that you need to go back in time and request a device specific key from LG. Yea, I know. LG sucks.

If you are unsure if you already did that; you can check by booting in to bootloader mode and issuing fastboot getvar unlocked.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bunzo:
Hello, it worked on my LG G5-H850 that already had LOS21 installed and coming from the latest official Android 7 (I followed your instructions starting with the 3rd point) and whose NFC was there but it did nothing - it did not activate. Thank you!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sand23:
If NFC still doesn't work at all or is hit and miss at best after upgrading from LOS 15.1 to 20 or 21, it's probably a driver problem. See my earlier post for further info and the download link to the LG G5 NFC driver.

Note. If the NFC setting is not showing an enable/disable button on your phone i.e. just showing blank, the driver won't change anything. You must have NFC present on the phone even if it isn't working as it should for the NFC driver to work. If you follow the instructions as per my earlier post, NFC should work without any issues.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bunzo:
It is a misunderstanding, now NFC is working (after following the instructions of the post where I was answering). It did not work before having already been with LOS21 and after starting from the last official version of the Android 7. It was fixed by passing through the LOS15.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] diedmatrix:
A lot of devices seems to be removed from the offical lineage os site, including the H850, why? Cant those files stay there so we can download them even if developement is no longer going on? where to get the latest files now? Tried via https://web.archive.org/ but download keeps crashing.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Sand23:
You should be able to find what you want here;

https://lineage-archive.timschumi.net/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
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.

what does that mean?

however i will put my lg g5 with android 8 in the cupboard. google wallet droped suppord for android 8 and surprisingly most people always the newest android

Android (Betriebssystem) – Wikipedia

de.wikipedia.org
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
It meant what it says.

The device is dead for now.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
which device? your personal lg g5?

does this ROM still work on a rooted lg g5? does older roms work like lineageos 20?

i think it's because of qpr2. i've never heard of it before.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Dude, the wiki says it and so does the post you quoted.

Support for this device is dead. The Android quarterly release (QPR2) killed support for too many parts of this device to survive.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
Step 6-> Now go the LG developers unlock site Link Paste the IMEI no, and copy Device ID Confirm.

In a few Minute, the unlock.bin will be emailed to your email id. Download unlock.bin to a computer.

Step 7-> Copy unlock.bin to “Latest-Fastboot-Adb-Tool” folder .

Step 8-> Go To Cmd Window and paste this command.

This command will unlock your phone also factory reset your phone so do a backup when doing this.

from: https://www.gizdev.com/install-twrp-root-lg-g5-h850/

is this true? the command

factory resets a lg g5? i just want to know if i missed another serious moment in my life.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yes, it does.

Not sure what that has to do with anything we talked about.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
Not sure what factory reset on a lg g5 means but if it deletes my calender, especially todo-list (tasks) and maybe the contacts (telegram saves the contacts on its own but i don't own the phone number anymore, contract ended at least 10 years ago, but it was nice 10 € for allnetsmsflat and 500 mb data (yes just 0,5 gb) therefore all my contacts are lost but now i will port telegram and especially whatsapp to a tablet i created with this https://xdaforums.com/t/discontinue...-v4-galaxy-tab-e.4042095/page-8#post-89124856 and a huge microSD card and with adoptable storage i don't have to worry for space anymore, i prefer whatsapp and telegram on windows more (just like icq earlier) however it's nice that telegram not only can be transferred to microsd card but also downloads everything in a separate folder called /Telegram in data and storage on microsd under settings however...) if todo-list, contacts and calender (especially during corona) had been deleted

i would jump from the highest bridge i can reach.

therefore rooting an lg g5 isn't paying out for me.

if future says "android support for specific device just 2-3 years" and everyone would root their smartphones right in the beginning, it's no problem because in the beginning smartphones don't have any specific data. the only problem i know is that warranty is void. or wait 2 years, then root, because warranty is already lost (stupid idea i know).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yes, as the wiki details very clearly it wipes all data
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
But as an additional note, you really need to read the documentation, because this device isn't even unlockable anymore, you missed that train 2 years when LG shutdown it's portal to generate the unlock file.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] neudmeu:
i know i know. i missed the train but found a nice car (2nd hand)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Unofficial build users:

For the next build you will need to update by hand in recovery and select "Yes" when prompted about signature mismatch.

I have started signing my builds again, and set it up so that you can migrate without wiping data, but you must select "Yes" to ignore signatures once to swap to a signed build.

Enjoy!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
Can I update the last official build this way? Or should I format data / factory reset before pursuing the unofficial build?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Yeah you can just update.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] ToltecCat:
I think there might be something wrong with the last unofficial build (2024-07-05). Installation is successfull, but the phone ends up stuck in fastboot mode upon rebooting to system. After several failed attempts I've tried the previous build (2024-06-23) and that one works fine.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
I'll look
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
July builds pulled, the were broken
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wr4i7h:
Would it be possible for the G5 to be officially supported again under LineageOS 20 only, instead of 21?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Unlikely.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Wr4i7h:
Given how this device's old HAL is incompatible with Android since QPR2, how are you keeping your unofficial builds going? Are you cherrypicking changes that don't affect compatibility?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] npjohnson:
Those are just February ASB pinned with some newer devices specific fixes each month - it's effectively permanently the Feb codebase for now.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
Google Pixel 4

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

Introduction:

This is the Official Lineage OS 21 thread for the Google Pixel 4.

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.

flame - Official builds​

flame - My unofficial with Google Apps/Pixel goodies included. OTA's roll roughly once a month. Support not guaranteed or implied.​

If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

Known Bugs:

Face unlock is broken, and the fix isn't clear, so has been exempted in the LineageOS Charter, and is noted on the Wiki.​

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.​

Firmware is shipped in the ROM package for this device, so no need to worry about updating it on your own!​

Kernel Source: https://github.com/LineageOS/android_kernel_google_msm-4.14
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] oldchufa:
Not seeing any 21 builds for the regular Pixel 4, only the 4XL.

Edit: I see it now thank you!
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] khaberz:
Update of the Unofficial Build from LOS 20 works exactly as documented in the Wiki. Thank you @npjohnson for the new version and for keeping our Pixel 4 alive and kicking!
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] NikaGelo228:
Hi dev ! I tried your LOS. Seemingly everything works as advertised. Although, idk if its my device only but I can't install MindTheGapps A14 package because of low system memory and A13 because it doesn't wanna go on A14.

Really looking forward for a somewhat stable release, ready to test out some things. Tell me the preferable log or bug report way so I can be helpful. Cheers :)
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
If you read the OP, this build comes with gapps. that's why there's no room. Just flash the ROM. the linked wiki says so too.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] NikaGelo228:
Oh, that explains a couple of things. I see on OddSolutions we have some images (vendor, dtbo, super_empty). Are those recommended to flash before flashing LOS from stock ? Or maybe not? Only dtbo? Anyways, I flashed the unofficial A14 package, but it says that I couldn't sign in on Google account (after offline setup). If I try online setup, sign in for restore data (or only for account, doesn't really matter with backup option we have nowadays), it just loads without end. I tried both 3G, 4G and different WiFi networks. If we can figure this out, I'll pretty much daily drive it without locks screen waiting for 3D Face Unlock implementation.

Apart from those questions, thank you very much for your dedication of time, money and nerves for our community. I wish you a happy new year and hope you are doing well. If not that's life bro, everything can be relative, temporary and changeable, like our device software. Keep it going, I like your approach :)
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
Again, the wiki details it all. You need to format data as part of the process and all should work fine.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] CeskyVencel:
Could you answer to my reply with explanation why the face unlock isn't working? I am curious, take your time of course, I am grateful for your work. And excited for updates! GL
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
I

It uses a proprietary blob that is broken on Android 14:

```E Camera3-OutputStream: getBufferLockedCommon: Stream 0: Can't dequeue next output buffer: Connection timed out (-110) D ACameraDeviceVendor: Device error received, code 3, frame number 12, request ID 0, subseq ID 0 physical camera ID I BiometricsFace@1.0: CameraHelper::AwaitCaptures: unrecoverable error/cancel observed```
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] CeskyVencel:
Okay, thats a shame, hopefully it can be somehow fixed.. And I was also curious it seems that battery can only be charged to 81% then it stops.. is it some A14 feature? Or what is this.. its pretty annoying on P4 tbh :D
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
You turned on charge control in battery settings. Turn it off.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] CeskyVencel:
Oh thats true, thanks and sorry 😆
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] NikaGelo228:
Sure, excellent essential page with every detail I would need, thumbs for your adaptation and LOs team.

I have strictly followed the instructions, coming from latest stock firmware on Flame (both slots). It seems like I couldn't sign in for Google account because it loops on buffering even before I can log in (Add account screen). If you wish, I can send you logs, just tell me where.

Thank you @npjohnson !
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
skip, add from settings later? Or wipe data and try again.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] NikaGelo228:
Tried. Set up with LOS setup and gone from settings. I will try a couple more tries alternating with some universal fix methods and will come back with results.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] NikaGelo228:
I don't really understand how, but I managed to boot the ROM and I'm using it for a couple of hours.

Well... I think it's amazing, beyond anything you can find for this device here and anywhere in this moment.

Used in combination with a recent custom kernel you can achieve almost strangely good battery life and even pass play integrity o_o . Very well optimized.

Performance and thermals great, things you can expect from a quality LOS build from a good dev.

I think besides face unlock, the only (yeah, only) thing I noticed is that weather doesn't show up in At A Glance neither on home screen or lock screen.

@npjohnson Thank you !!
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
It is intended that it doesn't show up, Smart space does not work.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] NikaGelo228:
I have one last question, that bothers me since the first time I set up my device.

Is there any way to get that orgasmic vibration pattern you feel when the circle bounces during the setup welcome page? Sometimes I feel it when the phone goes in hibernation and I turn on the flashlight with edge sense. That would be awesome.
[Google Pixel 4 ROMs, Kernels, Recoveries, & Other ] npjohnson:
I used to spend hours making that work every version but it was hard this version lol.

I'll try but no promises.