yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] webslasher:
US996 just flashed this and it seems to be working, Havent checked backup filenames

one issue I immediately notice is that battery stuck at 50% regardless of the real percentage of battery

EDIT Wait, it does go up above 50%

I swear I saw it stuck at 50% when my battery was around 30-40%

EDIT2 TWRP seems to report my CPU temperature wrong, it says 15C but if i use kernel adiutor it's around 46C at boot
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Once in a while it seems to stick at 50% battery, not sure about the CPU temp being accurate or not, there is much less load on the system since its only displaying the GUI and pretty much nothing in the background.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Omar-Avelar:
This is the fix for that anomaly: https://github.com/LineageOS/androi...mmit/9c858f18541cc59d488357eb4771b42a8f325108 [MENTION=2881807]x86cpu[/MENTION] found that defconfig introduced that strange behavior. You might want to incorporate it into your twrp builds :) (hope that's it)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Thanks, I'll check it out, hopefully it works and doesn't break usb-otg or something.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] quanqw:
I wipe data by factory reset. But I can install root explorer. It show privious vesion installed.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
I'm not sure what you're trying to ask/say. Doing the wipe in twrp won't unroot because it doesn't touch boot or system.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
[MENTION=5103965]Omar-Avelar[/MENTION] well, that wasn't it: its already configured that way. I'll look and poke some more later.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] quanqw:
It can not wipe completely. I can not install app.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
What app? What happens when you try to install it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] webslasher:
Ahh, I see it's good to know that it's a known issue. About the CPU temperature, i'm not so sure if it's isolated to my device or not, my phone always report wrong battery temperature (always at 21~23C even though heavy usage), but CPU temperature is accurate at least in Kernel Auditor. There's something wrong with my sensors but i'm not worried. Battery level on the other hand is more important since I have to know I have enough charge when backing up :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
You cannot wipe through the OS option, the twrp won't honor the wipe flag, it never did anyways since /misc never got mounted. You need to wipe inside twrp.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Actually misc does get read, but I don't think it'd honor the wipe flag specifically since that's how the device gets the stock recovery to trigger its wipe. My first build only wiped /data just like stock, but there's a boardconfig option I since enabled for it to ignore it.

[MENTION=4291410]quanqw[/MENTION] if you do want to wipe, it should be done inside twrp. But wiping is different from unrooting and I'm still not sure what you mean.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Correct, it never used to be mounted, and older non-Phoenix591 twrp do not mount it. So the wipe-data via OS option never used to work anyways. I know your new version mounts /misc and handles OTAs properly now while ignoring the wipe data flag (as not mounted /misc will do, but that also prevents OTAs for applying properly and causing a twrp "boot-loop", as it continually though it had to apply the OTA). Thanks for the hard work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] quanqw:
While I format data after unlock bootloader and first install this app. It installs normally but now I can't because I do factory reset. Factory reset can not delete data app completely. I thinks so.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] quanqw:
I try install it via LuckyPatch and it show this.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Looks like the original apk is on an sdcard, have you tried redownloading it and installing the unmodified apk? The error sounds more like the apk is corrupt rather than it finding any preexisting things in /data.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] quanqw:
No. The apk is normal. It installed nomally previous.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
OK..go ahead and try wiping in twrp again, and once that's complete (still in twrp) go to the main screen (press the home icon) then tap advanced and then terminal then type

ls /data

(press enter) and there shouldn't be much on the screen as output, can you let me know what it says?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
3-20-18 version installed

H918 AOSP

Date shows as 4-22-2020
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gadianton:
I got 1978. I am on v20 918. Is there a way to double check the TWRP version installed? I flashed the 3/20 version and rebooted into system before checking the year.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
New builds going up, both enc beta and regular. Try the enc beta first if using encryption, it uses TWRP's service scripts rather than my monstrosity of a script so it'd be great if we could just use theirs going forward, but the regular has things decryption setup just like in the past so it SHOULD be good.

New mk2000-clang builds for 2.2 are being built and uploaded now as well. (I'm on lineage 16.0 at the moment so these ARN'T tested)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
Tried them both, first the beta and then the regular.

