yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] crombull:
FIRST PAGE: Step #3 Go to Settings -> General -> About phone -> Software info -> Android security patch level; if your phone is on an update after December 31, use LGUP to "refurbish" to an earlier firmware release (this will do a factory reset).

You must "downgrade" to 10c, root, and then use kdzwriter to update to 10f and keep the root.

---------- Post added at 17:31 ---------- Previous post was at 17:24 ----------

First page again:

Devices

You will need one of the attached files. Beware that the wrong file will likely give odd results (hopefully not damaged hardware, but I do not know).

H990DS (dual-SIM): You can use either h990ds-kernel.zip or h990-kernel.zip.

H990N (dual-SIM): There are reports the H990DS kernel works, but h990-kernel.zip is recommended.

H990 (single-SIM): The attached h990-kernel.zip should work for you. ALPHA reports of success needed.

H990* (all): The attached h990-kernel.zip should work for any H990* device. ALPHA reports of success needed.
[LG V20 Guides, News, & Discussion] Qisou:
Someone can help me ?
[LG V20 Guides, News, & Discussion] NW13:
What do you need help with? Please give details on what you need help with. :)
[LG V20 Guides, News, & Discussion] Qisou:
Hello,

I follow the tutorial and now my phone doensn't start, he is in bootloop

I put back the backup and now the bootloader is locked and I no longer have TWRP

I tried to flash .kdz with LGUP but the program tell me "unknown model". Also, LG Flash Tool does not work

How can i flash the .kdz for back to stock ? Please, Help me

Thanks
[LG V20 Guides, News, & Discussion] Brutale1090!:
I have one question: is anybody trying to solve the root connected problems of the H990DS version or are these limits unsolvable as directly related with the exploit is being used?

Thank you all for your contribution!
[LG V20 Guides, News, & Discussion] emdroidle:
The two tweaks I'm most tempted to do is adding UDF (rather better FS than exfat) and to enable some of the extra security protections around the modem (a vulnerable area).

I'll be happy to assist others who want to add extras to the kernel. I've been assuming my taste in kernel tweaks wouldn't suit many people. Just need someone who wants to build kernels.

I've gotten about 50% of the way towards the top of their tree. Even with a bunch of squashes, I'm now at 47 commits.

Problem is my latest build the phone functionality was being troublesome. Rather slow to connect to the cell network and incoming calls only got through 50% of the time. I've got one not yet tested idea to fix things, so fingers crossed here.

I'm wondering whether to make it available to let people see whether I pulled in any commits which fix the camera, problem is if dialing 112 is unreliable...

"root connected problems"? Meaning trying to get the camera issues fixed?

Right now my main approach there is getting to the head of LineageOS's kernel source. Once there if there are still camera problems, this suggests LineageOS has camera problems on the V20 and assistance/hints should be available.

Are you thinking of something else?
[LG V20 Guides, News, & Discussion] Redline:
Check around the development section of the forums. There's multiple kernels, and I replied to your post already in the KDZ Writer thread, you shouldn't make duplicate posts, especially ones that are in threads not relating to your topic.
[LG V20 Guides, News, & Discussion] Rajeev:
After 1 week of root life revert back to stock again because of Video Recording and Playback issue. No issues with Camera focus. Its works fine. Only issue is video record and playback. I know its break here . Will wait for a stable version of root..
[LG V20 Guides, News, & Discussion] Leicxan:
Hi emdroidle, i complete a kernel based on Werewolf Kernel 2.0 stock branch, thanks for USA-Reddragon, here is his source code.

I cherry-picked your latest dirtysanta modem code on v0.2-branch-BUILD. Just want to test the vedio record and see how it's beheave on LG'S stock kernel source.

The difference from stock is I update zzmoove governor to the latest bLE-develop-k3xx branch, this is tweak for SD820's big.LTTLE CPU, and build kernel with Linaro Toolchain from The Flash.

Other kernelf feature is as same as stock Werewolf Kernel.

I test this on my V20 H990N for 2 weeks, video record and playback is fine. I am not a developer, just copy and paste the code to the source.....

Btw, [MENTION=6984210]emdroidle[/MENTION] I noticed the phone connect to the cellular network is fater than before, with your latest modem code.

Edit: 20171026

1. My unofficial Werewolf kernel download from here

