yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Still haven't nailed down quite whats gone off with backups.. Tried a boot+data+system backup and had issues, but boot+data were fine and gave a valid time iirc.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] gunfan:
Hello everyone. I see that twrp can flash laf. Does this mean that I can flash twrp image to laf and boot to twrp from download mode?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] reza_xdv:
What's the benefit of this?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
For what it's worth, doing my regular backups on the latest version works perfectly, as it always has. I backup all partitions except a System image and Data image (because that's roughly 58GB in my case) and I get the time it took as well as the backup speeds for imaged partitions and file-systems. Time works like it should as do all other functions I've used.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] 5xonlineage:
First of all, thanks very much for the build.

Need some help: I'm on a V20 H918 with the Oreo OTA installed (version 20f) and getting FAILED (remote: unknown command) when trying to flash recovery-twrp-h918-2018-10-06.img in Fastboot. Oem unlocked. Never rooted.

Any guidance on what I could be doing wrong? Ultimate aim was to follow the steps in https://xdaforums.com/v20/development/rom-h91820f-oreo-root-t3848854 but stuck on installing TWRP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
T-mobile and LG removed the flash command from the H918's fastboot mode. You need to use LG UP and download mode to rollback to version 10p, then follow the lafsploit guide.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pheckphul:
I've got a new V20 running 10j that I want to put Lineage onto. What's the quickest/easiest way for me to get TWRP onto my phone so that I can flash Lineage?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Depends a lot on which V20. If h918 LG up->10p->lafsploit, if factory unlocked us996, unlock through LG, if ls997 exchange for a different one (unrootable for than a year ), else LG up->rollback to December 2016 security patch (released in January 2017) or earlier ->dirtysanta exploit.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] 5xonlineage:
Back on 10p from 20f!

Thank you for the guidance. I was able to follow below to get back to 10p! Pursuing lafsploit guide now.

https://xdaforums.com/v20/how-to/step-step-guide-lg-v20-h918-unlocking-t3808258
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pheckphul:
Doh! Sorry, I'm an idiot. Yes, it's an H918.

So, the "laf" exploit is specific to 10p, and not 10p and earlier? Glad you pointed that out.

Why in hell did T-Mobile even bother releasing their phone with an unlocked bootloader when it's crippled and won't accept flash or boot commands? Frakkers....
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
No, lafsploit works on earlier than 10p, but 10p is the earliest most can go back to due to an antirollback mechanism.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pheckphul:
Well then, since I'm on 10j, I guess I can skip a few steps. Thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] StarCommand:
On vs995 and flashed the latest twrp. I can't boot into recovery anymore, manually or with the power button, it just goes to fast boot every time. Anyone else?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Sounds like a corrupt download.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] StarCommand:
Do you know how I can get back into twrp to fix it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Boot normally, download it, then reflash it with an app such as flashify or just download it on a PC and flash it with fastboot.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] StarCommand:
Thanks a lot man. I tried that with the old file, I didn't even think it was corrupted.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Hybrid Divide:
[MENTION=8639605]Phoenix591[/MENTION]

Forgive this noonish question.

When using a stock based room, what does the lack of decryption mean for us on a practical level? Would I not be able to root browse /data?

I'm still on Nougat, and an older version of TWRP.

Should I go ahead and upgrade? Or wait for your decryption fix?

