yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
with very little activity lately for the LGV20, specifically the H918 T-Mobile variant, I created a TWRP flashable package for the recent H91810q release. this zip flash every partition included in the latest KDZ package with the exception of recovery to keep TWRP. standard disclaimer applies, you do all of this at YOUR OWN risk! because 10q is not rootable, you need to be root'd before flashing this! failure to do so will probably cause you to lose root and/or lose TWRP! and worst of all, because 10q can't be downgraded to 10j (last version where you can still obtain root via dirtycow) because of Anti-RollBack, you're fscked!

NOTE1: you can find the partitions that will be flashed in the updater-script. to be extra cautious you can back up all of the partitions that will be overwritten with the following: dd if=/dev/block/bootdevice/by-name/{partition} of=/external_sd/backup/{partition}.img.

NOTE2: boot partition has been modified only to remove rctd, nothing else so I consider this to still be stock

Instructions:

download H91810u.zip file listed below and put on microSD card

download your choice of root and put on microSD card, choose from either Magisk or SuperSU *Note: v12.0 of Magisk does not work with the LGV20 device in general and v14.0 is recommended.

backup any data from internal "SD card"

boot into TWRP (requires TWRP recovery to already be installed)

create a TWRP backup of the device

flash zip from microSD card by using "Install"

FLASH YOUR CHOICE OF ROOT - Flashing root is VERY IMPORTANT BEFORE REBOOTING!

reboot

profit!

Download:

H91810q.zip

old 10q md5sum: 8c2e76ded9759a63b1ffac86f3941649

new 10q md5sum: c7d4086b3a0a786d1501ef7e4ce22f32 - re-zipped in Linux for proper alignment

H91810r.zip

wrong 10r md5sum: 9e2e1f8c56079d7bf629ce5e375d7551 (this is actually the md5sum for the KDZ)

correct 10r md5sum: 194b2bc41aa6dbdd7b9a371392f7b930

H91810s.zip

10s md5sum: f187fdefe4c3612c5811e9fbeb0748c5

H91810t.zip - rctd and triton both disabled, previous versions only removed rctd

10t md5sum: b00c2f644b15eb15e459c48830caa5da

H91810u.zip - rctd and triton both disabled, previous versions only removed rctd

10u md5sum: f51b2b11a30dc448b0da0edc750bb587

Flashing Process (what flashing this zip does):

flash necessary partition images with the exception of recovery (to keep TWRP) from the KDZ

rename /system/recovery-from-boot.p to /system/recovery-from-boot.bak to prevent stock recovery from being installed on boot

wipes dalvik-cache and cache

BIG thanks to [MENTION=8014854]McNutnut[/MENTION] on guidance, as well as his script to put all of this together!