2. My self-build kernel, just test on my H990N, and I don't use extand-sdcard, so can't test the exfat module, and I don't have much time for maintenance it, even this phone is not my daily use one. I build this kernel is just for my hobbit. Someone report they get a kernel crash after the lg logo appear.

Be careful before you flash it!

Download Link

Here

Source Code: https://github.com/guaibao1101/h990x-msm-3.18

Thanks to emdroidle mention me in OP :)
[LG V20 Guides, News, & Discussion] Brutale1090!:
Yes, that's what I meant. Thank you for your work!
[LG V20 Guides, News, & Discussion] sobadforh990ds:
sorry for my bad english

after i finished step 16

fastboot reboot,my mobile reboot but

i got 'White Noise' on all screen area. And than it show that blue screen and say error

i ever plug off battery.Enter the factory reset menu and try to enter twrp.

"Delete all user data (including LG and carrier apps) and reset all settings?"

I press yes twice.Then, it ready delete all the data(on white noise) and no enter the twrp.

Now i go back to stack using lgUP. It everything ok. but root is fail.
[LG V20 Guides, News, & Discussion] exadeci:
On boot I get

, I'm guessing it's re-compling the apps, otherwise recording works great !
[LG V20 Guides, News, & Discussion] Mars104:
Tried your kernel on the h990ds, thanks! Fixed the video record issue. Still have camera focus issue on the main rear camera.
[LG V20 Guides, News, & Discussion] dadme:
Nice work! Now you are a developer. Video works, job done! You just completed the bounty.....
[LG V20 Guides, News, & Discussion] Rajeev:
After flshing that kernel video recording works fine in H990DS ? All video recording including slowmotion ? U can play the recorded videos ?
[LG V20 Guides, News, & Discussion] dadme:
All video functions works, just like on stock un-rooted. Battery life seem to be better.

It's time for custom rom. Weta http://xdaforums.com/v20/development/rom-weta-1-0-t3532778 it is a good candidate.
[LG V20 Guides, News, & Discussion] ahlok_hk:
You may try to follow my instruction and see if it works.

https://xdaforums.com/showpost.php?p=72716640&postcount=613
[LG V20 Guides, News, & Discussion] sobadforh990ds:
Rooted,thank you!

btw,can i update 10c to 10f after root?
[LG V20 Guides, News, & Discussion] Rajeev:
If u update u will lost recovery and root IMO. U can make a prerooted rom zip and flash it via Twrp. Like i done.
[LG V20 Guides, News, & Discussion] Mars104:
Yes you can update and keep root using the kdz writer tool :)

https://xdaforums.com/v20/development/tool-kdz-writer-t3649818
[LG V20 Guides, News, & Discussion] UL7RA:
Can confirm video recording works. Good job, there.
[LG V20 Guides, News, & Discussion] Rajeev:
Works fine in H990DS. Thanks alot
[LG V20 Guides, News, & Discussion] emdroidle:
That sounds like step 16 is being problematic for you. Step 16 you really, urgently need to be patient with the writes and keep those waits long. We can't do anything about the DirtySanta bootloader being very slow at passing writes onto the flash.

I had wondered what kinds of effects modem/firmware updates would have. My biggest worry there was whether LG was also effected by the Qualcomm issue with dialing 112/911/999. Yet things like that were also possible.

Personally I think of building things from source as a system administration task, though there is overlap with development. This is still not an easy task, congratulations.

Now the bad news. I strongly suggest you try calling your phone from another phone. During testing prior to releasing an updated kernel I discovered incoming phone calls were unreliable. The fix I found is here.

My guess is the LineageOS maintainer was testing on one of the US variants and they're not bothered by the change the maintainer did. Meanwhile it appears H990 devices are bothered by the change.

In other news what I'm calling "v0.2" is now out. This is closer to the top of LineageOS's tree and hopefully resolves camera issues for the people who experienced them. This is very near where "Werewolf" forked from, though I'm building generic, close to stock kernels.

Climbing LineageOS's tree went faster than expected, though I had been doing research for some time already. Hopefully I'll be at the top soon.

OTOH if you like experimental features like what Werewolf has, feel free to use [MENTION=4394458]Leicxan[/MENTION]'s rebuild of Werewolf. (hopefully I was merely unlucky and [MENTION=4394458]Leicxan[/MENTION]'s rebuild isn't effected)
[LG V20 Guides, News, & Discussion] dadme:
Emdroidle, i use Leixcan's kernel, in single SIM configuration, in two days, never missed a call. H990DS rooted, with Supersu 2.82. Have great battery life, to.
[LG V20 Guides, News, & Discussion] Mars104:
Thanks emdroidle, flashed kernel 0.2 video recording is working. However still no camera focus for me. On the previous kernel I had the touch to focus box appear with no effect on the focus. On 0.2 no touch to focus box appears.

