yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zoxplers:
I started over for the fifth time now. Nothing currently installed. Should I go for the 0205 version of lineage? I was trying the 0206 one. H910 btw.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
Did you use Gamma Kernel for LOS 16.0?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xflier:
Yes, I did
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
What fixed it for me was flashing back to the original Nougat firmware to confirm camera works and then reinstall twrp and install Lineage.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xflier:
Are you referring to camera fix or OK google fix? Thanks though!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
The camera fix. The dev for this ROM removed "OK Google" I believe.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TripOG:
Weird, I thought I read he removed "okay Google" too but it works for me
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
I believe this only works when screen is ON.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
I could have read it wrong as well but mine isn't functional anymore.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TripOG:
Yep, I think that's it

Seems to work for me with the screen on but not when she is off.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jbradlee:
Error installing to-x86cpu and Lineage 17.1

Good evening, all!

I've been stuck on a rooted stock ROM on my unlocked US-996 (not the US Cellular one) for a year or so waiting on a Lineage build with second screen support. I tried installing this a month or so ago and got the trustzone error, so I went to a different ROM. I realize that there's a pre-requisite step, to install "to-x86cpu" if I didn't already have x86cpu's Lineage running. This phone is currently wiped - Data, System and Cache were erased AND formatted as Ext4.

Using TWRP 3.3.0-0, I installed "to-x86cpu.zip" and got this error (my apologies - I can't seem to get the logs even when mounting /data):

Error: Packages.xml not found. Exiting...

Not being sure if that's a showstopper, I rebooted directly into Recovery and installed "lineage-17.1-20200109-X86CPU-us996.zip" That almost immediately errors out with:

Comparing TZ versions:

Max TZ version: TZ.BF.4.0.1-126394

Current TZ version: TZ.BF.4.0.1-176180

assert failed: msm8996.verify_max_trustzone("TZ.BF.4.0.1-126394") == "1"

Updater process ended with ERROR: 7

Error installing zip file '/external_sd/lineage-17.1-20200109-X86CPU-us996.zip'

Searching for this error comes up with almost nothing, and nothing that explains what I can do to overcome it.

Is there anything I can do to try out Lineage 17.1? Thank you all, especially devs like x86cpu for keeping this phone alive!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
What stock os were you on? Oreo? Plus x86cpu never really cared about second screen so don't expect that to happen anytime soon.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jbradlee:
The last ROM I installed was a rooted LG 20f. I couldn't get past encryption to install Xposed, so I formatted everything to install something new.

Prior to that was Alpha/Omega, but a Magisk update failed, soft-bricking the phone. That's what led me to try 20f for a week or so, then the failed attempt to add Xposed.

I thought the Android version in Lineage 17 supported second screen as a natively-defined display region?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
[MENTION=2881807]x86cpu[/MENTION], so I've successfully built a build based on your commits and such on GitHub. So whenever you make a "release" am I just basically getting the same thing? Wasn't sure if your builds would differ from mine at all.

---------- Post added at 10:26 PM ---------- Previous post was at 10:25 PM ----------

2nd screen is used as the status bar.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xflier:
This is true for LOS 16, Somehow it did not work in LOS 17.1 even when screen is on. In google setting, the voice match could not be enabled, and it is greyed out
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Most likely the same. Different keys and/or the X86CPU build-id. I also pull in the security patches before they are merged in Lineage.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
How exactly do you go about pulling in security patches? I tried googling but the posts were from years ago when it was still CM.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Once Lineage pushed to gerrit.. You just need to know which branch (16.0/17.1).. Then after a full sync, you repopick the topic:

repopick -t android-10.0.0_r27

https://review.lineageos.org/q/topic:"android-10.0.0_r27"+(status:open OR status:merged)

However.. it gets trickier when a manifest updated (there is not always a manifest update).. ie: https://review.lineageos.org/c/LineageOS/android/+/268124

You then need to pick that individual change, then at the base of the lineage sync:

cp android/default.xml .repo/manifests/default.xml

That will copy the updated manifest.. another full sync again, but this time it will sync that new manifest. You might need to force sync the updated repo.

After it ie merged though, you have to revert that for it to sync for you...

cd .repo/manifests
git checkout default.xml
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sajadzarepour:
Can you share for test ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
WOW! Thank you for the detail description. How long does Lineage usually take between when the patch is released by Google and when they implement it into the repository?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
A couple days. Google is 1st Monday of the month... Lineage sometimes Monday, late as wed depending on the branch. Usually, it's merged Sunday from what I've seen.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] alexp1289:
Would you be able to make a detailed guide on building lineage os for v20? I've always wanted to learn how but have never found any good tutorials for after I've set up Linux.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ttabbal:
I'm getting a crash in the camera daemon on the H918 latest. I grabbed logs per the first post, hope it helps.

