yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] x86cpu:
It won't be fixed unless I can get a log. See the unofficial thread post 3. I have not been able to replicate that issue. It's also not a good idea to run permissive either.

---------- Post added at 11:35 PM ---------- Previous post was at 11:33 PM ----------

I haven't heard of any Bluetooth issues even in the unofficial thread. Logs are required to even attempt to fix it.
[LG V20 Guides, News, & Discussion] Landloord:
I'll try getting my hands on the log. Yeah, it's absolutely expedient that selinux is enforcing. Once again, thanks so much, your work is so much appreciated.
[LG V20 Guides, News, & Discussion] x86cpu:
Even in permissive it will show up in the logs. Just please when you post logs try to indicate again what the issue I'm looking for again is.
[LG V20 Guides, News, & Discussion] Landloord:
Alright, I sure will.
[LG V20 Guides, News, & Discussion] holistone:
Posts #16 and #23 describe what seems to be the same bluetooth problem. I'll try again with a different bluetooth headset and attempt a log.
[LG V20 Guides, News, & Discussion] x86cpu:
Yes.. There we issues early on, but it was resolved, as well as calls on speakerphone.
[LG V20 Guides, News, & Discussion] princedede:
Hello. Please can u hook me up with the video playback code fix? Thanks

---------- Post added at 10:44 AM ---------- Previous post was at 10:42 AM ----------

Hello boss! Thanks for your good work! Please can u write the video playback code fix?
[LG V20 Guides, News, & Discussion] Landloord:
It's been merged into yesterday's official build and all future builds so nothing to worry about, thanks to the dev. No need adding the line manually anymore.
[LG V20 Guides, News, & Discussion] Landloord:
Camera and sensors only work on permissive selinux. The zip contains two logs, stock lineage kernel, 04/04 on h910
[LG V20 Guides, News, & Discussion] ya2kw:
LG V20 (Global) H990 issues

I installed clean from android 8 stock ROM.

I downgrade to Android 7 with patch level before December 31.

Then I used DirtySanta to root, flash TWRP and then installed:

lineage-17.1-20200404-nightly-h990-signed

open_gapps-arm64-10.0-pico-20200402

h990-kernel-v0.2.4

Magisk-v20.4

My current issues-

There wasn't camera app and didn't work with any another app.

WiFi Calling isn't available- no option in call settings.

2nd screen is only notch.

still didn't try Bluetooth.

Thanks all
[LG V20 Guides, News, & Discussion] EnterTHEvoiD:
Try stock kernel (one that comes with ROM), or flash gamma kernel
[LG V20 Guides, News, & Discussion] alexp1289:
Are builds only happening once a week or something? Just curious when to expect a new official one. Haven't seen a new h910 build for a while.
[LG V20 Guides, News, & Discussion] sajadzarepour:
My h990ds shutting down in 20 to 30 percentage of battery.

Kernel is gamma v20
[LG V20 Guides, News, & Discussion] emanuel:
I think i had a similar problem, replacement if battery fixed it.
[LG V20 Guides, News, & Discussion] emanuel:
Deleted
[LG V20 Guides, News, & Discussion] Duhjoker:
i have a question that i have been googling for days and cant find an answer to. Im hoping you have an answer and a fix. I have been checking out and installing the various lg v20 h910 roms that are put out by lineage and i want to know why i cant install some of my favorite lg and qc apps like tje remote apps qmemo+ really any apps that came native on the phone

i would also like to know why i have to use a 3rd party pc program to have the zips turned into actual system.img files and then flash them using fastboot. Every single lineage product i have tried to load via twrp using a zip fails. says im trying to load a zip for the wrong device. kernel zips and all.

also and i dont know if this has been adresses but to get rid of the static and have a smoother nicer looking boot for the h910.... if you want fingerprint scanning to work you have to downgrade to nougat. once downgraded you get the nicer looking bootloader unlock screen and no static.