Having rooted and unrooted a few times now the only way I can avoid static screen/white noise is using the alternate instructions. Specifically after the second fastboot flash command omitting the reboot command and instead removing and reinserting the battery then manually booing into twrp. Seems to have worked for others too.
[LG V20 Guides, News, & Discussion] crombull:
Same here. Two days with Leixcan´s kernel, rooted with supersu 2.82 (I had problems with magisk 13.3 and Titanium Backup) and using single sim without any problems calling.
[LG V20 Guides, News, & Discussion] johanneswilm:
Hey,

I just received my LG V20 H990DS. I've read the last 1/4 of comments here and I think I have a fairly good idea about what needs to be done, although I may wait for the automatic update tool to be released.

To sum it up (and make saure I got it right), the current status seems to be that embroidle has tried applying 50% of the patches included in the lineageOS kernel and some others here have managed to combine that with some other kernel patches. These kernels can be used with the latest update of the official LG system which can be installed with kdzwriter.

The latest of these kernels are able to resolve an issue with encoding videos correctly o that they can be played back. But there continues to be an issue with auto-focus on the main camera lens that no kernel or system update so far has been able to handle.

We are now waiting for embroidle to finish to go through all the patches included in the lineageOS kernel and the final outcome of that will be an up-to-date Linux kernel with both lineage and dirtysanta patches applies. Such a kernel should work together with a recent (14.1) version of lineageOS on our lg v20 h990ds which hopefully will solve the main camera focus issue.

Is this all correctly understood?

Just to make sure I understood this correctly: Are you saying that you rooted the phone according to the mentioned method, you found the focus issue. Then you returned to stock and you still had issues with auto-focus? If that is indeed the case, it would sound rather dangerous to attempt rooting the phone.
[LG V20 Guides, News, & Discussion] Rajeev:
[MENTION=3181022]johanneswilm[/MENTION]

Hei

I dont have any problems with Camera. Yea problems with video is there but after flashing latest kernel its fixed. My camera focus works fine. I have tried with 6 camera apps and works great. Now using stock camera and google camera. No problems here. H990DS
[LG V20 Guides, News, & Discussion] Mars104:
No. retuning to stock resolves the issue.

Its strange how only some people are affected. I have returned to stock on three occasions each time focus worked in stock. However not after root.

1. rooted on 10c, unrooted and updated to 10f with lgup to verify focus was fixed retuning to stock.

2. Used lgup to return to 10c re-rooted then upgraded to 10f using kdz writer.

3. Returned to stock flashing 10b using lgup. Re-rooting and upgrading to 10f using kdz writer.

I have tried all available kernels. Can never get focus working in root. I also get the static screen issue unless I follow the alternative instructions (remove battery then manually reboot into twrp) doubt it but maybe the two are related (focus and static screen)...
[LG V20 Guides, News, & Discussion] kuachi00:
may i know what firmware version are you using thanks :)
[LG V20 Guides, News, & Discussion] Rajeev:
H990DS

Indian Variant