Data decryption does not work with both unfortunately.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Capt_rusty:
Also couldn't decrypt data with the enc beta on my H918, but the regular build works fine for me.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Stock Oreo?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
Yes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
I've no idea what kind of Frankenstein tweaks they did, but LG did something so that their V20 Oreo vold (the Android part that actually does the decryption) won't run in TWRP. I've tried several ways to get a peep out of it, and nothing. Just silently fails. I've given up on it at this point. If the rumored PIE update ever materializes I'll get back to stock encryption, but for now I'm just looking at nougat stock, and lineage.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
I know about vold, we have spoken about this before :), I just hoped that the LG G6 Oreo TWRP implementation would also work for the V20, I guess it did not.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Looking more closely at that thread.. they did some patches to twrp itself.. I'll see about doing a test build with those and we'll see how it goes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yplim2300:
TWRP 3.3 bricked my phone VS995.

no need latest version, 3.1 is good,
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bccrosby:
Is this TWRP version 3.3.1-0 available for lg v20 h990ds 2 sim version?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
The h990 version works for all h990 variants, dual and single sim. we're not using cellular service in twrp itself, and there aren't many other differences between the h990 variants.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kchung:
nt
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vs995Child:
I've noticed a couple of vs995 people stating that the new twrp bricked their recovery, is this still true? Has anymore vs995 users tried the 3.3 with any success?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mikekote666:
H990DS Recovery Gone After Flashing The New Img
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] johnnycm77:
I've been using 3.3 since the beginning and haven't had any problems out of it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mangokm40:
h918 working with 3.3.0 and now 3.3.1

Used both versions to do backup/restore and install LineageOS 15.1

I've no issues. I should say no "unknown" issues. :) My battery says 50%. :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] runningslow:
When in TWRP, my phone H918 currently says its "Sat, May 2 20:11:46 CST 2065"

Only a little off.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] MEMO#22:
i have no idea what i'm doing wrong here......

i have a unlocked and rooted my LG V20 H910 and installed TWRP currrently at 3.2.3-1

but after i install the latest one (3.3.1-0) it just goes to fastboot :(

i wanted to install gamma kernel for LOS 15, but they did mention of using the latest TWRP

but i can't...... even installing any kernel just reboots to fastboot :(

am i doing something wrong here?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
For now, probably best to use the previous TWRP version. Off the top of my head, there probably isn't any changes likely to affect a simple kernel flash.

Unless I'm wrong, then OP can correct me. When I had my V20, using 3.2.3-1 never failed on me for anything.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] MEMO#22:
Yeah i do kind of get it that installing the latest TWRP is not really that necessary, but even on older versions, kernel flashing just soft brick the phone..

ROMs, Magisk and other zips seems to be fine
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aygross1929:
Any possibility of releasing a new version of ur kernel based off the latest/last mkkernel ur versions of the kernel have been much cooler running and better battery life then stock mk2000
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mikekote666:
[MENTION=8639605]Phoenix591[/MENTION] +1
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] TheCoryGuy:
Every backup that includes data fails. :(
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aCIDsLAM:
Strange. Now i get this problem too. I am still on 3.2.3. Didnt have that problem b4. Mhhh

UPDATE:

It seems my DATA was corrupted :/
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
New MK2000-clang builds. As I'm on lineage atm these ARN'T TESTED. As always, thanks to askermk2000 , Mk2000's developer for keeping up the work ( its 99.999% him and I just applied a few patches others made that allowed clang to build these and did the actual builds)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] reza_xdv:
Are these builds based on the re-uploaded 2.2 stable?

And another question,

We have created a bounty thread for building a new kernel for stock oreo. Can you have a look at it and build the kernel? Here's the link:

https://xdaforums.com/v20/development/bounty-kernel-h990ds-stock-oreo-t3952667
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Yeah this is pretty much 2.2, not sure if it has whats in the reupload or not. This looks closer in date to the original than the reupload, but getting the changes in isn't going as smoothly as usual.. going to take more time.

As to starting a new kernel/updating DOTS for oreo, I'm not much of a kernel dev, I poke at configs slightly and added a useful patchset someone else made to make it work with clang, but that light sort of work is about all I'm comfortable with.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] reza_xdv:
Here, the mk dev has talked about the re-uploaded 2.2 kernel. It has some fixes which noticeably improves the previous 2.2 stable build.

https://xdaforums.com/v20/development/bounty-kernel-h990ds-stock-oreo-t3952667/post80008515
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
yes I saw the post saying there ARE fixes and stuff, but doesn't have much info on what they are (the first deleted builds didn't have it, but these new ones definitely do). I spent another hour or so and am doing another build that will have whatever's in the reupload. (rebuilding and rereuploading now)

Based off of this while the first one was based off of this
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] reza_xdv:
There's a text file in the re uploaded folder in his afh which states the changes.

Anyways thank you for the quick update.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
yeah, last 3 builds are uploading now. (vs995 and us996), others are all ready (those last 3 will be done in a couple minutes)