i have also made a flashable zip for the h910 that includes the stock partitions from nougat to keep your finger print firmware with the los 16 system image boot and recovery. this can be done with any of the los system images. just wipe system dalvik cache, format data and go. plus i made the image after booting with flashed gapps so its even easier to get going.

now im a developer too and have the lg v20 repos downloaded for nougat and oreo. what can we do about getting the infrared going
[LG V20 Guides, News, & Discussion] Stewge:
Hi Guys,

I'm currently running the H990DS and everything seems to be fine except for the Fingerprint reader. I've scoured the entire thread (as well as the Unofficial thread) and can't find any reference on how to get the damn thing to work. All the references are for the other models (H910 etc).

I've gone with a relatively clean install. Original rom was Rooted Oreo (stock rom). Wiped everything+data -> Latest build -> Gamma Kernel + Addons -> GApps -> Magisk -> permissive zip (tried this to see if it would help).

Is there something I'm missing?
[LG V20 Guides, News, & Discussion] cnjax:
The answer is in the post right before yours
[LG V20 Guides, News, & Discussion] EnterTHEvoiD:
Definitely battery, if you can, get the perfine 4100mah. Takes the same space as OEM, lasts for longer and is reliable
[LG V20 Guides, News, & Discussion] eaburger:
What version of TWRP you are using, I had the same issue and that was I had a old version of the TWRP, in a long ago post (that was quoted some day ago, like 3 or 4 pages before it) is the link for the last versions of TWRP for the V20. the thing is old version of the TWRP do not read correctly the model of the phone and always says the "is not the correct version/model", but after updating I could install directly the lineage .zip files using updater or directly a dirty install (I use the last one, to install also the Open GL, Vulcan, and the Gamma Kernel with the OS update).

My version of TWRP is 3.3.1-1 and to download this TWRP version, the link is (not only for the H990DS) : https://androidfilehost.com/?w=files&flid=301109 and if somebody want the step by step to install he LOS 17.1 the link of my post is: https://xdaforums.com/showpost.php?p=82215443&postcount=89 take in consideration that the correct Gamma kernel (V20 for LOS 16.1) is in this post not the original one: https://xdaforums.com/showpost.php?p=82216201&postcount=91

I hope this help you!
[LG V20 Guides, News, & Discussion] gh0st:
Does the LOS kernel have the wireguard module by default? If not, is there a kernel that works with this ROM that has the wireguard module?

Thanks
[LG V20 Guides, News, & Discussion] fatmaster:
I have been googling furiously to figure out how to get encryption enabled on this rom. Has anyone been successful yet?
[LG V20 Guides, News, & Discussion] mcsmart:
All you need is Nougat firmware. You can downgrade in recovery using kdzwriter and "-mc" switch. All you need is the latest Nougat KDZ for your device.
[LG V20 Guides, News, & Discussion] AlexOD42:
Hey folks!

H990DS user here, below are a few learnings in case it helps anyone.

After moving from stock to Lineage 17.1, I noticed the following:

- Fingerprint sensor worked automatically after a clean flash.

- Sensors (torch, rotation, camera, etc.) did not. After much experimentation, clean flashing and booting one of X86CPU's Lineage 16 builds has resolved this permanently. I can now clean flash the latest builds of Lineage 17 with sensors working. Not sure if this was coincidence or not?!

- I don't yet have the second rear camera working but will keep trying.

Device encryption:

In 17.1, this failed with hwservicemanager: getTransport: Cannot find entry vendor.qti.hardware.cryptfshw@1.0::ICryptfsHw/default in either framework or device manifest.

I've made the following build additions to device/lge/msm8996-common/manifest.xml

<hal format="hidl">

<name>vendor.qti.hardware.cryptfshw</name>

<transport>hwbinder</transport>

<version>1.0</version>

<interface>

<name>ICryptfsHw</name>

<instance>default</instance>

</interface>