also thanks to [MENTION=2452553]bullghost[/MENTION] for the KDZ extractor (https://xdaforums.com/showthread.php?t=2600575)

[MENTION=1325580]Tilde88[/MENTION] for the original updater-script template w/root (https://xdaforums.com/v20/development/us996-nrd90m-modded-notsostock-rom-v5-1-t3526542)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Awesome thanks.. I'm on it!

---------- Post added at 12:50 AM ---------- Previous post was at 12:07 AM ----------

Didn't work... Still shows 10p. I noticed the flash process was rather fast also.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] texasaggie1:
Dude, thanks for whipping this out so fast! (TWSS) I will get right on making a debloated rom from this. Is it ARB 1?

So I HAVE to flash root? Sometimes I don't flash root because of my gear S3 watch.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
I just flashed but still showing 10p. But the kernel info shows Sept 12. So the kernel is updated but wondering on why it still shows 10p on software info @ about phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
hold on, let me re-zip and re-upload. I had used two different methods to add the files to the archive so I'm going to re-do it all with one method

yes, this is ARB1 and yes, root is needed if you want to stay root'd
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
As you can see the updater script shows install 10p.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
yep, for some reason using Windows to create zip files causes inconsistencies. I've zipped up everything in Linux this time and double checked the updater script to make sure everything is good to go and am uploading it as I type... I've already updated the OP with the new md5sum and the link should remain the same. I'll give a heads up once it's live
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Ok thanks for your time. Appreciate it. ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
done! uploaded and downloaded myself to verify everything is the correct one. this should bring you to 10q for everything... sorry for the troubles of flashing again. don't forget to flash root just in case lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
No problem. No apology needed being you really don't have to do this for the community. Thanks again.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Still_living714:
Sorry if I'm asking an obvious question but when did t mobile release a new update? I thought the latest version was 10p???
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Flashed... All good!

---------- Post added at 02:41 AM ---------- Previous post was at 02:40 AM ----------

Mine came yesterday. Updater to 10q. If you haven't gotten it yet you will..
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Still_living714:
Any big improvements that you can see?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Lgv20user:
i flashed and once i unlocked my phone, it kept saying process.android keeps stopping repeatedly. booted back into twrp to restore the backup i made in twrp and now the keeps rebooting to the lg screen. Can anybdoy help me out please. i was ww kernel and 10k
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
I would have to wait and see. But first hand it's about the same as 10p no rctd.

---------- Post added at 04:02 AM ---------- Previous post was at 03:26 AM ----------

First of be advised that this is anti roll back. Once on it you can't go backwards to other older roms. In reference to your problem you'll have to do a battery pull. Put battery back in. Now hold down volume down and power button at the same time, when you see LG screen release power button for two seconds then push again holding down power. During all this never release volume down. Now you'll get a reset screen with yes and no option. Use volume key to choose yes, twice..... This will get you back to TWRP. In your case I wouldn't even bother with back up but you can try again if want. What I would do is flash something else that I know works. Then decide from there what to do... Maybe redownload again. May be corrupt some how. I assume your on h918. Hope so! Good luck.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Lgv20user:
what do you recommend i flash
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Well we really don't know if your system went to 10q now, so........ You can try again. On both, the backup or 10q. Since you know now how to get to TWRP with battery pull you can try both, see what works. Try backup first. If it doesn't work you may have system in 10q now being you backed up a 10k system may not work now. If it doesn't try q again. If that doesn't work then download 10p or redownload 10q and side load on TWRP from computer. Then flash again. These are steps I would do.. if someone tells you different then it's your choice. Different ways for different things.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Lgv20user:
so 10q is showing up. i am having issues with the modem i believe because i dont get tmobile recepetion and as soon as i put into airplane mode, the error message stops.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
I haven't tried the 10p (n) weta kernel yet but it may not work being this stock kernel on 10q is updated to the September security patch. May try later today.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jt1954:
First off, thanks for keeping my beloved H918 alive!. Thought all future dev for the V20 was dead.

Now a question. Any timeframe on a debloated version? Not in a hurry mind you, just curious.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
No you can't. Once on 10q always on 10q due to ARB01, you have something strange going on there. Also try to format data in twrp. It'll all to type yes if your sure, type yes and swipe. Do this 3x. All I can think of at this moment. And just flash 10q and root. That's it... See what happens.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] runningnak3d:
Have you flashed ALL of the 10q firmware + 10q boot + 10q system? Don't try a custom ROM until you get everything working on 100% stock 10q.

If you flash the 10q KDZ with LG UP, your phone will not be rootable anymore, and if flashing the COMPLETE 10q firmware doesn't solve your problem, then flashing the KDZ wouldn't either since that is exactly what it does. You would be stuck with a phone that still has a problem and no way to fix it anymore.

If you have flashed ALL of 10q (with no root -- keep TWRP obviously, but no root for now) -- with a full wipe. I mean wipe literally everything, and you are still having the problem, it could be a problem with a couple of the writable partitions -- misc comes to mind as a start.

Let me know.

-- Brian
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Yeah take Brian's advice. A lot of experience.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TheMattMercy:
EDIT: Ah, I see. Flashing root at the same time was f*cking it up. Thank you SOOOOOOO much man! I really appreciate it!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] runningnak3d:
1 - Yes, there is a 10q boot and system that is not included in the zip from the first post. If you can't find them, let me know and I will extract them for you.

2 - No. As long as you have an unlocked bootloader you can have TWRP -- no root required. You only need to root if you run a modified boot (kernel) or want to modify system in any way.

3 - Yea, DON'T flash the KDZ it won't fix anything that you can't fix now.

4 - Yep. Go into advanced wipe and check everything except for internal or external storage or USB OTG, then click the format data button and type "yes". At this point you will have no system. At this point, flash the 10q firmware from this post, then flash the 10q boot and 10q system. Again, let me know if you can't find them. When you boot your phone, it will be bone stock. If you still have the problem, then we will need to diagnose it further. If you don't, then you can root. I would stay away from Xposed -- it just isn't ready yet for 7.0, and it may NEVER be. Some people have no problems depending on the modules that they run, but I have heard of more problems than not.

5 - I am guessing this was for [MENTION=2933708]storm68[/MENTION] :)

