yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
It's kinda implied that this is for stock LG based roms but I probably should put some sort of warning. I don't know why flashing an AOSP/LOS kernel or dirty flashing the lastest LOS wouldn't fix it. I don't see any reason why someone on AOSP/LOS wouldn't just use something based on the Lineage source for the LGE MSM 8996 anyway. It's probably a lot more up to date with security fixes.

Once hockey season is over I'm looking into working a little on AOSP, LG is taking too long getting to 7.1.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DrJPepper:
I'm just a curious sort with too much homework to procrastinate :eek: . I didn't think it'd actually work work, but I did want to know if it'd fix the weird issue I'm having with CDMA/texting on lineage. I have to switch to CDMA only, send a text, then switch to global at least once or twice every boot before it'll kick in. For everyone's edification: this kernel did not help. I did get a kick out of the main screen seeping into the second screen though, was p funny.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
That does sound odd. My gut instinct says that's not a kernel issue but I haven't delved into CM/LOS on anything but my old LG tablet in quite some time. The fact that this kernel even fully booted on LOS is a little surprising. The issue with the main display and second display is pretty much what I would expect. I would love to have time to play and see if I could get LOS working with the second screen.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] thktanuki:
Found an issue, sadly. EVERYTHING works great but it breaks focus on the camera. I'll try some other camera apps to see if I can get it to work.

Update: No dice. Open camera, google camera, and fx5 all no focus.

Gonna go full extreme and try swapping out camera apks from a verizon rom and see how that goes.

Update update: Swapping out camera APK wasn't a fix; all well. Restored backup. Regardless, happy to see a kernel dev for some form of v20 :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DrJPepper:
That would be sick. Even just a blinking light facsimile would be great, miss that from my G3. Too much of tinfoil hat to run anything worse than AOSP with GApps pico though... If I could find the time over the summer to help I'd love to, although working on phones is ****ty since you're incommunicado whilst doing the dirty work... I know some people are gearing up to decompile the stock ROM and try to reverse engineer the API in a thread somewhere around here... Honestly though, we need ****ing Xposed on Nougat, that would help just a tad yes?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Get Ur Noob On:
Any chance you could add the smartassv2 or Wheatley governors?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Yes, there is a chance but probably not soon, I'm pretty limited on time to work on developing. I'll add them to the list and if I can hunt down the source without much trouble I'll throw them in with the next release.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vlad48:
Any chance to have this kernel with camera libs form LS997?

Really many thanks it works brilliant on latest LS997 without only camera focus while saving pictures.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
I don't really understand the issue but I am not replacing the VS995 code with anything from any other device. You might look into what [MENTION=3610850]SaintZ93[/MENTION] is doing with the kernel from his OBAR rom.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] daw41:
This works perfectly on the AT&T h910 just so everyone knows
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Thanks for the update. A couple questions. Do you get static on boot? Have you tried wifi calling? Have you tried installing magisk? I'm curious to know how well these work on other devices than the VS995. The static on boot is the only really big deal for me at the moment.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] sguerra923:
What ROM are you using?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] daw41:
I've tried it on Not so stock 6.5 and Megarom 4.0

---------- Post added at 03:16 PM ---------- Previous post was at 03:13 PM ----------

No static boot yes Wi-Fi calling and volte works and yes magisk works. Also the camera focus works fine
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vlad48:
Small update from me on using this brilliant work on Sprint ZV6 based roms (OBAR, Stockish and of course Classic):

1. Camera wrong focus is gone.

2. FM radio works.

3. No static on boot.

4. Magisk V12 is working flawlessly.

5. Bluetooth devices and connectivity are functioning perfectly and as intended(no unable to start/connect or disconnects)

6. QC works brilliant for both 2.0 and 3.0 and shows indicator properly.

P.S.: A small feature request - would like to see a module for charger current boost override using (max 1500mAh) as in Konverged kernel
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Forgive my ignorance, but does this kernel support SDCardFS? Trying to learn about it, was just curious.

https://xdaforums.com/apps/magisk/module-enable-sdcardfs-t3603375
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Good question. Yes, but it is untested. I just added the pertinent line to my build prop and everything seems to still work but I'd appreciate more feedback.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] twistedvip:
Just wanted to reconfirm that I have VoLTE and WiFi calling working perfect on my H910 (AT&T variant) with no static on bootup as well. Well done OP. I'm also using MegaROM.

Twisted
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] supreme329:
Hows your battery life?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AndyMarty80:
Hi,