I'm going to try 16.0 and if that works, a dirty flash to 17.1.

I had to go back to 15.1 to get camera to work. I dirty flashed 16.0 and that seems to be working now as well. I had some other issues on 17.1, so I'm restoring apps etc on 16 to see how that goes before I look at 17.1 again. Just a tip in case people are having a similar issue. The camera deamon was crashing and relaunching over and over, so it was probably killing battery as well.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
https://wiki.lineageos.org/devices/us996/build
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
How to flash backup.zip of Migrate? It doesn't let me because "OS is not installed". And how to turn off the second screen? I can't play games in fullscreen.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
Not sure what happened but seems that 17.1 ruined something and camera doesn't work on clean flash in 15.1 on H990DS. Did someone experience this? Now downloading .kdz to check if my camera is not dead.

Edited:

Not dead:)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bmulcahy:
If you read the Install instructions, it says that you must 1) Flash 15.1 then 2) flash 16.0 then 3) flash 17.1. If you don't do all 3, you will have problems (including camera not working).

---------- Post added at 08:52 AM ---------- Previous post was at 08:46 AM ----------

Awesome. Is having to install 17.1 by first flashing 15.1 then 16.0 a consequence of following this protocol? Or, would it be possible to follow this guide and get a 17.1 zip that could be flashed without first flashing the earlier versions? Is it because the proprietary blobs for the v20 are only available for the older versions? If so, is the build of the later versions the same just without the proprietary blobs step?

The reason I am interested is that, at present, Nanodroid patcher cannot patch in signature spoofing on 17.1 so I wanted to see if I could build a 17.1 zip for my h910 that could work with microG.

Thanks so much for all of your work and helpful replies! I have been running your 16.0 build on my v20 for many months now and it works wonderfully!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
Did anyone who uses this or 16.0 get used to notch?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nkirk:
Guys what are the current bugs ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sajadzarepour:
Unfortunately Video playing doesn't work in some apps that uses internal video player like whatsapp.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
I was about to myself but you apparently need 400gb for building, about 100gb for the source and about 300gb for compiling it, and my ssd is only 500gb and I don't plan on buying another ssd. A ssd is recommended for faster speeds, and of course also a good cpu and plenty of ram, anything more than 8gb

---------- Post added at 06:29 AM ---------- Previous post was at 06:28 AM ----------

You can't hide the notch anymore past Android Pie, it's part of the rom

---------- Post added at 06:30 AM ---------- Previous post was at 06:29 AM ----------

I've been hiding it with nacho notch, makes it dark themed so it looks better imo. It doesn't darken it in landscape mode though
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nkirk:
So no other bugs apart from video playback?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sajadzarepour:
Sometimes system ui doesn't response and freezing. But wasn't big issue and i returned to stock rom and waiting for stable version of los17

Device:H990ds
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
But, you don't see fullscreen when watching Youtube? I'm still using 15.1 because of it. But in the future I will have to ignore this somehow.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
My YouTube has fullscreen.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jellypowered:
Finally pieced enough things together to get this up and running on my H918.

I jumped in feet first and flashed it over stock oreo, and let's just say it didn't work like it was supposed to. Then I started searching and came to understand that I needed to be on Nougat, and go through the various lineage editions (15.1-16-17.1) to make everything work properly. So, Here's a "For Dummies TLDR" I'm not going to cover how to get to TWRP, so i'm assuming you know how to get there, that knowledge will come in handy after this next step.

IF you're already ARB1 like me, this is how ya do it.

Download and install a stock Kdz 10p or later.

I used LGUP (using Uppercut) Upgrade with the freshly downloaded kdz file. Reboot, might take a minute or two. I didn't spend much time setting it up after reboot, I figured why bother as I was going to be flashing like a madman haha. Skip past everything until you are in the rom itself.

Enable Developer Options, ADB.

(check camera, it worked)

Since you're at stock nougat you've got to redo your Lafsploit and get TWRP back in the proper place. (Hint: I used FWUL to make it easy)

Once you've got TWRP Settled warm and cozy in it's recovery spot, we can carry on.

Dirty Flash Lineage 15.1 (10p) and wipe cache/dalvik

Reboot (will take a few minutes, be patient)

