yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] junkengine:
Ok but its not twrp its a kernal that says it gets rid of not only the force encryption but the rctd that slows our phones down after we root
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HueyT:
Works great for Oreo US997
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] junkengine:
And when you go into recovery it doesn't ask for a password to decrypt data?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HueyT:
You have to format data to rid of encryption for this kernel to prevent re-encryption
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] junkengine:
Thank you I'll give it a shot
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I have a little suggestion. What about including a script that automatically deletes "install-recovery.sh" after booting twrp? This way users who have to do it manually or flash any other solution to prevent LG's firmware flashing stock recovery again.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] junkengine:
Ok tried malinas kernel v2 data still gets re-encrypted and @ blackhawk_LA that would be pointless because it somehow regenerates during boot along with rctd so idk im like every1 esse at a loss
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HueyT:
You click "format data" and has to type "yes" to confirm? "Wipe data" is not enough to rid of encryption !!!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] junkengine:
Yup did that a diffrent ways

1) format data, flash magisk, reboot

2) format data, flash milenas kernel, flash magisk 16 beta

3) format data, flash milenas kernel, flash magisk 17

And when i format data then reboot to recovery it skips the password part and i swipe to make changes to the partition and i am able to mount data but after i reboot (yes after trying all three ways listed above) when it boots the "install-recovery.sh" is back like a bad habit i can't kick it i can obviously follow directions i was able to root which by the way was not as bad as ppl make it out to be and i honestly dont think a script that deletes the installrecovery.sh after twrp if the boot will regenerate it
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] headone:
Thanks. How about 870DS?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
What's different about this from the Melina version? Is it just that this one can actually mount the system partition if you're unencrypted?

Like everyone else, I can't decrypt data in any of the 3 versions of this TWRP, my PIN doesn't work, just gets error message. My data is encrypted btw.

I can't unencrypt because I broke systemui with a Magisk Module, so I was really trying to use this to get into my /data.

Guess I'll have to format and start over.

EDIT: formatted data to start over. Installed this TWRP again, without encryption, and still can't mount data.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Melina version was created and intended for stock ROMs. While it would also work for non-stock it was built for stock along with the intention of using it with the Melina kernel - again for stock.

This version, like the other version also on XDA were built not targeting stock ROMs. This version is the most updated and also fixes the issues that the Melina kernel was having in restoring backups (the Melina version would occasionally error on restoring TAR files causing and incomplete restore and issues of its own) Zefie was not active with this device and wasn't able to properly dig in to correct the issue. Eliminator74 was able to get in and with some direction from Zefie rebuild and in doing so fixed the issue with the restores, while also improving the overall kernel.

To my knowledge there are problems with data encryption on every version of TWRP on the G6.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] grushnickij:
Just for future reference: if some magisk module hinders you from using the OS there's another module that can help you fix it, i.e. uninstall/deactivate it from twrp. It's called Magisk Manager for Recovery Mode and lets you manage modules using twrp terminal. It's installable via MagiskManager download.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoneTempest:
Just to be clear, if I have an unrooted H872 with no custom recovery and a unlocked bootloader, this version of TWRP doesn't work yet, right?

I tried fastboot flashing it already and it failed
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HueyT:
1) Unlock bootloader with LG site

2) Install TWRP (this one is great)

3) Magisk 17.2 to root
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
But TWRP won't mount the internal storage. I can't access anything in my data.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] grushnickij:
Didn't think about that. Don't know if flashing the module would work if you save it on external SD, as I'm no expert. But as you've already started anew, it's not that important.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
I tried flashing Mount Magisk (I think that's what it was called) from my OTG-USB flash drive. The flash drive mounted fine, but without accessing internal storage, it can't do anything. I think the only reason you can initially flash the Magisk install zip is because it is "systemless" and doesn't touch /data, just the boot img.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] weakNPCdotCom:
you have to format data to remove encryption in order to solve this problem. unfortunately that means a clean data wipe and starting over with your app data. But magisk will try to disable dm-verity on the boot image so this doesn't happen again

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

Magisk also tries to mount system/vendor. so it only performs a partial flash on the boot image if it cannot mount vendor
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
This then leads back to another problem. Formatting data in TWRP breaks encryption in the ROM. Once formatted, the "Secure Start" (require PIN at startup) gets removed from the settings menu, meaning you can't encrypt.

Although I'm wondering if this has changed, because the option is still there for me this time, but I reinstalled TWRP after formatting this last time, so I'd have to format all over again to find out. Maybe next time a Magisk module breaks something I'll give it a try.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] weakNPCdotCom:
ah yeah, because you are basically disabling encryption at that point. this is just a problem we have to deal with for now I think. runningnak3d said he is going to be working on a version of TWRP that supports the native encryption so once that gets released it should hopefully solve our problems
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoneTempest:
Will this work with unrooted stock Oreo on a h872 tho? It hasn't worked for me yet
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
If it's the Tmobile version those commands won't work. Go to this thread. https://r.tapatalk.com/shareLink?ur...share_tid=3775518&share_fid=3793&share_type=t
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ScottThijs:
TWRP says "error installing zip file" when I trie to install the latest Magisk (17.3)

I have an LG G6 (H870), running stock Oreo 20C with Melina Kernel. And I'm running this TWRP
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] monark88:
I'm having the strangest issue... TWRP will NOT reboot into system, or power off, or reboot into bootloader. Matter of fact... it doesn't reboot at all. Anytime any of the reboot/shutdown options are selected, the TWRP UI closes, and then immediately reopens. Now.. I've had a bricked system before, where the phone just boots into recovery, but this is different. I never even see the LG logo, just TWRP init screen, i go to reboot, and it repeats. Tried the terminal, "reboot", nothing. What are my options aside from letting the phone die?