Thanks for your time and for your hard work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
It means if your /data is encrypted (if you did NOT format data when initially rooting and didn't flash the optional zip I made in the OP, you can also check my running "getprop ro.crypto.state" in an adb shell or twrp-advanced-terminal,or any terminal/shell app) you won't be able to flash zips from internal storage, instead will have to use an external sdcard or copy the zip to /cache (either manually or with an app like flashify)

Also twrp backups of data won't work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pheckphul:
Going f'ing insane

I'm back to working on my H918 10j again, and am having problems flashing TWRP onto the recovery partition.

I used the lafsploit instructions to install TWRP onto the download partition, and I can get into TWRP. I then used the lafsploit-installed TWRP to install TWRP v3.2.3-2 (10-06-2018). However, I've also tried three times to use TWRP on the download partition to install TWRP onto the recovery partition. Each time it says it completes the flash successfully, but when I do adb boot recovery I get the factory recovery.

Likewise, I've tried to wipe data, system, and cache using wipe/advanced wipe. However, when I reboot the phone it still boots the 10j firmware. How's that possible, other than that the flash routine is buggered?

What little hair I had is mostly laying on the floor around my desk chair. :crying:

Anyone have any clue as to what is going on?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Rename /system/recovery-from-boot.p to /system/recovery-from-boot.bak . Android uses that file every time system is booted to reflash the stock recovery.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pheckphul:
Should TWRP do this when one uses it to install into the recovery partition?

BTW, thanks for the quick reply!

My Note 4 is foobar'd hardware-wise and I'm trying to get the H918 I bought setup and it's taking a bit longer than I expected. So, I really appreciate your help.

---------- Post added at 11:48 PM ---------- Previous post was at 11:35 PM ----------

It was already renamed. So, I'm guessing that happened when I when back to 3.2.3-1 and tried to install TWRP into the recovery partition.

Now after having gone back to 3.2.3-1 I was able to get TWRP installed into the recovery partition.

Now I see if I can get Lineage 14.1 to install without me climbing the wall....

:D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Lineage 14.1 doesn't cooperate with post 10p/arb 1 h918 unfortunately, video driver issue. Lineage 15.1 + Gamma kernel works great though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vijaysh80:
[MENTION=8639605]Phoenix591[/MENTION] I went from version 3.2.3-0 to 3.2.3-2 on my h990ds. But after flashing and booting into twrp the version it shows in the twrp is 3.2.3-1.

Maybe u forgot to change what it should display?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Its set by an environment variable, I did them all at once by doing essentially build_version=2 build-all-the-twrp.sh and I know for a fact the h918 version displays correctly. Regardless, if the file name you flashed contains 10-6 you should be good
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Rafeh:
Latest F800L recovery all screen black.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] askermk2000:
[MENTION=8639605]Phoenix591[/MENTION]

This could be because of dyn_dsi / dtsi stuff.

If you see my latest commits to mk2000-oreo branch, or rather, these two:

c6ce69b01f9fd1241617da9204826d0edc375ea5

869de143358c8bd027d9bc5b09436f23e146bb36

I hardly get feedback from f800/h990 users, so it's been a problem for a long time. At least on oreo kernel.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Pheckphul:
Thanks for the info! I was going to try 14.1 because it's on Lineage's site, where as 15.1 seems to still be in beta. I'll have to try it out.

My phone came new with 10j on it, BTW, and I plan on staying a way from non-Lineage ROMs if I can.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] xoose:
I too flashed recovery-twrp-h990-2018-10-06.img but ended up with version 3.2.3.1 showing in recovery mode, upgrading from 3.2.3.0.

Edit: I just did a file compare between recovery-twrp-h990-2018-09-30.img and recovery-twrp-h990-2018-10-06.img and they are exactly the same.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pvaldeben:
Need a little help I installed TWRP image "recovery-twrp-h918-2018-10-18" that is 3.2.3-4: 2018-10-18. but when I start Twrp by holding up the volume button and then connecting to PC I see TWRP 3.2.1-3, Not the updated 3.2.3-4 . Should I start Twrp another way? What other way can I boot onto TWRP?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] suhridkhan:
You are booting into the recovery in your laf partition (download mode). Do this--->

Power off. Press and hold both Volume Down + Power buttons at the same time until the LG Logo is being displayed. Now, release the power key and press it again, while keeping the Vol down pressed. Select 'yes twice'.

You can also do 'adb reboot recovery', if you are familiar with adb.

