yashsingh1/xdaforums huggingface dataset:
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
wifi - works

bluetooth - works, and so does AudioFX, listening to music works great

ir blaster - not working |Confirmed working (with bug, can only blast one command before losing functionality, restarting device restores functionality for one blast) in latest 17.1 build|

encryption - not working, hangs after reboot on animation boot |Confirmed working in latest 17.1 build|

nfc - unknown, couldn't test since my G3's seem to have issues also

auto rotate - works

camera - works, front and back

torch - works

testing done on h830

quite the shame about how bugged the ir blaster is, my G3 running latest lineageos build blasts great.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
NFC works - G5 (h850) Yubico Authenticator, with YubiKey 5 NFC.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
whoops, reflashed between 17.1 and 18 a lot, during one of the quick setups of 18 I forgot to uncheck the box for lineageos custom recovery, but went back to uncheck it before finishing the rest.

TWRP still got erased and now with LineageOS recovery, whats the easiest way back to getting TWRP?

(I know I could reflash 20A and dirtycow, but i'm hoping for a cleaner way)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Just flash it using fastboot. Look at the lineage wiki entry for your device.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
Thanks for the reply, but arn't fastboot commands boot/flash not working on G5's (Allegedly only H830)? An example below of what happens (other users report similar):

fastboot flash recovery twrp_new.img
target reported max download size of 536870912 bytes
sending 'recovery' (23172 KB)...
OKAY [ 1.794s]
writing 'recovery'...
FAILED (remote: unknown command)
finished. total time: 1.816s
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Got me. Yesterday I used fastboot to install lineage recovery to my G5 / H850, but I don't know about the H830. Sorry.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Fixed encryption
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Cheers. I'll build tonight and see what happens.

As an aside, one of the niftiest new features of 18.0 (11.0) is that apps, e.g., sshelper, can now write to the public directories on the *external* micro SD. A very helpful change, and one which, by itself, makes changing to 18.0 desirable.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
If you self build you'll wanna pick https://review.lineageos.org/q/topic:%22eleven-fde-crash-fix%22
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Actually, there seem to be more issues with encryption, so probably stay away from it for a while longer
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I decided to try a dirty build, with your topic included in the repo update, since building that only takes 30 minutes or so.

1. After updating system, I tried encryption. I couldn't get pass the login. It deleted characters, wouldn't allow them to be entered, etc. Very random looking. I've seen this behaviour before. I tried powering down, but that wouldn't work either. I had to pull the battery.

2. I then formatted data, installed an older ROM, updated the ROM to the new one, then tried encrypting. That worked without problems.

3. I'm hesitant to try encrypting my main phone, as at first glance, it looks like data has to be formatted first. I think that what I'll do is try my spare phone again by formatting data, making changes to the system, adding a few apps, etc. Then try encryption again, and see what happens.

Best wishes,

Bob

PS I'm baffled about what happened the first time. I formatted data, changed settings, added a couple of apps, then encrypted. Worked fine.

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Thank you Bob for testing, it's a pity it doesn't work, but it's still impressive to see all the rest working.

Thank you for the complete report. Does the camera get worse or better with Lineage or the differences are negligible?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
I've never noticed a camera quality issue when using LineageOS in general (G3/G5), even on latest 17.1 all 3 cameras work fine (Front, Back, Back Wide Angle) when using Open Camera app
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
I finally tried Lineage 18, and I'm really impressed by the speed. I also managed to get EdXposed working with Riru Core 23 and the latest canary EdXposed (YAHFA). Unfortunately, there is still no way to spoof signatures on Android 11, and so MicroG can't be fully working.

Thus I had the bad idea of flashing back the stock firmware, but now only Lineage firmwares work properly, while stock roms can't make the camera and other sensors work.

I've tried to flash the KDZ package for my phone (H85030f_00_OPEN_EU_OP_1122), but Lineage broke something and not even a full wipe and KDZ flash can restore the functionality of the phone. I've also followed this guide to restore the phone, but I'm still with no way to make it work again with stock Oreo rom.

I tried also the complete Oreo 30f flashable package I've used several times, but still camera and more sensor refuse to work with original OS.

Is there a specific method for reverting the changes made by Lineage and get back to LG rom??

In the attachment I put a log of the errors, they are almost all related to camera.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
I've had torch/camera/auto rotate sensor issues before, and they were usually fixed by reflashing stock or complete package. Since you're H850, i'd recommend the complete package here , be sure to flash root afterwards or you'll lose TWRP. (Also hugely recommended to format local storage before flashing.)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Ok, for the moment I had problems with the LG-H85030f-Flashable.COMPLETE zip and with both the OPEN_EU and WIN_IT Oreo KDZs. I'll try the LG-H85020D-Flashable.COMPLETE zip, as you are suggesting, and I'll let you know.

But I still don't understand why flashing a proper KDZ is not enough. Shouldn't it overwrite every system partition with the stock (and supposedly working) files?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
It should, in my experience sensor issues was caused because of old/stale files not playing well with newer LineageOS builds, but you're reporting sensor issues on stock which is odd.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Yes, and I'm puzzled because of this... I'd expect the custom rom not to work properly, but the stock rom should work well, especially if restored from zero. I'm at 50% of the download of the complete flashable zip, once I finish I'll let you know if was able to restore everything. Otherwise I'll have to change the motherboard (I should already do it, as the fingerprint sensor contacts are broken).
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Did you use LGUP to restore the complete stock .kdz file??
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
I really want to thank you for the suggestions you gave me: I flashed the Nougat rom from Autoprime's archive, and I got back camera, torch and sensors. Moreover, I don't know if it's due to the clean install or to the Magisk updates, but now the torch works righ after installing Magisk even without flashing MK2000 kernel.

I've flashed the LG-H85020D-Flashable.COMPLETE.zip from TWRP, as I still had the unlocked bootloader and I could install TWRP from fastboot. Then, once I was sure that everything was working as expected, I used LGUP to flash the latest European KDZ (H85030f_00_OPEN_EU_OP_1122.kdz).

I'm sorry if I went off-topic, but I hope that if someone will ever have the same problem, he/she can find this conversation and save a lot of time. Thank you once again!
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] guytalluto:
If anyone can help with answers: What GAPPS package to flash with this one, or is it already included? Also, is root included or use Magisk or SuperSU?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
No root natively, so you have to use Magisk, or something. I don't know about GAPPS. OpenGapps seems not to have a version for Android 11 yet.