Got it. Held down all buttons, volume up, down and power.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmedure:
I've noticed that my US997a rooted stock ROM does in fact download system updates; while I've read elsewhere that it normally should not because of modified system. Anyway, I've noticed in the past that after download, if I try to install, it reboots to TWRP and never installs. I'm wondering if re-flashing the stock recovery would allow downloaded update to install, and then reflash TWRP and reflash root if needed? Anybody know how this might go?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
If I'm not wrong, it should work if you haven't touched your system partition. You may even keep root after upgrading.

If not, just fastboot flash twrp and then magisk again. And maybe something to delete forceencrypt if you removed encryption, and so.

But again, I'm not sure if the upgrade will work at all. In worst case, you can use lgup with to restore your current firmware.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmedure:
Well, I have "touched" the sys partition so to speak ... root and removal of a few bloatware sys apps. I agree on thinking it may work as you say. Can you possibly advise where I can find stock recovery image for 20a?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I had a hard time to find it. Finally I extracted it from 20c .kdz (can't remember the tools I've used, lol)

https://www.dropbox.com/s/ymqva3bqus7sha9/recoverySTOCKOREO.img?dl=0
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ilyas111:
target reported max download size of 536870912 bytes

sending 'recovery' (27800 KB)...

OKAY [ 0.698s]

writing 'recovery'...

FAILED (remote: unknown command)

finished. total time: 0.714s

please help lg g6 h872 oreo 20e rom.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] SoByX:
How are u trying to install it? If u are using that "all in one tool", is not working, use adb instead.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
Look here because I don't believe adb will put twrp on your device.

https://r.tapatalk.com/shareLink?ur...share_tid=3802370&share_fid=3793&share_type=t
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] lgnd:
I was on fulmics and twrp 3.2.1. flashed this via adb rebooted to recovery and data was encrypted. I'm sure I have flashed the no-verity-opt-encrypt-4.1.zip before fulmics so I thought this won't be a problem. I had to format data then installed 20c. Data is mounted in twrp everything seems ok.

In Magisk advanced settings preserve force encryption is ticked. Didn't find any relevant info for G6 about this yet. Any ideas much appreciated.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Markosv76:
I'm not sure but for solve the force encryption, you need lucye oreo anti-root, try to find this

EDIT:

https://xdaforums.com/lg-g6/development/recovery-twrp-3-2-1-unofficial-fixes-t3722199

Read here
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmedure:
US997, 20a, TWRP v3.2.3 (Eliminater74), Magisk 17.1

I have a weird problem I hope someone here can help with. I have encryption enabled and as expected, no access to data in TWRP. Decryption works as normal/expected with password at bootup. BUT, under "Lock screen & security" settings: (1) when I pick "Select screen lock", it prompts for a password and my decrypt password does not work here, and (2) when I pick "Secure lock settings" it shows "Power key instantly locks" is enabled as it has always been, BUT (3) the phone does not ask for password to unlock screen - can simply swipe - but rather ONLY asks for password at boot up.

I noticed just today that in zilfie's thread for Melina TWRP v3.2.1, the OP says that his recovery has "Option to wipe LG lockscreen security settings when restoring data partition". I assume that this simply deletes *.key and/or locksettings.* files in data/system/?? Is this correct? And if so, which file(s) should I delete to resolve this problem WITHOUT catastrophically breaking encryption password?