-- Brian
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Hey Brian, I'm running 10q from here and I never did a flash of modem or bootloader. It flashed and ran right outta the box. There's another post where it this but debloated that does require it. But as for this one I never did flash those two.....
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] runningnak3d:
[MENTION=2933708]storm68[/MENTION] - LOL (at myself). There are two threads that have the H918 firmware. I don't know why, but I thought I was in the thread that has JUST the firmware. This thread has the ENTIRE 10q firmware, plus boot and system.

Sorry for the confusion. So, yea, if you flash this zip, you get everything that the KDZ would give you minus recovery so you can keep TWRP.

-- Brian
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Lol. Yeah I was wondering... I laughed.... I've done that numerous times myself. Lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dudeawsome:
does anyone have a 10q kernel with kcal
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pbedard:
Delete.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] HiddenKnight:
Alright. I am ultra tempted to flash over to this. I'm currently still in 10k. I love having the ability to flash around but with ARB01, I am having second thoughts before doing so. Is 10q really worth the compromise of losing access to any other ROMs? I hear better SOT is a thing, GPS works better(?), not really much lag(?), etc. I do swap back and forth (sometimes) from Megarom to Unofficial LOS. Once every two weeks, then I regret aosp on this phone because of audio and camera quality gets turned down. I'm comfortable with being on LGs software, but in my short description, does it sound like it may fit me.

Honestly, I am getting to the end of my rope a with this phone. I tried to build unofficial copies of the Deso tree and it's not working for me.

So I don't think I really care much for having any access to different software.

10p or 10q firmware modem/bootloader bits?

Then 10q system zip

Then choice of root

Then reboot - I see some allow 10-20minutes for boot or a reflash to get the system to boot.

Then if I want, I can flash a kernel there after?

I read all 19 pages and the instructions are slightly scattered but just want verification that I understood the process entirely beforehand.

I don't want to follow the procedure if it's not *really worth it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
[MENTION=5687667]dimm0k[/MENTION], 10R is out if your interested...... ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
original post updated with 10r!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pyrorob:
somethings up with that download, when 10r is clicked, you get a download for a h91810q, that matches none of the md5's...

so that 10r posted is 10q, files match

btw md5 of 10r zip posted: 194B2BC41AA6DBDD7B9A371392F7B930
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Yes, same here.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
sorry, make a couple of minor errors posting... the md5sum that you mentioned is actually the correct one! the one previously in my original post was for the KDZ so simple typo there. as for the download file itself, I had forgotten to rename it after packing it so the downloaded file is correct. original post and file have been corrected
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Tried flashing 10r and it just hangs at LG logo for half hour now. Good thing I have a backup. When I flashed 10q awhile back it didn't take that long. Very odd.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] coolcapnc:
Is upgrading to 10q/r worth it? I am getting pretty frustrated with LineageOS
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gadianton:
10q has been great for me. I upgraded to 10r this morning and so far no problems.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Did you just dirty flash and how long did it take to boot?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gadianton:
Dirty flash and ... maybe a minute or so until it got to the Android is updating part. Then maybe like 10 minutes going through that part.

I will add I forgot to flash Magisk after it booted so I had to get back into TWRP to flash that. Then I flashed that new kernel that has been active.

I guess the only little mishap is TWRP asks for a password to decrypt internal storage and when I click cancel it doesn't see anything in the internal SD Card. Which isn't too big of a deal since I put most of the flash stuff on my extSDcard and it flash it all to system just fine. I was planning on looking into that when I got the chance.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Hhmmmm. Mine stayed at LG logo forever so I had to restore backup. I'll try again
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gadianton:
Maybe clean install? and then you can restore your data partition?

When that stuff happens I usually clean install and then restore apps from TiBU
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
only thing you can do is boot up, copy the contents of the internal SD if you still want them, format internal SD in TWRP and then restore the contents after.

I'm not sure what happened to cause your issue, but could it be that you left out flashing SuperSU/Magisk? I do recall that once I had forgot that and it took a while to pass the LG logo because Android was encrypting the internal SD.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Actually I redownloaded file and it worked. Must of been corrupt.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dudeawsome:
can we flash 10r over the 10q?

---------- Post added at 07:06 PM ---------- Previous post was at 07:02 PM ----------

what kernel? is it based off of the new 10r?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gadianton:
This one

https://xdaforums.com/v20/development/h918-h910-us996-ucl-mk2000-kernel-t3708330

And yes, I believe it is based on 10r.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kelvin216:
Hi, is the 10r Rom link not working, keep getting an error when trying to download thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
just double checked, still works. are you downloading on the computer?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kelvin216:
Got it

I got it to download, no problems now, thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
is it possible to flash 10r over 10k...I know it it is... but has anyone done this?

---------- Post added at 07:09 PM ---------- Previous post was at 07:02 PM ----------

