yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
You dont have a vendor partition to mount, it was put in because x86cpu was close to making a full treble /vendor partition setup but hit a big roadblock getting the camera working, and then Pie came out and hes working more on lineageos 16 at the moment.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nickthaskater:
Oh, I thought vendor was an Oreo thing in general. It was also a bit confusing to see the vendor folder within root/system, as well as see Magisk stating that it was mounting both system and vendor when flashing in TWRP.

Good to know I'm not "missing" anything :)

Edit: Doing a bit of legwork on my own yields results... Apparently /vendor is simply part of system on the V20. +1 for research.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] elbi14:
I'm on latest stock rom h918 with twrp from official site. How to change to this twrp ? Can i just flash it on twrp ? (Install image recovery)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
Yes. You can also use Flashify
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] elbi14:
Thank you. I'll try flash it

Do you know what this for?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] eroneko:
Can't decrypt data with default password after I flashed us996 oreo 20f. It worked fine on vs995 oreo 20a.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
Did you format data to remove encryption
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Known issue in the OP: stock Oreo decryption is broken.

Are You sure you were actually encrypted on the Verizon firmware? It definitely doesn't work on my H918
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Electrolite_XYZ:
I'd like to know if it's possible for TWRP to restore a bootstack. I plan to flash the flashable Oreo rom but if it fails and I have to go back to Nougat I'll be stuck with the Oreo bootstack and lose my fingerprint. If I backup boot and everything else possible using TWRP and restore this will it recover the Nougat bootstack? Or I'll still be stuck with the Oreo one?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
There is a flatbed zip in AO thread to restore to nougat... I haven't tested it for use on asop rom but it's there. It seemed to work for my us996. Other thing to know is if the lock screen pattern/pin/password fail boot into twrp and in file manager delete files with lock and gatekeeper in them from /system.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Electrolite_XYZ:
Sorry, what's this AO thread? I'm bad with all these names
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
Alpha Omega
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Electrolite_XYZ:
Thank you I found the files but they aren't for my H990DS, I saw someone flashing a similar zip for other model on Lineage thread and the had serious issues.

But if these zips exist it means I can maybe use my current nougat bootstack and create my own zip file but I have no idea how, maybe I can ask someone there in AO. Maybe someone else already did this zip for the H990DS and I need to dig the forums more...

I think losing the fingerprint and other stuff because having the Oreo bootstack in a Nougat rom is a serious problem and I find strage that there isn't a centralized thread with multiple zip files for all LG V20 models that helps you downgrade to Nougat again.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
It's the modem, after an update to twrp I think it's suppose to be easier to use kdzwriter to flash the old modern. There was some checks or something that made it so it wouldn't work. Don't think that update is out yet but it might be. If you figure out the files and locations of this file(s) you could use terminal emulator, kdzwriter, or terminal in twrp. I think the thread with some extra info is there twrp one but not fully sure sorry.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
No but I can guess.

Most phones in the US are locked to a specific provider, to move to another one you have to unlock the phone first.

This would do it for the T-Mobile (H918) version. I don't know if its the only step needed, you should consult a guide here on XDA for specifics.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
HI

My us996 was running fine with 10n - I had twrp 3.2.2.1 I think and Magisk. Anyhow, I started updating Magisk from the phone absent mindedly and the phone went into a terminal installing what I thought was a Magisk update but it was most likely something else. To make a long story short I was in fastboot mode learning how to reinstall twrp and doing a wipe of system cache and data thinking that I could load a stock rom from there but when I did fastboot erase system -w it erased system and userdata (both say OK) but writing userdata failed with the error FAILED (remote: 'cannot flash this partition in unlocked state').

I did a flashboot recovery recovery.img with 3.2.3-4 because I am pretty sure my phone might have an encryption problem...

When I do a wipe I get errors like

failed to mount /system ( unknown error 150)

and

failed to decrypt data

unable to mount storage

There is no os installed (If I try to reboot twrp reminds me of that)

I also get a message when first going into twrp about a password but I am pretty sure I removed the lockscreen before this happened and the code that I had doesn't work anyway...

Would really appreciate any guidance, there is nothing data wise to save and I'd like to know if this thing is reviveable or not...

Thanks ahead of time!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
Hi

[MENTION=8639605]Phoenix591[/MENTION] - Just wanted to say Thank you - I was able to use fastboot to install this version of TWRP after sticking a finger in my own eye and now I am back to stock using 10n. I learned a few things along the way after going through this and a few other threads...Phew!,
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
If you have the unlocked US996 version (not the US Cellular one) do the following:

Download US99620f.zip from this thread:

https://xdaforums.com/v20/development/rom-us99610k-stock-rom-twrp-flashable-t3691784