TIA!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmedure:
Well I'll be darn ... with su in terminal you can manually clear/reset screenlock pin or password. Seemed likely much safer than deleting locksetting files and worked for me. Hope this helps anyone having similar issue:

https://www.xda-developers.com/android-oreo-programmatically-change-lockscreen-pin-password-pattern/
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmedure:
Thoughts on "/data" backup with encryption. I'm not willing to give up encryption, so I've been looking for how to accomplish robust backup while we wait for decrypt capability in TWRP. I discovered while on Naugot that flashfire "data" backup seemed to contain encrypted files; but if I setup encryption on fresh system with same/previous password first, then flashfire "data" restore would work flawlessly. Ended up not being a concern tho once decryption was worked out in TWRP. Anyway, now on Oreo, flashfire "data" backup does not work at all.

So now I'm thinking maybe we should be able to do "adb pull <userdata partition>" to computer from recovery. May not even necessarily have to be in recovery for data partition? but probably safer from recovery. The resulting raw image on computer would be encrypted, which should be fine if we're not interested in manipulating it offline. Added bonus ... we don't wear out our sdCard so much since we're going straight to PC.

So then system restore with data would generally look like:

1. Restore system/recovery/root by preferred convenient method (TWRP, or ADB, or other)

2. Setup data encryption on restored system with wiped data and with "same" password that was used for encrypted backed up data.

3. Then in recovery, adb push <userdata partition>

Am I missing anything here?

Cheers!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmedure:
Anybody have any thoughts or experience with this method for backup/restore with encrypted data?

Cheers!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Jabejarano:
With this TWRP, I got a succesfully backup of system, boot and data from "Oreo 8 OPEN EU 20C" and H870. No problem for mounting partitions. Before of this I had problems with "offcial" TWRP but now it works. I must say I still have done no recovery so I dont know if backup files are fully operative, but I think will work after "Sucessful Backup" message
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LoneTempest:
Any chance that rooting the T-Mobile h872 has gotten simpler?

The only method I've been able to find is convoluted and risky to try on my everyday phone
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Malezar:
For some reason i lost TWRP on the recovery partition during stock upgrade from 17a to Oreo. (21c) I can fastboot and load a new img file to recovery. US997 phone. The idea is to get TWRP back and restore my nandroid to 17A and then approach the upgrade again.

fastboot flash recovery recovery_us997_20180813.img

target reported max download size of 536870912 bytes

sending 'recovery' (27800 KB)...

OKAY [ 0.683s]

writing 'recovery'...

OKAY [ 0.237s]

finished. total time: 0.920s

Boot up the phone and do adb reboot recovery, phone reboots into the "Dead Android Screen" with the No Command. On Mac so dont have access to LGUP tools at the moment (damn thing wont recognize the phone through VirtualBox) but are there any other modes or ideas why the recovery partition isnt taking effect?

Cheers.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rovertovilla:
you have to restart in recovery with the button combo and install magis v17.4 so that the twrp is recorded.

1) fastboot flash recovery recovery_us997_20180813.img

2) fastboot reboot

3) Go into recovery with the combo before turning on

4) Install magisk 17.4

5) reboot system

sorry for my bad English.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Malezar:
Thanks for the suggestion. Did try that and can get the white screen where it asks for wipe confirmation twice. If i confirm it wipes and resets the phone to default.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
So let me make sure I have this right. You used LGUP, KDZ'd to the newest version, and now are having problems with getting TWRP to stick?