If you are already rooted, there are reboot recovery apps too.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] pvaldeben:
Thank you. That worked .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Daved+:
I flashed latest twrp and the encrypt-v3 zip and it fails. I have used months ago the v2 zip with I don't know what twrp version and it worked but I can't find it and I need to re-encrypt my device as I just reflashed it.

Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wstephen:
Just to Report:

Everything is find for H990N, except "E: Unable to load '/twres/languages/zh_TW.xml'"
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hondoslack:
Need a suggestion here: H918, rooted, running LOS. Wanted to update TWRP to the latest version, so I:

Downloaded recovery-twrp-h918-2018-10-18.img

Rebooted to TWRP

Chose flash image, picked the above file

Proceeded to get an error

Now I seem to have a corrupt recovery partition. Tried with fastboot, and I get

Sending 'recovery' (25980 KB) OKAY [ 0.641s]
Writing 'recovery' FAILED (remote: unknown command)
Finished. Total time: 0.687s

Any suggestions? I really don't feel the answer should be "do lafsploit again", if I'm already rooted and running LOS? And why did TWRP fail to flash its own recovery?? Confused :eek: TIA

*** edit *** FFR, re-downloaded TWRP, validated MD5, and flashed from "laf" partition TWRP (download mode: power off, hold volume up and plug into PC).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Capt_rusty:
Not sure why it didn't work, but if you did lafsploit you should still have TWRP on your laf partition. Boot to download, like mentioned a few posts above yours, and you should still have a working TWRP install.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hondoslack:
Oof, that was too easy, thanks dude. I did not know TWRP was tucked away on that other partition. I downloaded latest TWRP again and checked md5 this time, flashed fine from laf TWRP. Lesson learned! :good:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] duongtotit:
Password

After I flash encrypt-v2.zip and reboot, it requests a password, can you say the password?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
If you're on stock (or stock based like alpha or super) Oreo nothing you put will work, as listed in the OP. You can hit cancel and still flash things from your SD card however.

If not on stock based Oreo, it's your lock screen password/pin.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aminjomaa13:
when the recovery becomes official will the 50%percent bug be fixed?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
No, but it happens so rarely its not really much of a problem.. It seems to me it happens most often when booting recovery from recovery, basically never happens rebooting to recovery directly from the rom/system.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] aminjomaa13:
OK thank you. You included support for vendor partition a while ago on your twrp. Could that mean a fellow developer who's working on a treble rom perhaps 9.0 asked you for it ??
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
It's for LineageOS 16.0/Android 9.x coming in the future since this is required.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Last I heard (months ago) it's blocked indefinitely due to issues getting the camera to work at all. It's all basically ready (for a split oreo vendor partition) except for that though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Maybe once I can get pie working I can revisit things again. Stuck in a couple places still. No nfc, fingerprint or Bluetooth yet.

---------- Post added at 03:05 AM ---------- Previous post was at 03:03 AM ----------

The vendor split it is not needed for pie to work. It only it's needed to run gsi images, which is a LineageOS vendor and gsi system. The LineageOS build had the vendor and system, so a split out is not required.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Marcis2k:
Hi all

I have a stupid question : how can I do a full android backup ?

Each time I come back to Twrp , it reset first my phone so I can't do with this method anymore.

I try to backup via adb, I get a backup.ab file size 1.9 GB

I try to backup via LG backup, I get a backup backup.lbf file size 1.1 GB

Is there any other method like the same to perform a backup in Twrp without entering in Twrp ?

Sorry for my English.

---------- Post added at 11:02 AM ---------- Previous post was at 11:02 AM ----------

Hi all

I have a stupid question : how can I do a full android backup ?

Each time I come back to Twrp , it reset first my phone so I can't do with this method anymore.

I try to backup via adb, I get a backup.ab file size 1.9 GB

I try to backup via LG backup, I get a backup backup.lbf file size 1.1 GB

Is there any other method like the same to perform a backup in Twrp without entering in Twrp ?