</hal>

And added to device/lge/h990/device.mk

# CryptfsHW

PRODUCT_PACKAGES += \

vendor.qti.hardware.cryptfshw@1.0-service-qti.qsee

To build successfully, I also needed to use TheMuppets in .repo/local_manifests rather then copying device binaries:

<project name="TheMuppets/propietary_vendor_lge" path="vendor/lge" depth="1" />

After compiling, encrypting with this build then gave me Error::ioctl call to create encryption key for usage 3 failed with ret = -1, errno = 14.

However, after flashing Open GApps Nano, I can now encrypt successfully. I'm still not clear on the exact steps but am guessing the Google boot experience sets the cryptpw properly to allow the key to be generated?

I've submitted #278072 in Gerrit to hopefully merge this in for future builds.
[LG V20 Guides, News, & Discussion] Stewge:
I wondered if this was the case, but I couldn't manage to get it to work with a Nougat KDZ in this manner.

That being said, I did manage to get everything going with a clean start from scratch. LGUP -> oldest KDZ 2016) -> DirtySanta -> LineageOS17.1 -> Restored Data partition.

Only niggle I've got now is the "Google Play Services" keeps saying that it needs permission to access SMS storage, but it doesn't show in the permissions manager. Doesn't seem to have any real impact on the system however (presumably it's required for SMS backup but I use Titanium for that anyway).
[LG V20 Guides, News, & Discussion] Mysticblaze347:
No signal/service...ls997
[LG V20 Guides, News, & Discussion] alexp1289:
Do you think this will fix the sensor issues for all LG V20 devices? Thanks for looking into this ?
[LG V20 Guides, News, & Discussion] AlexOD42:
Great question! It was a clean flash of lineage-16.0-20200409-X86CPU that lit everything up for me (quite literally in the case of the torch!) available from https://xdaforums.com/v20/development/rom-unofficial-lineageos-16-0-lg-v20-t3869244

Worth a try with your device variant I'd say. I still don't fully understand how but haven't had any sensor problems ever since for 17.1 without any SELinux changes or similar needed.
[LG V20 Guides, News, & Discussion] gh0st:
Pulled this from adb when playing a FLAC file using UAPP, does this mean DAC is working?

Output thread 0x7c68caa000, name AudioOut_55, tid 7561, type 1 (DIRECT):

I/O handle: 85

Standby: no

Sample rate: 96000 Hz

HAL frame count: 7680

HAL format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)

HAL buffer size: 46080 bytes

Channel count: 2

Channel mask: 0x00000003 (front-left, front-right)

Processing format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)

Processing frame size: 6 bytes

Pending config events: none

Output device: 0x8 (AUDIO_DEVICE_OUT_WIRED_HEADPHONE)

Input device: 0 (AUDIO_DEVICE_NONE)

Audio source: 0 (AUDIO_SOURCE_DEFAULT)

Timestamp stats: n=127 disc=1 cold=1 nRdy=0 err=0 rate=0.999758 jitterMs(ave=0.0172957 std=0.92043 min=-2.63088 max=2.3923) localSR(95996.8, 6.75558e-08) correctedJitterMs(ave=0.0257524 std=0.225666 min=-0.26468 max=2.3148)

Timestamp corrected: no

Last write occurred (msecs): 128

Process time ms stats: ave=0.700366 std=0.327078 min=0.119948 max=1.81318

Hal write jitter ms stats: ave=-0.622443 std=6.48345 min=-79.6893 max=3.29475

Threadloop write latency stats: ave=262.714 std=37.174 min=-0.511406 max=271.213

Master mute: off

Normal frame count: 7680

Total writes: 126

Delayed writes: 0

Blocked in write: yes

Suspend count: 0

Sink buffer : 0x7c56046c80

Mixer buffer: 0x7c56053e40

Effect buffer: 0x7c560a17c0

Fast track availMask=0xfe