I'm using MegaROM with Magisk+MagiskSU that I chose when installing it, and when I try to flash restock 1.2, I get a "Unpacking ramdisk failed" error in TWRP. Which MegaROM option did you choose when you installed it?

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Probably a TWRP issue. TWRP 3.1.x for the V20 has issues installing a lot of custom kernels, try the old 3.0.2
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] AndyMarty80:
Yes, that was it, I did it some hours ago before seeing this message, and I can confirm to anyone having issue with Unpacking Ramdisk failing on a zip that should be working, 3.0.2 works fine, but not 3.1.1.

Thanks!

Installed on H910 with MegaROM 4.0 with Magisk 12 +MagiskSU, no static, everything seems to be working so far!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] P013onEr:
How different between VS995/S/SS ?I see 3 devices in lg kernel source list .THX
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Miilliiee:
Things made so Difficult until just before the End

The LG v20 -Verizon , with the locked bootloader from hell and the convoluted, confounding, inaccurate, dated, sloppy explanations, that don't show a clear path - has been difficult, to say the least. Your lovely kernel worked quickly - with a little help from the Internet and titanium backup. Acore flashed repeatedly making several apps inoperable so, following directions I wiped contact storage with tb and within 1 minute- I've got a 100% functioning Rom, 1 week later. This last part with your kernel, that truly worked for me, pushes me to PayPal. Thanks are wonderful but money is what counts!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Sorry, for the late replay on all of these. A heavy workload at the day job and some work on other devices had me preoccupied.

As far as I know they are just revisions of the same code base, bug and security fixes probably. I think the SS is the most recent and that's what this kernel is based off of.

I appreciate the support but I don't really take donations. There are plenty of other devs who probably could use the cash but if you really feel like it, a donation to the Red Cross or any of the other groups offering aid to Texas, Florida, Puerto Rico and the Caribbean islands would make me happy. My day job involves satellite communications and we've been dealing a lot in that area lately and I can't stress how much they need any help they can get right now.

And as for the status of this project, I finally have a build environment set back up. I've been working on building Lineage to test some things but since it seems like this kernel might still have it's place, I intend to pick back up and add/update a few things sometime after next week.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dingoyabuki:
I get this error when trying to install reStock VS995:

Error: Unpacking ramdisk failed!

Aborting..

Failed to patch boot image!

I've tried flashing my original bootbackup.img when trying dirtysanta, VS995boot.img, and boot2.img. All of them yielded the same error.

Could anyone help me?

I've also tried reinstalling VS99512A_06_1114_ARB00.kdz multiple times.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
I have this issue too. I have tried what you tried, no luck here either. Not sure the issue.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
This is commonly caused by using TWRP 3.1.1-0. Try rolling TWRP back to 3.0.2.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dingoyabuki:
That worked, thank you! Previously, when trying to install twrp with dirtysanta, my screen would appear corrupted after I flashed twrp-3.0.2.1-us996.img, even in recovery. So I couldn't see the screen in navigate. I don't know what I did wrong there, but I do know that now it works.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] karmacoma7:
I must confirm that this kernel works for lg v20 f800L (Korean U+)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] will5:
Is undervolt possible with this kernel?

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
That's interesting to know, thank you.

No. If I get any time to work on this in the future I might look into adding it but it would be pretty far down the list of things I'd be interested in adding. If you're looking at battery life I'd recommned trying either the Blu_active or ElementalX governors.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] will5:
Thanks. Maybe instead of undervolt, you can add voltage control support. So it will work with kernel adiutor or similar and people can control to their likes? Maybe it´s less difficult, I have no idea, really.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Any updates in the future? Perhaps to the latest kernel from 18A?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Possibly if I can ever get time. I'm really pressed for time between my job, other hobbies, other Android and various OSS projects.

I am planning on adding Adrenoboost (already added on Github) and Adreno Idler (WIP). Also think I might update the exFat drivers. I might add a couple more governors, though I'm pretty happy with the current set. I'm trying to avoid adding stuff that could possibly cause issues or errors. Fixing the stuff broke/missing from stock while not keeping it close to stock is one of the main ideas behind this project. I might see about the previous request to allow users to change CPU voltage, if users want to shoot themselves in the foot it's not my problem.