Sorry for my English.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
It resetting your phone means twrp isnt installed, its only the stock recovery that does that. Reinstall TWRP with fastboot or if you have root still with flashify or several other apps.

I havnt hears of anything that backs up in the same format as twrp, but titanium backup is a good back up app.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] KingCheetah:
Question about backups on Oreo stock

H918 rooted by lafsploit, on 20h Oreo stock. I'm wondering how much is not covered in a TWRP backup with the data partion still encrypted. Could an alternate backup app fill in the gap temporarily (i.e. Titanium Backup)?

Also, how goes the process for achieving deencryption of the data partition on Oreo stock?

Thanks in advance for any info, and for your continued fantastic effort with TWRP for the v20! --

__

KingCheetah
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Without data decryption if data is encrypted twrp basically can only backup the rom, easier to just keep the rom zip handy. Titanium backup works great and since you pick what apps to backup and restore can easily work between different roms without breaking things like full data backups do.

As far as progress I took a break but am working again.. might end up making a separate twrp for stock vs lineage depending how it goes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ProperAttorney:
Kernel Crash

Hello all, sorry if this is a silly question but I'm pretty new to the scene.

I have an H910 V20 that I am trying to flash LineageOS 15.1 to. Here are the instructions that I found.

First for 14.1

"Flash official-to-UNOFFICIAL.zip if you want. (See Downloads below)

Flash UNOFFICIAL ROM

Wipe cache, and dalvik cache

Magisk if you choose

Flash GAPPS (I use nano)

Reboot and wait...."

And then for 15.1

"You can upgrade from 14.1 (UNOFFICIAL) to 15.1. If you are not on my UNOFFICIAL yet, flash the to-x86cpu.zip first (and reboot recover before upgrade, not reboot into system).

I would suggest the TWRP from Phoenix591 (See Thanks section below)

Flash to-x86cpu.zip if you want. (See Downloads below)

Flash UNOFFICIAL ROM

Wipe cache, and dalvik cache

Magisk if you choose

Flash GAPPS (I use nano)

Reboot and wait...."

I can get through the 14.1 steps with no trouble and end up with a working device. The problem is that as soon as I flash recovery-twrp-h910-2018-10-18.img to Recovery and reboot to recovery, I get a kernel crash. I can boot normally, and I can flash a normal version of twrp through adb to recover but if I try flashing the 15.1 rom with any other version of twrp, I get some horrible errors and end up having to start over.

If anyone could please help me, I would greatly appreciate it.

Thank you for reading, and Merry Christmas.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ChrisWorks:
Can't boot recovery img - whats wrong?

Hi

I am a complete newbie to custom roms and flashing, but I want to install a custom ROM and have slowly begun working towards it, but got stuck trying to install twrp.

I have a LG v20 us996

I did this:

1. Unlocked the phone using the unlock.bin matching my model from LG support site

2. Downloaded the twrp 3.2.3-4: 2018-10-18 us996 img from this thread.

3. adb reboot bootloader

4. fastboot flash recovery twrp.img

5. fastboot boot twrp.img -> FAILED WITH: (remote: 'unknown command')

I tried the "power + volume-" (found here) but nothing happens. I cant get out of the fastboot unless I remove the battery and phone boots into stock rom. It does not react to "Power + Volume-"

What am I doing wrong, any help is appreciated. My end goal is to install the UNOFFICIAL LINEAGE OS 15.1
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Vortell:
Right after you first see lg logo depress then right away repress power button. Should get option to erase the phone you have to select yes two times and then should boot into recovery. The other way is if you have super user app installed you can get an app to reboot be into recovery. For now I use reboot manager. You can find it in play store.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Fastboot boot doesn't work. Do fastboot flash (and yes you need to flash again if its even started booting normally since the flash until you actually get magisk/supersu installed). Unplug from pc and pull battery. Hold volume -, press power until screen turns on then repeatedly press power until it asks to reset ( as long as twrp is on there it won't actually reset) say yes twice and that boots recovery.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
it sounds like you have a corrupt download, redownload and reflash the latest twrp, and you don't need to do 14.1 instructions unless actually coming from lineage 14.1.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ChrisWorks:
Hi, That worked perfectly. Thanks for the tip!!