All the new mk2000 builds are uploaded, and today's old ones have been deleted prevent confusion
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BadToThePhone:
Do these new kernels work on only certain roms?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Stock oreo only. Its 99% mk2000
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BadToThePhone:
What's the difference between this and the other stock mk2000 kernels? Also will there be a nougat version? Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Its been built (converted to machine code) by clang, a different compiler. And no, no intentions to do a nougat veraion.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aygross1929:
wrong thread mbad
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] kim12355:
i'm backup stock rom on f800l v20g. when i restore it show green screen with error

how to fix it. and how can i backup and restore completely
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
Hi

Looking for a pointer to another way ... I'm reading but thought I would ask you pros

I have a US996 unlocked and need help deciding what to try after installing twrp 3.3.1-0. I'm getting encryption unsuccessul and the phone is rebooting back into twrp when I install us99620f or us99610p. I tried encrypt-v3.zip and magisk 19.3.zip with 20F and get forced back into twrp after the encryption unsuccessful and the reset prompt.

Am I wrong thinking that I can not install a zipped version of twrp? When I installed 3.3.1-0 I did it by using adb to get into download mode and doing the fastboot flash recovery recovery.img command. Since I can not boot into the phone I can not get into download mode by using adb. Is there another way to load twrp?

I tried going back to nougat to see if that would help get rid of the encryption issue but the same thing happens.

Is using a kdz with LGUP the only alternative or could I use a terminal prompt within 3.3.1-0. to do a dd of another recovery image like 3213?

Thanks

encrypt-v3.zip

recovery3231.img

us99610p.zip

us99620f.zip

3.3.1-0

encryption unsuccessful
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
wipe-format data -> yes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
Hi Phoenix591

I tried that within twrp but same result when booting to system. I wipe dalvik cache system data and the do a format data. Then install 20f and magisk and boot to system which brings up the decryption unsuccessful message.

There is a factory reset or similar at that same screen and I pull the battery at that point to do the hardware buttons to power up to twrp again I get a message in twrp asking if I want to keep the files read only or swipe tif not read only...I always swipe because I would lose twrp I think

Does having an unlocked US996 mean that I could still reinstall twrp by running fastboot on a computer if I said yes to read only? Or at the decryption unsuccessful screen where there is a button to reset , what would I lose if I chose reset?

Are the recovery and aboot altered so that Fastboot can no longer install a custom recovery?

There is a procedure mentioned by prowler_gr where you pull the battery after using lgup and installing a kdz,booting to download mode and reinstalling twrp from there but I'm still reading to understand implications so I don't shoot myself in the foot sorry for such a long post
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Hitting reset on the decryption screen would put you in a twrp loop I think. Try an older twrp version, the 3.3.x have been wierd about formatting data.

Install old twrp, reboot into older twrp, wipe-format data, reboot into twrp again*, reflash magisk.

Saying read only only has a chance to cause an issue on totally fresh flash of a stock rom.

You have working twrp to flash stock roms, those include firmware; the only reason to think LG UP at this point is if you want to try totally stock.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
Awesome! Thanks for teaching me Phoenix591! Oreo installed perfectly :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DerGauss:
Hello, phone is H918 first of all. I have a strange thing going on here. TWRP boots fine from download mode. I flash the latest TWRP onto recovery partition. Then, when hitting vol- + power button brings the factory reset screen, hitting yes twice should boot TWRP yet it erases the phone. Flashing TWRP img on recovery partition again THEN reboot to recovery directly from TWRP on doanload mode will give me a "no command" and then phone reboots to system. I don't get it.

I used to have TWRP working on recovery but I had to flash the phone to 100% stock for some reasons so I used the laf_restore.zip then flash h91810p thru LGup but now, even after following the exact same steps, I cannot have TWRP written in the recovery partition...Maybe I'm missing something but here's the steps I follow :

-Phone is set up with all the basic settings.

-boot to TWRP (download mode) using vol+ then USB.

-Flash TWRP img to recovery

-Power off or reboot to system or reboot to recovery (which leads to a "no command" error), tried all options (also with or without format).

-Vol-/power, releases power once LG logo appears then power again (while maintaining vol-). Makes the factory reset screen pop up, hit yes twice. Normally I should boot to TWRP but it won't in my case. It keeps erasing the phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
This should probably be asked here instead https://xdaforums.com/v20/how-to/step-step-guide-lg-v20-h918-unlocking-t3808258
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
Seems like this should work...chicken to try it without asking first haha