put it on an SD card and put in the phone.

Boot in fastboot and then in TWRP with:

flashboot recovery recovery.img

Install US99620f.zip.

That should do it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] secondhand2:
Hi Parasol_Monsters

Thx for the reply - I did just that except I used 10n instead of Oreo (20f). I had to build up my confidence first haha.

Probably will go to Oreo in a few weeks...still reading since I don't want to shoot myself in the foot again.

Thx
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
I would skip Nougat and go directly to Oreo, its much better, more fluid.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] KingCheetah:
Still waiting for US996 Oreo update

[MENTION=5738179]Parasol_Monsters[/MENTION]

Last info from LG was that the Oreo update for the US996 (unlocked, non-US Cellular) was pushed back to the end of Jan 2019. So no Oreo for this V20 model for some weeks yet.

https://xdaforums.com/v20/how-to/android-oreo-comfirmed-t3760166/page48

We'll see if LG makes that deadline... :fingers-crossed:

--

IchibanNeko ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] alphahere:
Sorry this is off topic.

LG made the deadline.

Discuss in this thread.

https://xdaforums.com/v20/development/rom-us99610k-stock-rom-twrp-flashable-t3691784
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xoose:
Sorry to get back on topic, but the version of e2fsck in the current (and earlier) build doesn't work with the data partition after the Oreo update because of LG added a new quota option or something when formatting /data. As such you can't repair your data partition from TWRP.

The version of e2fsck in the Oreo update works to detect errors while the OS is running, but when I tried using it from recovery mode it didn't work because its library files didn't load.

After trying and failing to get the library files to load in recovery mode, I decided to look for a version of e2fsck with the library files built in. Luckily I found one, and even luckier it works on my phone from TWRP. All I had to do then was manually copy it to /sbin when booting to recovery to overwrite the old version and then all errors can be found and repaired as normal.

So the point of this message is, could an LG Oreo-compatible version of e2fsck be put into the next TWRP build?

Edit: I couldn't remember where I found the recompiled e2fsck with inbuilt Android libraries, but I stumbled across my own reply to the thread where I found it, that I completely forgot I wrote a few weeks ago. If anyone is interested, it's here: https://xdaforums.com/tools/general/ext2-3-4-filesystem-create-fix-tools-t3682377
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] arielmatos:
This works for h91010r?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
Just download the latest version for the H910
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] gialandra:
Has anyone been able to successfully install it on H990DS?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Yep.

If you've gone through the Dirty Santa root process, simply flash the new image over the existing one and reboot to recovery, it should be updated.

If you haven't rooted yet and are following the process for it, you can replace the suggested TWRP image with the new one.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] gialandra:
Thanks Redline for the reply. My H990DS stays on Oreo AME stock ROM.

But maybe it's better that I explain you what I have in mind to not waste your time. I want to copy the data of an user app (several gigabytes).

I tried with "adb.exe backup" command but it doesn't work even if the Analyst app shows the ALLOW_BACKUP flag. So I thought at the root + Titanium backup or a Nandroid backup and then unpack the file and extract the data that I'm looking for. Would you give me some advice on what would you do in my case?

Thank you for any consideration
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albaniax:
Anyone know a fix for failed to mount /data (invalid argument) - except formating data and fixing format? (Stock Oreo)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albaniax:
Thanks mate, this was the problem - I had 3.2.3-0 TWRP instead.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
I am on LG v20 stock rooted ROM H91820h came out Nov 2018.

TWRP 3.2.1-3 installed - the latest "recovery-twrp-h918-2018-10-18.img" & Magisk-v16.0.zip.

After wipe & format Data in TWRP and installing Magisk v16. I reboot to System (to setup phone) and if I go back TWRP I lose Mount to Data.

Please help? Do you think your encrypt-v2.zip helps? Could I install now on a phone already setup?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Twrp cannot read data encrypted by stock Oreo. If you're fine with just installing zips from an sdcard that's fine.

I suspect what went wrong in this case is perhaps magisk still saw the leftover signs that data was encrypted after you formatted (the phone checks only when booting up) and thought because of that it would be ok to let stock keep encrypting /data.

The zip does the opposite of what you want if you want unencrypted data (to use and flash zips from in twrp).

The cure if you want stock Oreo and to view and use data in twrp: format data, then reboot -> recovery -> reflash magisk.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ozymandiasmusic:
Reading through the forum here, sounds like it would be great to upgrade to this TWRP version.

Due to policy reasons I need to encrypt my phone to use some company apps. If I use the " encrypt-v2.zip " file, this will encrypt my US996? Will I still be able to patch my ROM as updates come out or do backups/Restore?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
I went format Data, wipe and (several times and sometimes rebuild file system) reboot -> recovery -> reflash magisk . Then back to system and then twrp and can't access the Data again :(.