(Again, I didn't bother with gapps or magisk, nor setting up the phone with apps/accounts, just get to the home screen)

Checked camera, still works, No second screen (expected) no force closes etc.

Enable Dev options -> ADB again, turn off USB Verifying.

CLI - adb reboot recovery

Flash Lineage 16.0 (10p if you're ARB1)

wipe cache/dalvik

Reboot, won't take much time at all here.

Most the setup will be remembered from last time, home screen will be there quicker with only a few notifications about new features. Second screen is working at this point, camera still works.

Adb reboot recovery

I used adb push to /sdcard the following

Lineage 17.1

Magisk 20.3

Opengapps arm64 10 nano

Dirty Flashed 17.1

Wiped Cache/Dalvik

Rebooted to recovery

Flashed OpenGapps

wipe cache/dalvik

Rebooted to Recovery

Flashed Magisk 20.3

Wipe Cache/Dalvik

Reboot to system.

Tada. You're done now! Bask in the glory of all that is Lineage! Thanks [MENTION=2881807]x86cpu[/MENTION] for all the continued love to this device and all your hard work!

Jelly
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
Strange, maybe you use older version of YouTube?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jellypowered:
Mine fresh off the play store has full screen as well.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
I do see fullscreen, you can zoom out and use the notch to use the entire screen. Although if you don't like the notch then you can use newpipe or YouTube in a browser.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
But games, like Subway Surfers? Other phones' with notch stock ROM has option to disable the second screen. Lineage has not. This is strange. For me better disabled than working. But I believe that disabling the second screen is probably very difficult if still nobody did it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
I suggest you trying lineage 15. UI basically looks like stock v20 with second screen used for shortcuts.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
I use 15.1 now but I don't want to get outdated.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] EnterTHEvoiD:
Then I think you'll need to decide whether you'd like to be up to date or have a notch. Many of the apps will in fact use fullscreen with notch, I don't think is possible to force them to run just on the "main" screen..
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pranciskus2:
Some phones like https://xdaforums.com/max-pro-m2/themes/notch-enabler-lineage-os-16-0-t3888678/amp/ already have fix for this. I think we have to wait it for our device.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Lebatman:
Actually I'd love to have something to hide the notch so that there's a possibility of incorporating something like the second screen in the stock ROM. That'd be sweet to have for sure!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mikekote666:
Since V20 notch is not a regular one it might require some modifications [MENTION=2881807]x86cpu[/MENTION] since i've tried the notch hide options via magisk on v20 (uses the same code as all the phones) but it makes it blank but you can still pull down and it will show the status bar in the notch.

Also all of you note that if you're playing games on your v20 they will still get in the second screen also even with notch hide option if that option gets implemented to the v20
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] N7.X:
o) I've noticed, when using Nova Launcher, that there's now a 2(approximate) second delay between double-tapping the home screen, to it actually turning off.

Double tapping the status bar still immediately turns off, so I'm thinking it might be an issue with Nova, but it's something that could drive some people crazy.

o) There's some strange visual behaviour when switching to the recent apps screen. It's very strange with the new gestures (which I don't use) but still odd with the pill gestures (which I do.)

o) Everything seems stable so far, though, and performance actually seems better than LOS 16. Still trying to have a normal day of usage to test battery life, but others will hopefully be able to give better feedback there.

Regarding the notch, working with it (development) is pretty tricky... I have some ideas to add some functionality to it that would be reminiscent of stock (but better imo) but I haven't had the opportunity to delve into the sources to see if it's do-able. That said, I haven't found it to be an issue in my day-to-day usage at all (using Youtube Vanced with

very minimal

cutoff) and I tested a game just this morning that did not go into the 'notch zone' so it's more likely down to individual apps respecting the zone or not. I don't game though, so my experience is limited there.

EDIT: Memory tells me that the second screen is something that has to be turned on and off in the kernel, due to how LG implemented it. They do weird things with their displays that make development... interesting... But I believe that's why notch hiding solutions are struggling with it.