am about to take that plunge now..been on 10k for the longest...and sometimes...you want the latest and greatest
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Go for it! All the roms are pretty much outdated anyway.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
Thats how i feel... and I rember you saying that 10n works on 10p? have you tried it on 10r?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Using it now! Best kennel thus far. 10r is smoother too, acts well with 10n kernel.

With bluactive governor.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
sweet... are you using the weta kernel or mk2000 kernel?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Weta that's the 10n I was referring too.

Weta on bluactive gives me no lag and in 12 hours with moderate use I'm at 80% not to shabby. But looking forward to see how far mk2000 gets
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
Right... i thought about the name and that kernel has it only for now..have you tried it on 10r? am about to flash it..
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Yes on 10r now. With Weta
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pre4speed:
Can I go directly from P to R? Downloaded Q but never updated.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dudeawsome:
can you send the weta kernel? Also is it based off of the 10r source
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
No... Based on P, but, P, Q and R are all in the same I believe. That's why it's flashable and can cross from each update. If you know what I mean. K and below are not, vice versa.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dudeawsome:
ahh can you send the link also they are compatible but it does not have the latest security patches
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Correct. Yeah that I knew. I don't have a link at the moment, I'll get one to you tomorrow. Time to crash. Lol

Actually see if this works, https://drive.google.com/file/d/0B3h58fDUciH4YzJCU1VhVk9mbHc/view?usp=drivesdk

If not then tomorrow.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
Here's the link

https://xdaforums.com/newreply.php?do=newreply&p=73530099

*****its 10n weta
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dudeawsome:
Thanks bro
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] coolcapnc:
So, I am stuck on the T-Mobile screen. I flashed R overtop of my installation of LineageOS, then flashed Magisk. I assumed, based on OP, that the R package would wipe system and all that, but I have been stuck on the T-Mobile screen for a good 15 minutes now. Thoughts?

Update: Wow, ignore me, went back into TWRP, manually wiped System, Dalvik/ART, and Data, then reflashed both and it booted faster than I thought possible lately
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] storm68:
Ouch.... I would of installed an older stock version first before commencing to R. Being that R is anti rollback 01. With that said versions 10p,q and r will not play well with lineage os. It just won't boot when flashed. So...... That's why it would of been better to flash a rom with 10k or lower first, then upgrade. This is just my opinion in how I would of done it to avoid conflicts. If you have an older version like 10k in SD card go back to TWRP and flash that instead. Or hopefully you made a backup and just restore that and do again but this time with older version. Be aware once you go ARB01 Lineage is out.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
does anybody have a h918 10r boot.img that boots? am trying to update weta 10p to 10r but 10n does boot properly..thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] racinmason001:
Any luck with the boot image and WETA update?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] crazyut:
Update: Christmas Eve, it works. yeeahh

I cannot get either one to download. A small what appears to be corrupted file. Google problem? Tried phones and computers.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bountyman334:
Well.. Its works..But I want to deoxoxed it and it doesn't boot...I guess because of the boot img..So far..I only been able to add the second screen mods..With out flashing the whole system...And am guessing 10p weta 5.1 #2 wasn't dexoxed
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] firstblud:
Just setting up my new v20. I setup TWRP and installed magisk 14.0 on top of stock 10j.

I understand that if i flash anything 10n or above, i can't go back so it's important i try my best to preserve twrp/root.

1) If I move forward with flash to 10r, can i also apply the mk2000 10r kernel on top of this?

I assume the order is: Install10r rom, Installmagisk, reboot, Install mk2000, Install magisk, reboot

Is this correct?

2)Does this zip also update the bootloader and modem? Reading through the threads, this sounds like a prerequisite step before flashing the ROM (steps mentioned in question #1) from the OP. Unfortunately I can't find a link to the bootloader/modem in https://xdaforums.com/v20/development/firmware-twrp-flashable-bootloader-modem-t3547268 as the links were taken down.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dimm0k:
correct, always flash magisk before leaving TWRP. the bootloader and modem are already included in this zip...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] stillblaze01:
Is there a list of apps that I can remove safety. And me deleating them is that the same as the rom being debloated.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] firstblud:
thanks for the confirmation and everything else! managed to flash without issues.

What I did:

(few days ago) 10k-> stock kzz 10j -> install TWRP 3.1.1 to recovery -> install magisk 14 -> reboot -> (today) install stock ROM from this thread 10r -> install magisk 14 -> presto!

Next i'll consider mk2000 kernel -> re-install magisk, but i'm enjoying the phone right now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
How did you go a out getting to 10r on Weta and can I do it without wiping anything?