Just a question regarding stock roms for the us996 version of the v20...if it is using stock rom and you are using nougat 10p or oreo 20f and you unlock it using the lg site, can you then install twrp through fastboot,reboot into recovery and install a zip of oreo 20f along with magisk to get root? Or is there something in the 10p and 20f roms that disable rooting even when you are using an unlocked us996?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
yes you can install through fastboot once you unlock by flashing the file generated from LG's site.

You do have to pull the battery after flashing twrp in fastboot, because android tries to reflash recovery with the stock recovery on every boot to system (the normal OS) if its been changed. (flash in fastboot, pull battery, boot twrp, flash magisk and/or rom to automatically disable the stock recovery autoflash)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OptimisticShaggy:
I unlocked the phone via the bin file. Tried all of the TWRP versions here: https://dl.twrp.me/us996/ & the one the OP posted using your method, no go..
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Detailed description of whats happening/your steps/error.

Not telepathic over here.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OptimisticShaggy:
Sorry., followed to the tee, the recovery that would come up would be the option to either erase data or not erase data. Since I unlocked, it shows the system has a unlocked bootloader I would let go of the button before that, am I suppose to do this afterwards?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
That menu will always be there. Say yes twice and the phone will boot recovery and leave it a note to wipe data. Twrp is set to ignore all wipe/factory reset notes and will just boot to the main menu.

If youve booted the phone normally since then you'll need to reenter fastboot and reflash twrp, as like I explained earlier, anytime the phone boots normally and recovery is old or modified it reflashes the stock recovery.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OptimisticShaggy:
Still pretty new at this. Didn't realize till now to erase the recovery partition first. Thought I did that too. Happens when you have a full nights sleep & work a 10 hour shift. lmao.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dilligaf56:
Hi all -

I'm on a LG V20 US996 (unlocked, NOT US Cellular version) - running rooted stock Nougat ROM for quite a while without problems, but I know that pretty soon some apps won't install on it because it'll be too old, so want to install LOS 16 Pie on it. Downloaded all the zips, not sure whether to install the "DS" version or the one without the DS (I assume that means "dual screen", if not, forgive my ignorance, though I assume the DS version is what I want). In any case, I get an error when trying to flash either one:

Installing zip file '/sdcard/lineage-16.0-20190911-X86CPU-uss996-DS.zip'
Checking for MD5 file
MD5 matched for /sdcard/lineage-16.0-20190911-X86CPU-uss996-DS.zip
Warning: no file_contexts
E3004: This package is for device: us996; this device is .
E: unknown command [log]
Update process ended with ERROR: 7

The only reason I can think of is that I'm using an old version of TWRP (two years old!)

If I upgrade to the latest (3.3.1-0) version, will I have any problems restoring my Nougat nandroid should I need to?

Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] OptimisticShaggy:
DS stands for Dirty Santa, you would use DS if you used the Dirty Santa method to get to the bootloader of your device.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
yes the error is from your ancient twrp. The DS in this case means dirty santa, as in, did not unlock the bootloader through LG (red warning when booting, not yellow-orangish (I'm slightly colorblind))

You may or may have trouble restoring it...you're on literally the first version of twrp for the v20 and a lot has changed since then. I find it easier to have seperate backup for my apps and app data (which the standard twrp backup does NOT include) using titanium backup, and for the firmware just holding on to the rom/stock flashable zip, and that covers everything except the misc partition and the efs (modemst1 and modemst2 iirc)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dilligaf56:
Thanks!! Used LG bootloader unlock, not Dirty Santa. Flashed new TWRP and am re-backing up my Nougat setup now. I use Titanium Backup and have a current one. Will post the results once all is done. Again, much appreciated!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] dilligaf56:
Upgraded TWRP to the latest and made a new nandroid backup. Though there was some issue with the new LOS 16 install (wiped as per instructions and installed LOS 16 (us996.zip), the preferred GApps (Open, 9.0) and Magisk, rebooted, got the little arc-and-circle animation for about 10 minutes (as expected), but then it simply rebooted into recovery; tried rebooting again, same result).

New TWRP works beautifully, though, even with the beta data/internal storage image feature. I was able to fully restore from the backup; for now I'm back on stock/rooted Nougat.

Thanks for your excellent work!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] HelloG3_MotoNoMore:
Not so fast!! The 5-18 beta DOES NOT DECRYPT v8.0> Of course it works on v7.x, but so does the official 3.1.1.0.

Still seeking a solution. The NOT beta version is rescinded?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Old news no solution, its still right there in the known issues, never figured out wtf lg did to break decryption for oreo and have stopped trying to figure it out