Standby delay ns=160000000

AudioStreamOut: 0x7c68cd9a00 flags 0x1 (AUDIO_OUTPUT_FLAG_DIRECT)

Frames written: 967680

Suspended frames: 0
[LG V20 Guides, News, & Discussion] mcsmart:
Issues so far (lineage-17.1-20200611-nightly-us996):

Freezes when charging and Google Smart Lock is enabled. Also happens with Gamma kernel. Can be fixed by disabling Smart Lock as a trust agent.

Bluetooth mic not working with headset (this is working on [MENTION=2881807]x86cpu[/MENTION] 16.0 builds)

Camera not working on first boot. It's working on second boot after cache/dalvik wipe.

Frequent Wifi disconnects (this has been an issue on all Lineage-based ROMs so far).

Tested and working:

Cellular (calls, data, SMS) on 4G, 3G and 2G

GPS

Sensors (rotation, compass, light level)

Fingerprint (with latest Nougat firmware)

The freeze-on-charging thing is probably the most annoying issue. This is a bit of a bumpy start for an official LineageOS, but I'm sure it'll get better after a few weekly builds.
[LG V20 Guides, News, & Discussion] G U C C I:
Yeah I've been building my own ROM since I always want the most up to date stuff and the stock kernel always ends up freezing and other issues but Gamma fixes it.
[LG V20 Guides, News, & Discussion] r33tom:
the latest nightly 14-6-2020 for h990 is very unstable

have had one kernel panic and three random reboots since i upgraded last night.

i went from 05-06-2020 to 14-06-2020

ill give it today and if it keeps crashing ill flash back to the 05-06 release
[LG V20 Guides, News, & Discussion] r33tom:
well it froze whilst i was streaming amazon music through to some bluetooth speakers. going to flash the 5-6 release.

this is so unstable now its unusable.
[LG V20 Guides, News, & Discussion] sonar77:
Encryption not working

Pay attention with encryption: It fails and puts phone into a reboot-loop
[LG V20 Guides, News, & Discussion] AlexOD42:
I think we're almost there with encryption, the 0614 build fixes the manifest error, I've just checked in the PRODUCT_PACKAGES fix to *hopefully* resolve this once and for all in the next build. As per my testing, you will need Open GApps as well before encrypting for the first time.

Without cryptfshw, you do indeed get a reboot loop which is resolved by formatting data from recovery. I've found a good way to check if it's loaded properly from a terminal is:

lshal list | grep cryptfs -i

Fingers crossed for the next build!
[LG V20 Guides, News, & Discussion] G U C C I:
Use Gamma kernel. No issues here.
[LG V20 Guides, News, & Discussion] nwananka001:
the bold text is why i am still in 16.0. Someone says a fix for some in 17.1 is to turn off "ok google" . not sure if you have tried that.
[LG V20 Guides, News, & Discussion] eaburger:
This solution could be, from my side I do not like the "Ok Google" option (in my native language this assistant do not work well) and my Bluetooth mic is working (2 different headsets and Android Auto), but talking about this the last time I used the AA do not reproduce any sound (notifications, Waze or music) but I need to test more if the OS or is the App itself.

Also to let you know the last build 0614 with Gamma Kernel is working without problems!
[LG V20 Guides, News, & Discussion] sonar77:
Thanks for your reply!

I have Open GApps installed (Pico version) but the command you suggested (lshal list | grep cryptfs -i) returns me nothing: what should I have to install?

Thanks again
[LG V20 Guides, News, & Discussion] AlexOD42:
You'll just have to wait for the next build I believe, the change has been merged so we just need a new nightly after 0614. I'll report back as soon as it gets released!
[LG V20 Guides, News, & Discussion] sonar77:
Ok, thanks.

And what about the new gapps? should I re-installing them from recovery?

Do you suggest a clean install of new ROM or an OTA?