PS I've been using Lineage 18.0 for over two weeks now without any major problems. But, I don't use Gapps.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pedro1977:
Nikgapps worked fine when I tested it on 18.0 several weeks ago.

NikGapps - Browse /Releases/NikGapps-R at SourceForge.net

A Custom Google Apps Package that Suits Everyone Needs!

sourceforge.net
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
In an earlier post in this thread, I said that backups are an area ripe for improvement. Well, the method of backups has been improved, and I only discovered it today. With lineage 18.0 (haven't moved to 18.1 yet), SeedVault is available as a backup provider. I don't know how I missed this. It should have been announced with a fanfare of trumpets! It rectifies a major deficiency.

The Nextcloud storage didn't work for me. I suspect that this is because of the Nextcloud app, or how I host my Nextcloud server. In any case, the backup to external SD card worked perfectly. I haven't tried a restore yet. But will this weekend.

Well done, lineage os folks!

Best wishes,

Bob

PS. I had to replace the headphone jack. It took all of 15 minutes. Nice phone.

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
I believe a blog post is on the making regarding Seedvault. Note that it is also available on 17.1.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
New builds out

LineageOS 18.1 - Android 11 QPR1
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Cheers. Does one still have to pick the encryption fixes, or are they now included in the main sources?

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Still have to pick
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Latest status. H850. 18.1, with @aleasto 's encryption picks (actually, since they haven't been updated for 18.1, I just added them with a diff).

1. Everything I've tried seems to work, including encryption. (Or, at least, it is reporting the phone as encrypted.)

2. Bluetooth is a bit funny. Some devices don't automatically connect. Indeed, I have two instances of the same device type and model and one automatically connects and the other doesn't. It may be a power saving thing, or it could be that I need to "forget and re-pair". In any case, everything does connect without re-pairing, even if manually.

3. I did a backup of my spare phone, wiped data, and restored. This worked pretty well. WIFI account was restored, although I had to reboot for this to take affect. This is a huge step in the right direction. Unfortunately, system settings didn't restore, e.g., status bar and buttons. If these could be backed up and restored, that would be wonderful. But, accounts and app data are the main thing, and these seem good. My next experiment, when I get time, is trying to restore the backup from my main phone to my spare phone. If that works, gosh, I will be a happy camper.

4. I put in a new battery (Taeozi, 3200mAh), which is a yearly Christmas gift to myself. Zoom!

I think that I'm good to go for another year. (Given the SOC, a new battery, 4GB RAM, internal storage, and a 256GB SDcard, this is still quite useable.)

Thanks to the maintainers!

Best wishes,

Bob

PS I take it back. Some device settings were saved and restored. But not all.

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Thanks so much for your efforts @aleasto.