April Security patch
[LG V20 Guides, News, & Discussion] kuachi00:
hi i flashed your latest 0.2 kernel and iam experiencing call issues and i dont really know how to do the fix you gave with the link can i get some help from you thank you so much for your effort really thank you.
[LG V20 Guides, News, & Discussion] emdroidle:
I'm starting to wonder whether it was restarting the phone cleared the issue I'd had. :( The instruction was meant for [MENTION=4394458]Leicxan[/MENTION] for adjusting the kernel, mainly it appeared that one kernel change had fixed the issue I was observing, but I'm no longer so sure.

The "single-click" is going to take a while. Kernel is my highest priority right now. Likely the biggest improvement of an automated tool is an automated tool will be patient and enforce the long waits at step 16.

I got halfway since it was a handy intermediate point. LineageOS is tending to add changes which help LineageOS and not bothering to avoid damaging other attempts at using their kernel source (imagine if Linus Torvalds didn't worry about about breaking any configuration which differed from his). I'm planning to finish getting to the top of their tree, at which point we should hopefully have a supported version of LineageOS available.

Latest kernel being my v0.2? [MENTION=4394458]Leicxan[/MENTION]'s patched Werewolf?

Problem figuring out what exactly was done in Werewolf. The `git` history is distinctly jumbled. I see most of an update from Linux 3.18.31 to 3.18.55 (a noticeable number of commits were removed). Then I see some LineageOS bits reverted. Yet I'm left unsure of what exactly is doing what.
[LG V20 Guides, News, & Discussion] Rajeev:
[MENTION=6984210]emdroidle[/MENTION] my friend

I am sorry for not telling which kernel. Its [MENTION=4394458]Leicxan[/MENTION]'s patched Werewolf kernel i am using..
[LG V20 Guides, News, & Discussion] laneyyy:
I'm having the same problem with my focus not working at all on the main camera of my h990ds.

The box will come up when I tap the screen, but nothing happens.

Manual mode has the focus button always greyed out.

I've tried both the h990ds Kernal and the new 0.2 Kernal. Both the same.

Running magisk 13.3 and December 1st security patch firmware.
[LG V20 Guides, News, & Discussion] Leicxan:
I patched kernel is from his stock branch, this branch is based on LG's stock kernel source not lineage one, and he also upstream this branch to 3.18.55.

I don't know how to set up my git, may be I upload my source code to git will help you. [MENTION=6984210]emdroidle[/MENTION]
[LG V20 Guides, News, & Discussion] johanneswilm:
My experience: started with v10c-TWN-XX. I had recently obtained the phone, so it contained nothing of importance. Still, I had set up the fingerprint scanner, and that had apparently also activated encryption of the data section or some such thing. It asked me for a password upon reboot. My first problem was that I have Linux on a laptop and Windows only on a virtual box. The instructions seem to have been written written mainly with Windows in mind. I went through the motions of getting USB 2.0 working and getting LGUP up and running and to recognize the phone, all on the virtual box. All this just in case I needed to return to stock.

The other steps I could then run from Linux directly. There are files to do everything on Linux. Just run the *.sh files instead of the *.bat files. At step 16 I waited 2 minutes after each command, and it all worked the first time.

Once I entered TWRP, it asked me for some password. That may have been the password for the data partition. I didn't get it and just clicked on "cancel". I flashed kernel/su. Up to this stage it all seemed to work according to plan. On the first boot of the system it however gave me the usual password dialog. I entered the password, and it wouldn't accept it anymore (!) I tried it a few more times, just in case I had mistyped, but it just wouldn't work. In the end I formatted the data partition and then it booted correctly -- with all my data gone of course.

I then went ahead and tried running the kdzwriter procedure. From the firmware overview I gathered that the latest firmware for my TWN device was 10f. So I downloaded the corresponding file. The upgrade presented me with another issue, that I luckily was able to resolve by myself. I restarted the phone and it immediately started downloading yet another update -- I assume that must be a version 10 g that is not yet available as a download? I paused the download as I assume that such an auto-update likely will overwrite everything, including TWRP and the kernel. Is there any experience with how long it takes for new firmware upgrades to become available on the firmware download page?

As for issues with focus and video recording: Using kernel 0.2, I saw none of that. This should be noticeable right away, not just after a while, right?

Edit: One thing that annoys me still is that the phone immediately complains about a third party battery (Perfine), and even though it seems to have no problem running on it, about a minute after starting it shuts down with a message about "Invalid battery". If I could find the process responsible for this, that would be something I really would like to disable. But I realize this is an issue many are having and noone seems to have an answer to.
[LG V20 Guides, News, & Discussion] jblock92:
Question and hope I'm not overstepping, once I get into twrp following steps, do you think I can get away with just flashing an app that I want to be a system app and skipping super user and the kernel? Then reboot without a brick?
[LG V20 Guides, News, & Discussion] emdroidle:
No, things won't be functional. This procedure is relying on the `su` tool to take care of deleting the "verity_key" file from the initial ramdisk image. If that isn't taken care of no modifications to /system can be done and this is a major problem. I imagine this could be done manually...

QEMU here. A distinct PITA, but you have to be prepared. I suspect [MENTION=4591212]me2151[/MENTION] is on MacOS.

I don't know. I actually prefer downloading the KDZ files directly from LG, but that requires one to know where the files are. I was trying to use `tcpdump -w port80.dump 'tcp port 80'`, but QEMU was having a hard time getting a stable connection today. :(

Theory was to run LG Bridge in the VM then retrieve the URL from the dump, but that requires the USB connection to actually work. Seems today things weren't being helpful. Note, you'd want LG Bridge to start downloading the KDZ, but not get to the point of actually updating the phone.

Most of the reports are it takes 30+ minutes after boot for the problem to crop up.

I haven't seen anything like this.

Ah. It isn't actually 3.18.55 since a significant portion of the 3.18.55 changes are missing. Most of the delta from 3.18.31 to 3.18.55 is there, but not quite everything. I'm surprised at basing off LG's kernel working. I didn't know [MENTION=5672995]jcadduono[/MENTION] had managed to work around the static screen issue, interesting... I'll have to pass along my fixes to another source.

That is good to know since it means I didn't break anything. :cool: Though unexpected given the knowledge of being so close to LG's version, yet having this crop up. :(
[LG V20 Guides, News, & Discussion] johanneswilm:
Interesting. And indeed, after leaving the phone running for a while, I experienced the video issue, but not the focus issue. From previous answers here I had gathered that the video issue had been resolved with kernel 0.2, but apparently not in my case. Restarting the phone solves it for the moment. I still have almost no apps set up on the phone, but I did setup Greenify yesterday (and it's monitoring no apps).

Edit: Sorry, got it now. It's the werewolf kernel [1] that has fewer issues with video. I have flashed the kernel and will see how that goes.

[1] https://xdaforums.com/showpost.php?p=73294716&postcount=391
[LG V20 Guides, News, & Discussion] thrgk:
This work for Verizon ok right ?
[LG V20 Guides, News, & Discussion] whc.faith:
Just want to confirm that this method works well for me, perfectly. I don't experience camera n video problems, all just work normally. Even I've removed bloatwares via titanium backup. And also installed AdAway.

Mine is 990DS Singapore, I started it by downgrade it to v10b TWN, rooted it, and then used kdz writer to upgrade to V10f SEA. Kernel used it kernel h990ds.

Thx u [MENTION=6984210]emdroidle[/MENTION] :good: :o
[LG V20 Guides, News, & Discussion] kersian:
Cam I check if the camera resolution is correct? As in rear facing is 16MP?

I tried going to 10b TWN but the camera resolution seems to be reversed. Always start up in front facing mode.
[LG V20 Guides, News, & Discussion] laneyyy:
I thought I had hardware issues with my fast charge never working even though it sometimes said it was on, but I'm back to stock now and fast charge is always working. Not sure if that's a Kernal problem?
[LG V20 Guides, News, & Discussion] jobheger:
[MENTION=6984210]emdroidle[/MENTION] Thank you for making this tool to get root on my phone. I just bought the H990DS SEA variant a few days ago, everything is working great except for the focus on the camera. Maybe it has something to do with the SEA variant?
[LG V20 Guides, News, & Discussion] UL7RA:
Nope, I have SEA and no problems whatsoever, running that Werewolf kernel. The only thing I noticed is that I can't force the flash to be on in auto mode, it's greyed out, but I don't remember if I could do it before rooting. Not much of a problem as I use manual mode, and it works flawlessly there.
[LG V20 Guides, News, & Discussion] jobheger:
Oh, alright. Well we're both running different kernels since I'm running the h990ds-kernel by [MENTION=6984210]emdroidle[/MENTION]. Which is giving me that camera focus issue. Flash is working fine here in auto mode though.
[LG V20 Guides, News, & Discussion] emdroidle:
Is Verizon mentioned anywhere in the opener or title? Does the string "VS995" appear anywhere?

The answer to all of these questions is "no". I suppose there is a non-zero chance this kernel could work on a VS995, but working on a VS995 wasn't a goal of mine.

Unsure. There are plenty of hacks to force fast-charging to enable though. Some of those even make it sound like LG deliberately broke it under certain conditions. You're the first report of this particular problem.

I really need that magic bullet which fixes this. :( I plan to take a pass at the alternative kernel source and see whether I can make it work better. (I'm forced to give [MENTION=5184450]USA-RedDragon[/MENTION] credit for finding the better upstream, but some of the kernel option choices and patches seem rather poor to me)
[LG V20 Guides, News, & Discussion] jobheger:
No worries man, take it easy :) I think we all insanely appreciate what you have done so far.
[LG V20 Guides, News, & Discussion] whc.faith:
Everything works just fine. Maybe you could upgrade it to 10f-SEA via kdz writer.