I get an error 1 when installing magisk but it still works.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
ok, since it's being stubborn, flash no verity opt-encrypt after formatting data, no need to redo magisk.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
this will encrypt my US996? should

able to patch my ROM? as long as you put the rom zip on an sdcard (or usb stick with a usb otg adapter)

backups/Restore? I would NOT rely on it for data backup/restore while encrypted ( I use titanium backup for my apps and app data, and google drive for important files), but should be fine to backup the firmware (which is generally part of kdz and flashable update zips anyway) or EFS
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
No, that did not work. And I have to install magisk.zip again, because it is not there. Just to be clear - I can access Data after formatting from TWRP - but once System starts - it gets encrypted and I cannot Mount Data anymore. What next Phoenix and I appreciate your help :)?

After doing the lafsploit I went to stock rooted 20h.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Time to check the basics: twrp version? (The one that actually appears when starting twrp)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
I am on TWRP 3.2.1-3.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
that's what's wrong. The last several versions have been all about unbreaking stock Oreo. No wonder you're having problems. Get the latest. Reformat data. Reflash no-verify, reboot, then if needed reflash magisk.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
From TWRP recovery flashed 3.2.3-4 (finally yea), then format Data, reboot to TWRP 3.2.3-4, flashed H91820h.zip from here, wipe dalvik, reboot to system. Then reboot to TWRP and it is back to 3.2.1-3! (my old version) Back to 1st step. What?!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
If by reboot to twrp you mean hold volume up while plugging in a USB, to update that twrp (which is in place of download/firmware update mode) you need to flash twrp to LAF. Yes, you can have two different twrp installed at same time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
Yes. Vol+ (up) & USB gets me to TWRP (older version) and then Vol - & USB gets me fastboot. I just don't know after rebooting from TWRP recovery back to itself and the version is the latest, same as this thread name and then rebooting to system and go back to TWRP recovery and it is the older one?! If I can have 2 different versions of TWRP installed in recovery then how do I get to the later one that I installed?

OK - I will try to flash TWRP to laf over the fastboot.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Fastboot? Won't work, you forgot why h918 needed lafsploit ( the fastboot flash command was taken out).

Also they arnt both installed in recovery, one is installed to recovery and the other to laf. (You can flash twrp to laf in twrp, the same way as recovery, install, install image - browse to twrp.img - select where to install it (recovery or laf/download mode)

To access the updated twrp you can do anything that boots recovery ( the power button method, many things in android itself like arb reboot recovery and various apps that can reboot to recovery, magisk has a reboot recovery button in the upper right button on the installed modules page)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ozymandiasmusic:
Great, so I flash this and TWRP should be able to mount the encrypted partition and I can flash any new versions of roms (like updates to RR rom or perhaps new version of Gapps).

Plus I'll be in compliance with intune or such. I'll be sure to start using Titanium backup then. Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
I appreciate your help Phoenix. I didn't forgot lafploit, since I never really read about how it was down, however I can see the first part is laf. I just wrote that if I do Vol -(down) & USB I get to fastboot. However I installed the TWRP from TWRP recovery with Vol +(up) and I can get to the latest version then, but after booting to system it is back to the old version. I finally got the latest version of TWRP to stick in recovery - yea. But still can't get in in laf/download to install - fastboot still comes up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Holding vol up+ insert USB boots whatever is installed on the laf partition, download mode for stock, or if lafsploit a copy of twrp.

To boot from the recovery partition repeatedly tap power (still holding volume - )from when the screen turns on until the reset menu appears. Say yes to boot the twrp on the recovery partition which ignores the reset command.

There's a 1ish second window that it's actually looking for the tap so it can technically be done by just tapping once its just really hard to hit.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
Thank you for setting me straight.

LAF: Vol up+ insert USB with latest TWRP finally (that I thought was recovery because I also could get here from TWRP->Reboot Recovery).

Fastboot: Vol down- insert USB - I wish I can get TWRP here too.

Recovery: Repeatedly tap power (still holding volume - ) from when the screen turns on. Tried to flash TWRP to recovery - but still factory reset comes up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Reset screen always comes up. Say yes to enter twrp (twrp ignores the reset command).

Reboot recovery boots recovery partition
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shahinman:
Thank you very much Phoenix :).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jeremyn87:
I asked in a new thread, but I found this thread and figured it might be more appropriate to ask here.

This is for the unlocked LG V20 H910.