*Disclaimer* I am not a dev for this project. Anyone with actual experience should definitely be listened to over me. *Disclaimer*
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pspablo:
Hello. Thank you for creating the next version of the system for LG V20. I am using LG F800L with LOS software for US996ds and it works beautifully. Unfortunately, after switching from LOS 15.1 to 16 or 17, it causes camera failures and, for example, Youtube. Downloading the clean version 16 or 17 straight away does nothing and the camera does not work. Similarly, for example, gcam and other apps for operating the camera. Is there an effective way to do it? Please help because these compilations are very cool and fast. Thank you in advance. Paweł
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
Did you do a clean install?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pspablo:
Yes, I did a clean installation several times every time the camera and applications for it did not work
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
Try completely wiping the device in twrp (the option where you have to type "yes") and flashing the newest 15.1. Does the camera work then?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] benhall847:
I was having a lot of problems getting the camera to work with gapps and everything else installed. (i'm on the H910)

I literally flashed this baby for about 24 hours and FINALLY got a flash order that works for my device.

1. Flash Stock

2. Flash to-x86

3. Flash LOS 15.1

4. Flash LOS 16

5. Flash LOS 17.1

6. Wipe dalvik and cache

7. Boot phone into system - let it load the first loading screen - DO NOT proceed through the "Getting Started" flow. Immediately power down the phone.

(if you proceed through setting up the phone, and then flash GAPPs, you will have issues with getting Play Store to work.)

8. Boot into recovery & Flash Gapps / magisk. (maybe boot into system between each flash to keep it safe)

Enjoy 17.1 w/ camera

I use Open Camera for access to all three cameras (wide angle)

Dev thank you so much for your work!!

This OS has been working amazing for me

I had a few crashes when unlocking the phone - it would completely freeze and required a battery pull, I believe this was dependent upon what it was specifically trying to render behind/after the lock-screen. (PIP for example)

after 24 hours though, this only happened to me within the first 6 hours or so..

Will keep updated but it seems VERY stable overall!!

I have used Bluetooth, speakerphone, earphone, PIP, everything works perfectly no tweaking needed
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pspablo:
Thx.

I did as you wrote benhall847. I have a bootlader from Android Nougat. I did flash each version after the turn but only version 15.1 gives a working camera. I cleaned Dalwik and the cache after installing v17. I do not know what's wrong.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] G U C C I:
So you clean flashed 15.1 and then immediately after flashed 16.0 then 17.1?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] benhall847:
^This is how I flashed it and was able to get camera fully working.

-Note i needed to wipe dalvik/cache and fully boot 17.1 before continuing to flash Gapps etc..

-Note using Advanced-wipe - fully wipe the phone before flashing (except the sdcard of course)

-Note i did NOT reboot recovery in-between flashing.

You can also flash 15.1 ->

16 ->

17.1 then boot ->

setup phone and check if camera works WITHOUT Gapps installed ->

fully wipe & reflash from the beginning ->

boot 17.1 without setup ->

flash Gapps ->

setup phone

I hope this helps D:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
The notch in the V20 is just a regular notch, that's all. Yes, the top bar has a different backlight, but they are linked together in lineage to be the same brightness. The screen is one large screen.

This might help once in and tested for 16.0/17.1: https://review.lineageos.org/c/LineageOS/android_device_lge_v20-common/+/269112
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dilligac:
Running into the same problem

Running into the same exact problem on the same hardware US996-USA Unlocked

I started using unofficial lineage 16 early last year and have been through several updates, but after 20190625, I was no longer able to install and it popped the same exact error.

I figured since I was not finding any other references, thought it might be something specific to my device until I saw your message.

After 17.1 started to get released, started doing a lot more trial and error attempting to get it up and running on 17.1, both dirty and clean to no avail. Still same error even after 20200205.

Comparing TZ versions:

Max TZ version: TZ.BF.4.0.1-126394

Current TZ version: TZ.BF.4.0.1-176180

assert failed: msm8996.verify_max_trustzone("TZ.BF.4.0.1-126394") == "1"

Updater process ended with ERROR: 7

Error installing zip file '/external_sd/lineage-17.1-20200205-X86CPU-us996.zip'

Unfortunately, at one point, wound up completely wiping my device and decided to start with a clean install of 15, but when I attempted to install any version of 16 newer than 20190625, I got the same error.

So, currently sitting on 20190625 of 16 and still get the same error

Anyone else got some hints? Do we need to load a different kernel? (on gamma kernel 4 and 15 both get same error)

-dilligac
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mahdimllt:
Oh my...

Oh my goodness

Any reports from h990ds???
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sajadzare:
The call connect with speaker mode and tap on speaker icon didn't disable it.

Because i didn't root Rom i couldn't try kernel auditor for Kcal and fix ghost screen issue. And i thought because gamma kernel didn't made for Android 10 we can't use Kcal option.

Double tap on lock screen some times didn't work as well. But ambient display was ok.

Audio played well. Camera also works when dirty flashed over los16 .

Navigation gestures was Ok and working well.

I come back to los16 just for Calling isuue
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Grin59:
Completely agree with you, my next device will be the OnePlus 8 because they always have great support and everything works with their devices on custom roms, even VoLTE if I remember correctly. (not to say we have a bad dev, what we have is amazing, just saying that it will take a lot to get these last few things working)

As far as I know yes it is, but I haven't checked because I don't own any of the newer LG phones
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Confirmed, I can replicate this, so I will look into it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Confirmed on this too, I'll look into it (i have a us996).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
H918: Agree with bluetooth issue, as I have it also. When the phone rings, two things happen which are not good. First, the screen does not open via fingerprint or double tap, so calls go to voicemail. Second, when you call out on the phone, the phone automatically switches to speakerphone, and you cannot turn that feature off. Hope this helps.