I think there is an assumption that the kernel versioning correlates with the firmware versioning, I don't think this is exactly the case. If you look at other variants firmware versions and kernel source versions, they don't seem to match up very well. In fact, the kernel versioning is a mess. The most recent kernel version for the VS995 is 10b, I think they have released minor variants VS995S and VS995SS with the later probably being the most recent and the one I base this kernel off of. I don't have any real reason to suspect that the kernel from the 18A firmware has been updated from 10b. Even if I'm wrong, LG hasn't released the source so I can't update the base code. In the event they do release newer code I will probably update reStock.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Awesome, glad to hear you're still in the game.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
V1.3 - Release

So, I had some spare time between other projects to add a few quick updates. The big improvement is the RCTD, CCMD and Triton (thanks to [MENTION=7055541]Zacharee1[/MENTION] for the original work) added to the install script. I also added Adrenoboost (from [MENTION=4684315]flar2[/MENTION] ).

V1.3 - 12/8/17

Added Adrenoboost GPU boost

Added RCTD, CCMD, and Triton removal script to installer

Download: VS995 reStock v1.3

I recommend using TWRP 3.2.0-0 for the vs995 to install this.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
This is most exciting news...

How much of a performance impact is/was CCMD and Triton?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
I don't know. CCMD seemed to be in the root checking mechanism with RCTD and was part of the script to nuke it so I went with it. The dev who wrote the original script also included Triton as part of things and he seemed to be a lot more familiar with how things operated so I trust his judgment. I notice no immediate effects either positive or negative, but to be perfectly honest I did not really stress test things as much as I normally like to. I can revert any of it if needed. I suspect RCTD may have been an issue for me earlier this year while trying to use my phone while I was using it to shoot some video at a hockey event. I have no way to be certain but since then this has been on my radar.

If anyone wants to do some proper benchmarking I would love to hear some actual stats. I just blew my phone out and started with a fresh install of 18A so everything feels pretty snappy to me regardless.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tonycstech:
Still get static.

I went exactly by instructions.

I flashed twrp-3.2.0-0-vs995.img

Then, using TWRP i flashed the kernel restock 1.3.

1st boot static is gone but phone wont boot. Its stuck as OS loading screen. (common for Verizon phone users)

So i flashed abootbackup.img per rooting instructions for verizon users (because otherwise OS never loads)

After flashing abootbackup.img back, static is back but OS does load in about 15-30 seconds.

So its like DAMN if you do and DAMN if you dont.

I dont want static so i flash restock.

I get no static but OS wont boot.

I flash bootbackup to boot but i get static.

not to mention, ROOT IS ALSO GONE !!!!!!!!!!!!!!!!!!!!!!!!!!!!

So now i have to wipe the entire phone to get root back ?

Great job.

Great.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
First, root is gone because you flashed the your backed up kernel image, which also wiped out your root's ramdisk modifications. The simple solution is to reflash root. Second, you need to give some more information on troubleshooting. What ROM or version of stock are you running? What root are you using? How long are you giving it to boot after flashing root?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Sounds weird, but I typically will have to use a stock boot.img on the first boot of a clean install. I can install reStock after setup.

But yes, anytime boot.img is change always reflash root method.

If he's getting static after flashing reStock something is definitely not right. Somehow it didn't flash.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Paapa:
Can you add init.d support
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
That probably wouldn't be too hard. It requires modifying the ramdisk and this kernel does have it's own ramdisk it takes some scripting on the install side but I think I can handle it. I will put that on the list of stuff to do for 1.4.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tonycstech:
THere seems to be a problem with the kernel.

app named automagic does not seem to recognize battery charge status as "full"

Developer of the app concluded that app is not to blame.

Anyone else with V20 who has automagic ? Can you verify that battery "full" returns true when fully charged ?

With stock kernel please do this.

automagic is free for few basic flows, please someone validate it for me or give me a link to STOCK kernel so i would flash my phone and confirm that the issue is in the kernel.

You need to go to phone settings and see battery status there. IF it says FULL in the settings but automagic says false then its not the kernel but something else.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
I cannot find a free link for the app in the Play store. The kernel does not modify anything that should affect batter reporting. I have added a download for the stock kernel here. If you can direct me to the free version of the app I might try see what I get later this weekend, schedule permitting.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
Link is saying download unsuccessful
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Maybe the XDA servers were a little overloaded for xmas, all likes work for me at this time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Paapa:
Would you be able to bake in wiregaurd support into the kernel?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Anyone else have camera issues? I wasn't able to get mine to focus with the latest reStock. Flashed the 18A image you posted a few posts back and it seems to function fine.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
The short answer is "maybe, I don't know." The long answer is I had to Google this one. It has me curious enough to look into but I would not count on it being added in.