Is this stable enough to be a daily driver, or should I wait for the official releases? How far are we from seeing official builds?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
I use it for my daily bicycler (don't drive), and have been doing so for nearly three weeks.

If you use the unofficial version, you need to keep in mind that you'll have to change signing keys when you move to it, and when you move from the unofficial to official. It might be by flashing a zip, but could require formatting data.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] Roy360:
This is probably a silly question but will h830 ROMs work on the h831?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
H850, Lineage 18.1.

A slight problem with bluetooth controls. If listening to something, e.g., music or audio book, and I use (some?) bluetooth headphones, after I pause it using the headphone controls, it won't resume until I "wake up" the phone.

I tried turning off battery optimization for various things, including the app used for playback and bluetooth, but no change.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] amjz:
Did magisk works with you?

I cant install it from twrp it gave me error. Now i cant root my lg g5 using this lineage 18.1. any help?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] amjz:
Any help to install magisk on lineage 18.1?

I insall twrp. Then format then install lineage 18.1 then gapps. But when flash magisk gave me error cant be installed. Any help?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] :
Use Magisk v21 which adds support for Android 11.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
Testing in RS988, Magiks v21, nikGapps

All work include wide cam (gcam mod)

WIfi call work

Quick change (not working), i use other charger (AC 1800mA) witout fast change,

Regulate the intensity of the vibration (not work)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] amjz:
I installed it but not working.

I got this message in root checker.

I'm using twrp latest version to install magisk 21.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] djskribbles:
Anyone's camera failing to work the odd time? This happens with official 17.1 too. Stock and older LOS builds didn't have this problem for me but I can't say exactly when it started happening as I was running stock for a while.

Can't say exactly what I do that 'fixes' it, but usually I force stop, clear cache and keep re-launching until it works again. This happens in Gcam mod and snapchat.

I have an RS988.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
After some substantial BT merges, 18.1 no longer builds. It could be a local problem, but I can't find it. I tried a clean build with the same results.

FAILED:
platform_testing/build/tasks/tests/instrumentation_test_list.mk: error: continuous_instrumentation_tests: Unknown installed file for module 'BluetoothInstrumentationTests'
In file included from build/make/core/main.mk:1331:
In file included from build/make/core/Makefile:5626:
In file included from platform_testing/build/tasks/continuous_instrumentation_tests.mk:27:
build/make/core/tasks/tools/package-modules.mk:80: error: done.
19:58:08 ckati failed with: exit status 1

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
I think your vendor/lineage is not up to date
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
Cheers! After a closer look, I find that you are correct. Operator error on my part. A change on my part had as a consequence that vendor/lineage wasn't being updated properly.

Best wishes,

Bob

PS I should have investigated locally more thoroughly before posting.

RLF
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
Deleted
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] tremalnaik:
Have you checked in Magisk Manager's "Root access" tab if Root checker is listed? In that case, even if you can't see the popup asking for root permissions, you can enable root access for listed apps.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] xneoenx:
Question : I manage to get past SafetyNet checks, but looking at DRM Info post install, it looks like there's nothing Installed. Widevine is missing + ClearKey. As a result, I can download Netflix from Play Store, and anywhere else, install it just fine. But launching the app itself, Netflix says the device is not supported.

Is this the expected behavior?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] bicho2015:
Passed SafetyNet successfully by flashing safetypatch v3 by hackintosh5 and deleting the line 11 of the file post-fs-data.sh located on data/adb/modules/safetypatcher/
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
NFC not work in RS988 (PN548)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
New build out

Updated LineageOS apps and frameworks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] hendavi:
Download & install already.. Great job, thank you..
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] amjz:
How to update?

Install it using twrp? Will not remove my apps and data? Do i need after update to reflash magesic again?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
Install with TWRP recovery, without wipe system or data,

later, reinstall magiks v21.2

Reinstall nikgapps if i had it installed
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] andriusst:
Could someone please tell me if NFC works on this build? Thanks
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] rfrazier:
NFC still works with H850. Tested with Yubico. Local build of 05Jan2021, with no changes to NFC section.

Best wishes,

Bob
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
edit: for fix vibration intensity regulation, add CONFIG_LGE_QPNP_HAPTIC_OV_RB=n in defconfig of rs988 (arch/arm64/configs/lineageos_rs988_defconfig) in the kernel

or compile: https://github.com/darkalexpp/lineageos_kernel_lge_msm8996
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
In RS988 not work NFC.

com.android.nfc service fails to turn on, in short nfc does not turn on
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
Does it work for you in the latest lineage-17.1 official build?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] DrowningInFreedom:
Just wanted to note that I also noticed this behavior in latest 17.1 (h830) and is not exclusive to 18, I could play/pause music using my bluetooth earbuds, but (sometimes) unless music is already playing, the command will not go until screen is woken up (but still locked)
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
I have not tried the 17.1 in my rs988,

there is no official version of LOS 17.1 for rs988 only unofficial by x86cpu

you could try the unofficial version 17.1 of x86cpu to see if it works
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
What? https://download.lineageos.org/rs988
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
sorry my mistake

I just tried the official 17.1 but the nfc does not work either, it does not turn on and I get this log:

01-07 05:39:20.256 1026 1143 I ActivityManager: Start proc 2635:com.android.nfc/1027 for added applica
01-07 05:39:20.530 2635 2635 I NfcService: Starting NFC service
01-07 05:39:20.588 2635 2635 I : [0107/053920.588041:INFO:NfcJniUtil.cpp(47)] NFC Service: loa
01-07 05:39:20.589 2635 2635 I com.android.nf: ConfigFile - Parsing file '/etc/libnfc-nci.conf'
01-07 05:39:20.589 2635 2635 I com.android.nf: ConfigFile - [NFC_DEBUG_ENABLED] = 0
01-07 05:39:20.589 2635 2635 I com.android.nf: ConfigFile - [NFA_STORAGE] = "/data/vendor/nfc"
01-07 05:39:20.589 2635 2635 I : [0107/053920.589714:INFO:NfcAdaptation.cc(490)] NfcAdaptation
01-07 05:39:20.590 453 453 I hwservicemanager: getTransport: Cannot find entry android.hardware.nfc@
01-07 05:39:20.601 2635 2635 I : [0107/053920.601705:INFO:NfcAdaptation.cc(499)] NfcAdaptation
01-07 05:39:20.799 2635 2635 D RegisteredNfcFServicesCache: Dynamic System Code, NFCID2 file does not
01-07 05:39:20.801 2635 2635 D RegisteredNfcFServicesCache: Service unchanged, not updating
01-07 05:39:20.801 2635 2635 I : [0107/053920.801426:INFO:RoutingManager.cpp(993)] setNfcSecur
01-07 05:39:20.811 2635 2796 D NfcService: checking on firmware download
01-07 05:39:20.811 2635 2796 D NfcService: NFC is on. Doing normal stuff
01-07 05:39:20.811 2635 2796 I NfcService: Enabling NFC
01-07 05:39:20.835 2635 2800 E libnfc_nci: [ERROR:gki_ulinux.cc(98)] gki_task task_id=0 terminating
01-07 05:39:20.838 554 554 D android.hardware.nfc@1.1-impl: Nfc::open Enter
01-07 05:39:20.839 554 554 D NxpExtns: find found NFC_DEBUG_ENABLED=(0x0)
01-07 05:39:20.840 453 453 E SELinux : avc: denied { find } for interface=vendor.nxp.nxpese::INxpEs0 tclass=hwservice_manager permissive=0
01-07 05:39:20.841 453 453 E SELinux : avc: denied { find } for interface=vendor.nxp.nxpese::INxpEs0 tclass=hwservice_manager permissive=0
01-07 05:39:21.073 554 554 E NxpHal : FW download denied while SPI in use, Continue NFC init
01-07 05:39:21.091 554 554 E : isModified Unable to open file '/data/vendor/nfc/libnfc-nxpCo
01-07 05:39:21.094 554 554 E : isModified Unable to open file '/data/vendor/nfc/libnfc-nxpCo
01-07 05:39:21.444 554 554 E NxpHal : FW download denied while SPI in use, Continue NFC init
01-07 05:39:21.902 2635 2635 D NfcService: MSG_APPLY_SCREEN_STATE 8
01-07 05:39:36.538 2635 2635 D RegisteredNfcFServicesCache: Service unchanged, not updating
01-07 05:39:47.625 1026 3406 I ActivityTaskManager: START u0 {act=android.settings.NFC_SETTINGS flg=0x14000000 cmp=com.android.settings/.Settings$AdvancedConnectedDeviceActivity} from uid 10103
01-07 05:39:47.873 3433 3433 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.NfcPreferenceController
01-07 05:39:47.876 3433 3433 D PrefCtrlListHelper: Could not find Context-only controller for pref: com.android.settings.nfc.AndroidBeamPreferenceController

edit: also try with the stock of lg v21d and only in the stock the nfc works
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] aleasto:
So I'm gonna attribute that to bad firmware.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
How can i fix it?

edit: in the stock kernel the nfc used is pn547 and in LOS it is pn548, could this be the problem? Or that the base of the system before installing was stock v21d?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] disk@tek@:
JFI: NFC works perfectly on official LOS 17.1

I use it daily.

Keeping an eye on this thread still confused if I dare to upgrade.
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
@disk@tek@ hello, what lg g5 model do you have?

and if it is an rs988: what stock rom did you have before installing the LOS 17.1?

I had the v21d

It is possible that on your rs988 phone if the nfc works, and you would help me a lot by testing if it works in LOS 18.1
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] pupido:
Can I flash Magisk v.21 after flashing ROM and Gapps?
[LG G5 ROMs, Kernels, Recoveries, & Other Developme] darkalexpp:
yes, i use magiks v21.2 and nikgapps (safetynet ok)