However I think I may have done something bad. ?? I managed to install unofficial Lineage 15.1, gapps, gamma kernel, magisk, etc.. but when rebooting it is asking for a password. I think this in an encryption password. I came from Stock LG V20 7.1 - and I have never touched the encryption settings. I dont know this password as I have never set ita anywhere.

What can/should I do?

All help appreciated as always :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
You need to format data in twrp and then flash rom, kernal, etc
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ChrisWorks:
Thanks! I tried doing that just now. I formatted data, but it complains about "Failed to unmount /system (device or resource busy)". I tried flashing LOS again, but got a "Updater process ended with error: 7 ..." Failed to unmount /system: No such volume.

What should be my next step?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] ChrisWorks:
I fixed it. I did a reboot to system, which gave me the lineage os logo, but it never booted. I then went back into twrp and re-did the mount and flashing again and this time .. no errors.

Thanks for all the help guys. :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
I've noticed that sometimes TWRP will fail to mount some partitions, namely /system or /vendor. I don't know what causes it, but every now and then it'll just fail to do anything with those until I reboot to recovery and try again.

Sometimes it'll fail multiple reboots but eventually it'll work. It's not a regular occurrence or anything though.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yplim2300:
how to flash the recovery into my LG V20 phone?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
By flashing it from fastboot, using any of the tutorials available by searching the V20 section.

You can use the same process as outlined in the Dirty Santa root thread.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zhangla:
When I tried to flash a ROM, it always says cannot mount /system/ and /system/ is busy due to encryption etc.

Is this normal?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
Look up the app Migrate on gplay and your welcome. :good:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] zhangla:
Is there a way to use just "adb" but not "fastboot" command to flash TWRP? My phone can be recognized when not in bootloader screen. Once I boot it into fastboot mode, my PC cannot see the phone anymore...

In Device Manager, the phone is listed as "LGE MTP Devices" during normal mode, and once in fastboot mode, the phone shows up as "Android" device.

Any ideas?

---------- Post added at 08:59 PM ---------- Previous post was at 08:21 PM ----------

I managed to borrow another computer to run fastboot with the right driver, but I am getting this:

c:\adb>fastboot flash recovery-twrp-h910-2018-10-18.img

unknown partition 'recovery-twrp-h910-2018-10-18.img'

error: cannot determine image filename for 'recovery-twrp-h910-2018-10-18.img'

Any ideas?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
If you look 3 posts above yours, you'll see me talking about mounting partitions.

I don't know about encryption since I don't use it, but you might need to wipe /system before flashing a ROM.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Have you got the official LG phone drivers installed? If not, install them and reboot the PC.

There's no way other than adb to flash TWRP for the first time, you have to use adb to flash the TWRP image via Fastboot/Download mode.

Your PC shouldn't (IIRC) be detecting the phone when it's in fastboot. If you have the proper drivers installed, at this point you should be able to run a Command Prompt window in the same folder as your ADB.exe (so you can do 'cd c:\adb' in command prompt to get to your adb folder for example) and then you can do 'adb devices' to list any connected devices.

Your phone should be plugged into your PC and in Fastboot mode at this point.

If something shows up, your phone is detected properly.

After you do this, you can do 'fastboot flash recovery twrp.img'

I suspect you're getting the "unknown partition" error because you're doing 'fastboot flash recovery

-

h910-2018-10-18.img' instead of leaving a space between "recovery" and "twrp".
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nickthaskater:
Ditto.

I can mount system manually by checking the box, but vendor is unmountable.

I've restarted and reflashed the recovery countless times. Vendor never mounts.

Running 20f Oreo on unlocked US996.