Thanks again
[LG V20 Guides, News, & Discussion] n0k0m3:
Where do I enable 2nd screen? Or is it only available on x86cpu unofficial version?
[LG V20 Guides, News, & Discussion] Duhjoker:
bricked. dont know why. woke up and both phones completely dead and wont register in device manager or ubuntu lsusb
[LG V20 Guides, News, & Discussion] EnterTHEvoiD:
2nd screen is only available on lineage 15.1 I believe

---------- Post added at 01:33 PM ---------- Previous post was at 01:32 PM ----------

Can you charge it and get to twrp?
[LG V20 Guides, News, & Discussion] mehsme:
This seems to have been fixed with the latest weekly- specifically the addition of "278132: Avoid SubscriptionManager#getUriForSubscriptionId calls with invalid subIds" (I'm new so no links... check Gerrit)

I'm running this on my vs995 just fine now, no random reboots!
[LG V20 Guides, News, & Discussion] Duhjoker:
i cant get either phone to do any thing at all. each started resetting themselves about or six times tje day before bricking. i think it has something to do with the way its rooted and the flashed aboot images.

any way i have a kernel compilation problem im hoping you can help me solve. i have been compiling kernels for a diffetent phone testing different things and i was producing kernels that were the proper size up until a few weeks ago when i got a new computer after losing an hdd.

so i had to litetally start over and i had written a ton of code. Now when i compile the kernels always come out to around 29mb. i have been trying every trick i can find but nothing helps. ill post my defconfig if it will help
[LG V20 Guides, News, & Discussion] 28charro:
I was having the same problem with mine,so i was waiting for it to be fixed,i'll try the latest build thanks a lot
[LG V20 Guides, News, & Discussion] Samuel_Owolabi:
Does this work for pre10p h918?
[LG V20 Guides, News, & Discussion] Ing_GGRM:
Everything going great in my vs995 with the last build + gammaV20. But after an OTA or dirty update the lineage app "Styles and Wallpapers" doesn't work, but it does when you clean install any build
[LG V20 Guides, News, & Discussion] Vortell:
Have you tried partial dl method using patched lgup to reset it to stock? I have not compiled kennels yet. Although alot of it used to be from Code Aurora Forum(CAF). They seem to understand kennels quite well. Although from my what i have read lg kind of sucks to develop for due to amount of close source code used for it.
[LG V20 Guides, News, & Discussion] Duhjoker:
ok so i really dont get what the problem was since ive compiled kernels with enough drivers to log into every device in your home but i got back on track today. CONFIG_KERNEL_XZ=y did the trick and giving the suffix in the make command xz as well cut the size in half. i usually use GZ and gz but it just wasnt cutting it.

What im really trying to do at the moment is build halium for my aristo 2. problem is no one has compiled a working system image and porting the failures isnt working either.

I have all the dependencies, binaries and drivers that ive been collecting and pulling the past year but getting the config files set up right is my problem. Duhjoker at github if you would like to take a look

on the v20's i cannot get them to do anything at all but one does show the battery jpeg if you pull the battery and plug it in. it will say needs charged but charge the battery and all you get is a short vibration if you try to turn it in. niether ubuntu or windows sees either device and i have all the lg and qcom drivers installed in windows.
[LG V20 Guides, News, & Discussion] hungtinglung:
newest ROM H990DS,bluetooth error.

fingerprint normal.
[LG V20 Guides, News, & Discussion] r33tom:
Noticed another issue on the h990n when taking a phone call using the speaker phone the mic vol is still in handset mode and is too low for the other caller to hear you.
[LG V20 Guides, News, & Discussion] Vortell:
You have to do the correct method to get into download mode. Other then that if it's not even showing in windows device manager then it's bricked. You can recover from some bricks on lg but without 9008 in device manager your kind of screwed. Only other thing i can think of is if you try to change to different usb cord.
[LG V20 Guides, News, & Discussion] jesuus:
in the terminal i tried 1st su then gave root permition and then run lshal list | grep cryptfs -i that game me a result

lineage-17.1-20200618 h910 att the fix for the encryption is already included is important a clean instalation for not error to happpend
[LG V20 Guides, News, & Discussion] ozzfranta:
Please help

Hi, I flashed everything according to this manual but when I do adb shell dumpsys media.audio_flinger, it says Qualcomm on most of the lines. I am so confused. Installing Ainur Narsil also does nothing. Have gamma kernel installed.
[LG V20 Guides, News, & Discussion] Tetuh:
I've been on 16.0 for months now and all was well till today. Tried to use fingerprint and got a message saying hardware is unavailable. What am I supposed to do? On h910 and all sensors and fingerprint was working hitherto.
[LG V20 Guides, News, & Discussion] alexp1289:
Just flash the official 17.1 then flash the permissiver zip.
[LG V20 Guides, News, & Discussion] sonar77:
cryptfs

With lineage-17.1-20200621-nightly-h990 the command runned with su gives a result:

DM N vendor.qti.hardware.cryptfshw@1.0::ICryptfsHw/default 494 459

so can I now crypt the phone even if I did a dirty update?
[LG V20 Guides, News, & Discussion] lybxlpsv:
Yes, the Qualcomm DSP is still loaded on hifi dac mode even on stock rom for equalizer effects. if you don't want it then remove it.

One way to check if to try set the dac mode to "bypass" and see if you hear anything from qualcomm dac, and then to "Hifi" then check if you hear anything from the ess dac using tinymix.
[LG V20 Guides, News, & Discussion] thsn07:
Where can i see that which audio device i am using(dac or qualcomm)? Tinymix says "Failed to open mixer".
[LG V20 Guides, News, & Discussion] AlexOD42:
That's a good question. It's a great sign that cryptfshw is now loaded but you may have to test it to know for sure, worst case would be having to format data so do take a backup. I can confirm the following works at least:

- Clean flash of lineage-17.1-20200621-nightly-h990-signed

- Add open_gapps-arm64-10.0-nano-20200621

- Complete the Google initial boot process and set a PIN

- Encrypt phone

What I've learned from the logs is that you need to let the Google wizard actually *set* a PIN/password. If you already have one and you don't give it an opportunity to set it again, it will still fail on reboot with an encryption key error. Perhaps toggling the PIN/password off/on has the same effect.

Anyway, the good news is encryption is now working. Sadly TWRP doesn't recognise the PIN to decrypt the volume but that's likely a separate issue!
[LG V20 Guides, News, & Discussion] sonar77:
I ended up doing a factory reset and now encryption is done!. I hope OAndBackupX will restore my backups ;). Meanwhile I installed Lineage recovery.
[LG V20 Guides, News, & Discussion] munirshah77:
I have n990N and I have managed to install the latest build. However, fast charging is not working. Is there any solution for that. It was working finel in lg rom. Also, is there any way to make the setting menu purely dark instead of dark blue like the status bar and notification panel? Aditionally is there any theme support for LOS 17.1? Also is there any way to remove the triangle thing at the begining of boot. I flashed orea flashable zip and it removed the triangle issue but it broke fingerprint for LOS , so I had to reflash with LG up and re-root to get the fingerprint working again but it leave the triangle issue. Is there any know solution for the triangle. Finally, is there any way to downgrade oreo modem to nougat for n990N. I found a link https://xdaforums.com/v20/how-to/guide-downgrade-firmware-oreo-8-0-to-t3932516 but the download link for that flashable zip is broken . Is there any solution for that?
[LG V20 Guides, News, & Discussion] sajadzarepour:
If any h990ds user using mixer file for best call hearing and speaker phone place here to use .
[LG V20 Guides, News, & Discussion] Tetuh:
I didn't need permissiver before. For some obscure reason, fingerprint started working again. I will flash the official 17.1 when encryption issues will be fixed.