I just did this on my US997 not long ago. My order was KDZ > Reboot > Developer tools > ADB > Use fastboot to flash recovery > Button Combo (down +power) to reboot, (ensuring you keep holding both down) > on LG boot screen let go of power button and repress > Select yes to both white screens > TWRP > Format data (to remove encryption) > Reboot recovery > Install Magisk (though I found that Magisk on my model wasn't keeping the encryption from being reset on boot so I did next step) > flashed the dm-verity-opt zip (found in the Bootloader unlock thread) > Reboot Recovery > Reboot System.

That got me to a stock image with Magisk and no Encryption. I would imagine at that point you could get back into TWRP to restore data partition from before upgrade. I don't know for sure though. Definitely make another backup of your stock settings before trying to restore data.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Malezar:
Almost on spot, let me detail it. I did the upgrade to 21C that failed. https://xdaforums.com/lg-g6/how-to/us997-21c-twrp-flashable-zip-t3871783 . This failed for some reason and after booting into Recovery, phone erased and was in stock Oreo. Every time I attempt to boot into recovery I get the dead android screen with No Command.

I finally got the Nougat stock installed via LGUP. It wiped the phone again but that isnt a biggie. I then followed your path, except the Boot after "Use fastboot to flash recovery ". I just did a Fastboot reboot.

How exactly did you reboot. Unplug the phone from computer while it still in Fastboot menu? Then press the buttons?

Thanks for your help.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Yes exactly. I just unplugged - held "Down + Power" - Once it reboots (after 9 seconds) lift finger off of power, and re-press to get into recovery.

I think you can also do the commands like you did, but as soon as you hit enter, you need to be pressing down and the power button. Same thing, release power on LG boot screen, then press again. That should still trigger the recovery partition. That's the big thing there. If you didn't do that after the fastboot flashing, it was rebooting straight into the system, erasing the TWRP recovery, but didn't have the original to fall back on so that's why you'd get the broken android screen.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Malezar:
That was the missing link. Rebooted into TWRP and I was able to create a new base GoldImage for any future situations and restore the backup from yesterday. THANKS!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Glad to hear it! Did the data restore work as well?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Malezar:
Nope...data from internal drive is gone. Didn't have much except some images. Everything else was recovered. Going to look into that upgrade to Oreo later tonight. See if I can get it working dirty or need to do a clean and then restore from Titanium.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] gigi8703:
Sorry, i try to install recovery on my lg g6 h870 but i have problem. I unlook bootloader with tools, go to flash recovery+ root but i have this error:

< waiting for any device >

Sending 'recovery' (21420 KB) OKAY [ 0.843s]

Writing 'recovery' OKAY [ 0.183s]

Finished. Total time: 1.187s

Downloading 'boot.img' OKAY [ 0.722s]

booting FAILED (remote: 'unknown command')

Finished. Total time: 0.778s

adb: usage: unknown command wait-For-recovery

Pushing Magisk.zip file...

adb: error: failed to get feature set: no devices/emulators found

Flashing Magisk...

error: no devices/emulators found

Wait the Magisk.zip is flashed and then reboot

Premere un tasto per continuare . . .

I also try to install it from adb cmd but after installation don't go in recovery with - and power. Where is the problem? :( sorry for my english.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Look back at my post from yesterday about the US997 - should be the same order. I would only flash TWRP through fastboot and not worry about messing with boot.img. Sounds like you might be using a program. I'd try it without a program and just purely ADB and fastboot commands to flash the recovery.

Now I can understand sideloading through ADB the magisk file if you don't have a microSD card - but if you do, I recommend using it to have your files to flash. Once you get TWRP installed through fastboot, use the button combo (down volume + power) to reboot, and on LG boot screen release power and repress. Once your into TWRP, Format Data > Reboot into Recovery > Flash Magisk > Reboot into System.

Personally I used the dm-verity-opt zip file found in the bootloader unlock thread because Magisk wouldn't stop the boot.img from re-enabling encryption. I don't know if that's an issue on H870. If so I'd flash that zip as well after magisk before rebooting into system so your data doesn't get encrypted again.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] interestor:
I run the 20a ROM from the Zefie thread, with that TWRP 3.1.1 it all works. But I sure would like to restore a backup when I need.

Does this new TWRP restore backups?

Will I need this TWRP to upgrade to a 21c ROM?

Can I flash the new TWRP with my existing TWRP? Or will this cause trouble with the encryption, or overwriting recovery?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
1) Yes.

2) No, but if you want to restore backups, use this version.

3) Yes. Shouldn't cause any issues at all.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] interestor:
Excellent. Nice and direct. What a relief. Thank you Beardking.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] FlyingPersian:
I can't install it on my H870 :/ I had TWRP and root a while back, but I decided to go back to stock ROM and recovery for the OTA Update. I tried flashing using fastboot multiple times now, both version 3.2.3 and version 3.2.2. Both failed. According to fastboot it was successful. When I reboot into recovery using ADB I get the "no command" error. When I boot into recovery using the button combination, I get into the stock recovery. Any ideas? I'm on stock 8.0.0 (v20g-EU)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] alex70italy:
I want root my phone, i have unlock the bootloader, but i do not understand what twrp I have to use for my h870 with firmware v20g-eur-xx ?????

After install twrp i user magisk or superuser ???
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] paul_zm:
One of migisk ir superuser is enough , then power off , combine keys reboot to recovery .
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] alex70italy:
sorry, where i try an guide for install magisk on lg g6 h870 ????

The process It is the same for all phones?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AL-DEv:
sending 'recovery' (4876 KB)...

OKAY [ 1.131s]

writing 'recovery'...

FAILED (remote: not allowed)

h872 please help