I flashed TWRP using the Dirty Santa method. I did it a couple of times with version 3.0.2-1, and a couple of times with 3.2.3-4 (which is the current recovery on my phone). In both cases, when I've tried to restore backups, many apps disappear and are no longer installed. I've tried it on 10r, 20h, and Super Rom 4.1. This happened with apps which I restored with Titanium Backup; ones I've restored from apks; and ones I've downloaded from Google Play, with and without my MicroSD card inserted. It also happened with and without being rooted. I did it all those different ways on each rom which was installed and I can't figure out why everything isn't being restored.

Does anyone know if there is a fix for it?

Thanks for any help
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] speedrabbit:
So has anyone figured out how to enable File Based Encryption (FBE)? Seems like the "Encrypt phone" option in Settings and the encrypt-v3.zip just do old-style Full Disk Encryption (FDE). The normal "Convert to file encryption" in the Developer options is missing (doesn't show up in search either), so I tried following the instructions in https://developer.android.com/training/articles/direct-boot by rebooting to fastboot and issuing "fastboot --wipe-and-use-fbe", but it fails along the way, with userdata not being wiped at all, with no encryption happening.

I've tried from a fresh install, and a fresh install post-FDE enabled. No difference.

Would love to enable File Based Encryption, which is supposed to be available since 7.0 (you're not even supposed to be able to setup new FDE since 7.0 -- only use it from previous upgrades).

edit: From what I can tell from looking at the source, fastboot --wipe-and-use-fbe just reformats userdata and creates a convert_fbe file in it that's a signal to init to setup FBE on the next boot. Attempting to simulate doesn't seem to work though. Don't know if LG disabled something or I'm missing something.

$ fastboot --wipe-and-use-fbe
setting FBE marker on initial userdata...
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 13694976 4k blocks and 3424256 inodes
Filesystem UUID: 7e60e821-ec2b-4ee3-8db7-d3b035533580
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424

Allocating group tables: done
Writing inode tables: done
Creating journal (65536 blocks): done
Writing superblocks and filesystem accounting information: done

Created filesystem with 12/3424256 inodes and 293719/13694976 blocks
mke2fs 1.44.3 (10-July-2018)
Creating filesystem with 315392 4k blocks and 78880 inodes
Filesystem UUID: 59ff1aa6-9904-4caf-aba4-589bfa483123
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

Erasing 'userdata' FAILED (remote: 'unknown command')
Finished. Total time: 0.606s
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
LG did funky stuff to the program (vold) that handles disk encryption, I can't even get it to run inside TWRP even when there's no reason for it not to work as far as I can tell (it just silently fails) and the nougat version ran quite happily (but there were signs of weirdness regarding it too).

and the remote: 'unknown command' means the fastboot mode (thats part of the bootloader) on your phone doesn't understand the command that --wipe-and-use-fbe actually sent to it, so I'm not hopeful.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bamboozed:
I previously had TWRP 3.2.1-3 installed. But I just flashed the latest from your H918 link and it still says 3.2.1-3. Is this a mistake on my end? A visual bug?

Edit. Disregard the above question, forcing TWRP to reboot to Recovery shows me the correct version now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
I'm still around, just released a minor update, just bringing up kdzwriter and the kernel to the newer versions.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cityneversleepz:
Thanks. Hey Phoenix, I still have my v20 but it's not my daily driver anymore. Was trying to cross flash a Verizon ROM into Sprint in an effort to make a good media device. Didn't work. When I restore any Sprint ROM I get thatl vibration. I can stop it after a while but would like to get rid of it. Any suggestion? PS I don't think I have download mode anymore. When I was testing for Swervin I think I lost it. I'm considering the full restore method from me2151 and then re-rooting unless someone has a good way to get rid of the vibration. Any help is appreciated.

Johnny
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
If you're on a stock based rom you try flashing the mk2000 kernel and see if that gets rid of the vibration
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cityneversleepz:
Great I'll give that a try when I get home around 10 CT and let you know.

Update: [MENTION=4201835]cnjax[/MENTION] seems like that fixed it. Many thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wolf45801:
I understand that stock based Oreo ROMs can't be decrypted but i can't get into my phone after reflashing 20h on h918 keeps saying decryption unsuccessful and help please
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jtl999:
Using this version of TWRP (2018-10-18 and 2019-04-01) tested on a LG V20 H990DS running LineageOS 15.1 from x86cpu and encrypted within LineageOS. I'm able to decrypt data in TWRP but after it's decrypted and mounted for some reason /system is unmounted. Trying to remount it from an adb shell works but it unmounts automatically after a few seconds?

I've been trying to build my own version of TWRP for my device, and I manage to fix the partition/blockdevice mappings to /dev/boot/blockdevice/by-name, but I can't get /data decryption working. Any advice?

Thanks