I use both the still and video camera and have no issues with focus. I've never touched anything related to the camera either.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
I just tried reinstalling reStock 1.3 just to be sure. Stock kernel for 18a and the camera focusing works fine. After reStock though, no focusing. This is on Alpha Rom, stock camera app, and I added back in the bloat. No idea what is going on, maybe I need to try an older reStock?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Yes, I would try previous versions but again, I have not made any changes on anything camera related. What stock version does Alpha Rom come from? Also, are you on an actual VS995? The camera sensors is not the same across all V20 models?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Yes, running verizon VS995 here. Also using your latest TWRP, not that that matters.

I believe Alpha Rom comes from stock VS995 18A kdz file. There is a system dump of 18A on his website too.

Not sure if all the app versions are the same. Ill try reStock 1.2 and see what happens.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
Hmmm... not sure then. I'm on perfectly stock 18A with the same version of the camera. Does it do this on all 3 cameras, still & video?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Yes, all modes. Open Camera cannot focus either. Also, restock 1.2 doesn't seem to have any change - still no focusing.

Also using Magisk, if that matters. No idea what is up. Stock kernel defiantly seems to be the only answer.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
I can't download Alpha Rom here at the moment, any chance you could pm me your build.prop?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] poixninja:
Decided that I would like this feature as well, so I tired out adding it to your kernel tree, Wireguard works great and will try to make a pull request a little after the new year to add support to it
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BackCheck:
I'm building a test build with Wireguard now. Since I can't actually test the functionality of it, no endpoint to connect to at the moment, I'm just going to make sure the kernel is stable. I expect the pull request to be merged in a day or two.

As for init.d support, I'll probably work on the script after I merge Wiregaurd. I've been hung up on getting the 10b kernel working in TWRP and just haven't had time to work on anything else.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
I'm still having struggles with the camera focus. It looks like it is only with the main rear camera, the little green box functions as it should but the camera just can't focus. I'll try Open Camera see how that does.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Camera focus is definitely related to reStock. I've tried a few other kernels, the focusing works as it should with them.

Can anyone else reproduce this? In the camera app, you should be able to tap on something out of focus and a green box appears to refocus it. Also the option "focus tracking" doesn't seem to work either, it might be related.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkPhazon:
I just saw this. I'm using weta kenel and having the focus issue. I came upon this thread because I wanted to see,if this kernel would fix my issue. Crazy thing is that I've been on weta for over a month but since i was using the wide angle all of the time i never noticed the focus issue.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Yeah I think you are having the same problem I was. I'd recommend trying the stock kernel first to see if you can focus like normal. When you touch the screen in the camera app, it should try to focus and even use the flash. The issue I had was that not working, no focus or flash.

I'm not knocking BackCheck at all, he said he wasn't able to reproduce the issue. Not sure how to troubleshoot the problem at that point, I'm 100 percent sure it's related to the kernel.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkPhazon:
you have a link for stock kernel you used? also what version of TWRP did you use? Its appears that may also be in play when flashing kernel...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Are you on the VS995? BackCheck posted a stock 18A kernel a few pages back. I'm also using TWRP 3.2.1.0 from BackCheck's thread.

Stock VS995 18A kernel: https://xdaforums.com/devdb/project/dl/?id=27733
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkPhazon:
thanks I'll give it a go.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Don't forget there will be static screen after booting. Cover the proximity sensor to set it right after it boots completely.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkPhazon:
Cheers. Installing now. updated TWRP and flashed 18a .img to boot partition. stuck on LG screen for 7+ min now. I hope I didn't screw it. At least I backed up before attempting...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rholm:
I'm on AlphaROM with this kernel. The auto focus works when I select the single arrow box, but not the one with 3 arrows. Are those settings for normal and wide angle? OpenCamera seems to always auto focus.

Cheers,

Rich
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
Are you able to get it to use the flash as well when you try to focus on something? I tried open camera too, it did the same.

It's odd but sometimes takes a really long time. If you wiped cache, it will take a while. I really have sat there for what felt like 25 min or so then it finally booted.

Edit: it's a static boot right? As in you can't see the boot animation, but it's there.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkPhazon:
I see the LG logo. At least I don't think I messed up the install. I'll go do some chores or something and come check on it in a while...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bond32:
If you see the logo, you probably didn't get the stock image flashed correctly. The stock image should produce the static-y boot animation but you can still make out the logo sort of.