yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mats_youri:
Thanks for reply. That is what I thought, but after installing Fulmics I ran TWRP and seen password request to decrypt data. I entered password but it did not work. I can mount system, but not data, I see 0 size for data in backup and no files for data in TWRP file manager...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Moldeb:
Did you really format or just wipe /data prior to installing Fulmics? Did you enter a "yes" manually to confirm?

I returned to stock because I wanted encryption and nothing is encrypted with Fulmics if properly installed after formatting /data.

Anyway I think this is the wrong thread for this, as it is unrelated to TWRP/Melina...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mats_youri:
I Really did format with Yes. thanks anyway. Will move to Fulmics thread.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mats_youri:
Just FYI. In fact I tried to flash "official" TWRP and mounted DATA without any password, it don't even asks for it, so DATA is unencrypted as I suppose. But I couldn't mount SYSTEM as usual. Back to zephie TWRP - it asks for a password and no access to DATA, SYSTEM mounts no problem.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mats_youri:
Just formatted data from zefie twrp, data became accesible. Restored data partition backed up in official twrp. Data still accessible. Booted fulmics 3.5, rebooted to zefie twrp, data inaccessible. Does someone understang what is going on?

Thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tuan Vo Lao:
Hello! My name is Tuan living in Vietnam. Recently I have saved some money to buy LG G6 US997. I followed the instructions on XDA to unlock the Bootloader successfully. Now I want to install TWRP Recovery to run Fulmics 3.5 rom. But it is difficult to try dozens of times failed. Please give me a very specific guide to install Recovery TWRP. Thank you very much.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Due to all of the complaints regarding fulmics, and ONLY fulmics, I'm announcing that my TWRP is not compatible or supported by fulmics. They are doing something strange with the data partition that LG stock does not, and I don't have the time to look at what it is, especially when Oreo is just around the corner and we will both have to redo our projects anyway.

Unless someone from fulmics wants to tell me what they are doing to their data partition or has any idea whats going on.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Antyhaker:
I don't have any problem with fulmics. What's wrong?

Wysłane z mojego LG-H870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
No problems here too
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mats_youri:
Just formatted data from zefie twrp, data became accesible. Restored data partition backed up in official twrp. Data still accessible. Booted fulmics 3.5, rebooted to zefie twrp, data inaccessible. Does someone understand what is going on?

Thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Why do you need to restore data partition? Anyway try without doing it, as I said before I never had such problem with zefie's TWRP and fulmics
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mats_youri:
Will try that
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mercz23:
No problem on flumics
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Okay I removed the disclaimer but I'm still not sure where the data errors people are mentioning stem from.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] MagikGab:
No problems at all on Fulmics 2.1
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] BigBrad75:
Hey I'm on the V3 for us997 3.2.1 and for some reason it always fails about halfway through when writing to my SD card? Is this a known issue and is there any fixes? Thank you oh and by the way I'm on 17A stock rooted with magisk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Nope. My backups are about 16gb and it writes to my 64gb SD card just fine. I would chalk it up to an error with the card.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
Can I get this TWRP without the kernel?

Can you still flash Magisk after installing this TWRP and Kernel? Magisk thread says don't install Magisk after a custom kernel.

nima0003 download link is broken.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
I have Fulmics with magisk and this kernel running. No issues.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
flashed this TWRP in adb, booted into recovery, got into a purple TWRP, asked me for the password to decrypt, even though there was none set, then would not mount Data (showed 0mb). Rebooted system, booted back into recovery, but this time it just factory reset my phone (TWRP doesn't stick supposedly if you don't flash supersu or magisk).

Edit: Started over, still getting the same issue.

Edit: Wiped Data in TWRP, powered off, manually booted back into TWRP, didn't ask for password this time.

Edit: Flashed Magisk, I have root now. But I can't use encryption? If I set a pin to unlock the phone when booting, will this TWRP be able to use it to decrypt?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
Can I flash the stock boot.img after flashing this TWRP?

Is anyone losing hotspot/tethering from this?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
When I say "TWRP with Melina Kernel", it means that the recovery is running the kernel.

Both Android and Recovery have seperate kernels. The Android kernel is boot.img, and the recovery kernel (and recovery itself) is all in recovery.img.

Using just my recovery.img will have no effect on any installed OS.

For example, Melina (boot.img) cannot be used with Lineage, but this TWRP can.

Yes, as I previously mentioned, the boot.img and recovery.img kernels are seperate.

The TWRP itself would not have any possible effect on hotspot/tethering.

EDIT: I somehow missed your post about the data error. We still don't know the cause of it, but as you can see in this thread, many (including myself) can use this recovery with no issues. My only stipulation to the cause of the /data error is that a few of the older, original recoveries released for the G6 had an issue that actually formatted /data incorrectly, and led to corruption of the filesystem. It still worked in the OS, but the underlying FS was getting more and more corrupted as time went on.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mprovi_15:
Do you know how to discorrupt the filesystem? I have had since the first version of twrp installed and when I installed your twrp I had to format /data partition.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
If you reformatted with mine it should be fine.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cory733:
Thanks for clearing that up Zefie.

Off topic - since you also have the US997, you have hotspot working on yours?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I've not tried to connect, but I was able to start up the hotspot and see it in my PC's wifi list.

I've also used USB tethering in the past. Are you having a problem with it? It would not be related to TWRP though.

My setup is Stock US997 17a, Melina Kernel rel6, and this TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Crazy Chuckster:
Edit: NVM, i read thru and found my answer :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Crazy Chuckster:
Having issues..... I am on stock rom 17A, I installed the newest version of TWRP from the first post via fastboot and when i boot into TWRP recovery i get the purple image with the enter password. I wiped data, red did everything and still back to purple screen with enter password.

Is there any way to get around this?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Vicky_J:
Hello frnds,i bought lg g6 h870ds dual sim from india can i unlock bootloader and install twrp recovery.if any body know pls help me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
No
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tool Belt:
Just to verify, coming from stock US997. Unlock the bootloader, as per that thread, fastboot flash this recovery, boot to recovery, format data(needed to avoid encryption problems??) then flash SuperSU or Magisk? Trying to avoid any of the encrypted problems.

Will I be able to encrypt phone at some point and still be able to access TWRP and its backups?

Long time g3 user. Phone is arriving Thursday.

Thanks, appreciate your work and support.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Crazy Chuckster:
I followed these install instructions from the other TWRP thread and it worked perfectly.

FULL STEPS FOR OBTAINING ROOT

Follow LG's bootloader unlocking instructions here before you begin!

1. Download the latest TWRP .img for your device from this thread

2. Use the same fastboot tool you downloaded in the LG unlock instructions to flash TWRP using the command:

Code:

fastboot flash recovery twrp-x.x.x-x-us997.img

* Replace x.x.x-x with the actual version you are flashing!

3. Enter "fastboot reboot recovery" into the fastboot tool

4. Swipe to allow modifications, then hit wipe and tap format data, type "yes" and press enter

3. Install SuperSU, or Magisk to gain root and make system bootable, or just flash

no DMvertity opt file to make system bootable without root

8. Go to [Reboot] -> [System].

Wait 2-5 minutes for your device to finish setting itself up.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tool Belt:
Thanks, saw that thread too. Just wanted to verify that same procedure here. Looking forward to rocking the G6.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
This way your phone won't be encrypted (after formatting data) and it won't be possible to encrypt again without flashing a stock firmware.

AFAIK, there's no way twrp can decrypt data on our G6. So, if you want to be rooted you'll need to have magisk/supersu , or whatever mod you want, in your microsd. And don't format data.

If you want to use a custom ROM like Fulmics, here is what I did to preserve encryption and have everything working (but twrp decrypting)

https://xdaforums.com/showpost.php?p=76176163&postcount=28
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tool Belt:
I appreciate your help. If I am running rooted stock (not Fulmics) after following this, then mTWRP is fully functional as to backup and restore?

Thanks again.....phone may get here today. Got it on Swappa. Swappa rocks.

__________________

G3's Rock!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I think no, but I didn't tried too much with stock firmware. I read somewhere that LG's encryption is different from other manufacturers and that's why twrp can't handle it by now.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tool Belt:
Coming from the G3 I am not used to TWRP not being fully functional..........not being able to use nandroids makes life a little tougher.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I can live with that. I have ROM zip in ext sdcard,and Titanium backup. It's not the same as a nandroid, but keeps me safe. And I just try to not mess up something that really works well, like fulmics ROM.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] GrovPastaSwag03:
Is this the rel7 kernel or rel3? Because the post says rel7, but the downloaded file says rel3. Sorry if I sound like a noob, I'm new to android development.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tool Belt:
I believe this to be rel3 of the mTWRP(recovery) which in and of itself(independent of the "system" kernel) is based upon kernel rel 7. See post #50.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ArmalSharefe:
So when I flash this recovery.img I don't have to flash the melina kernel after installing custom roms like Fulmics? And how does flashing Magisk affect the kernel ? Is the Melina Kernel installed no matter what ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tool Belt:
Did you read post 50? This does not install the melina kernel to your actual system ROM......whatever kernel you had there is still there.

If you want to use the actual melina SYSTEM kernel you need to flash that. I have no advice on Fulmics nor Magisk as I use neither.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mxknight77:
I did a factory reset on my lg g6 us997 after running my phone rooted for a while not im stuck in a twrp bootloop no matter what I flash on in. I also cant run lg uppercut. Any suggestions?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] liquidsnake54:
Hello,

Is it just me or does this version of TWRP have issues with decrypting encrypted data partition? I installed the latest version of LineageOS on my LG G6 US997 and then I encrypted my phone, but TWRP is not able to decrypt it when I reboot into recovery. Is it just me or this a known issue? I had to format the data partition and reinstall everything, I will not be encrypting again until this issue is resolved. Hopefully TWRP team will soon release an official version that will not have this problem.

Thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Did you format your phone after installing twrp? If yes it won't encrypt again unless you force it to on stock
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
I have now a time issue. I don't know why. I want fix it, but how? I reinstalled Melina twrp. Don't work.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Same, date and time always out
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ziotapa:
If I'm not mistaken time issue is present in all twrp versions!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
No, Melina fixed this issue. But now I have the issue too. I switched back from Melina kernel to stock kernel
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mrbeem:
Hi zefie... I was wondering... Is your TWRP compatibile with oreo? I mean when official oreo from LG for H870 is released will it be possible to: install oreo kdz, flash your recovery in fastboot mode and finally flash magisk via twrp?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Unknown for now, but should work. It is built from the twrp-8.1 sources.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mrbeem:
Awesome :). Will give it a try when oreo for h870 is released :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Hi [MENTION=759634]zefie[/MENTION], could you kindly do a blue version of your recovery please, I not a fan of purple and using themes generates lag. Many thanks
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Should be able to when I make a new build. I didn't overwrite TWRP's theme so I can just change a variable in the config when building, I'll make two. The zefie purple, and TWRP default colors.

Don't know when I'll be making a new build tho. Been busy IRL, plus it seems to work well as is, plus focusing Android efforts on Lineage for now.

But I will keep your request in mind when I do rebuild it. Thanks for the feedback.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
bump for new version. enjoy :)

Unfortunately only still Purple, having two themes will double the workload, and most people like the purple. Sorry.

If you really want the default theme, you could edit the initrd :)

EDIT: broken download links fixed, sorry about that
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] fhasovic:
H870 download link is still broken. I have found rather this one:

https://files.persona.cc/zefie/file...WRP_v3.2.1_18-05-16_zefie_LGUSH870_rel_t1.zip
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
fixed x.x this is what happens when you dont sleep for over 30 hours :D

I renamed the file to match the link, which was the correct version. You can still use the one you downloaded, I just renamed the zip file, the .img is still the same :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Stupid question can I flash this in the current twrp? Or will I need to connect to PC and flash?

Just being lazy as I already have your twrp installed and wanted to make sure I was on latest.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] K3V1991:
Flash via TWRP

[MENTION=759634]zefie[/MENTION] thanks for the Update :fingers-crossed:

BTW i love the purple Theme :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jjohn7293:
Is there still an issue with the fingerprints and pattern while restoring a backup? When I would previously restore backup, it would corrupt the password pattern and the fingerprints, and I would be forced to do a complete wipe. Has that been fixed?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mikes:
You just had to check "wipe password" option in TWRP
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Failed to mount vendor? Trying to backup fails due to this. Any ideas?!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Melina TWRP offers (since rel3) a "Wipe LG Lockscreen Settings" option when restoring backups (or specifically, when restoring /data backups).

Side note, for those wondering, it is safe to leave this option checked even if you are not using a stock ROM.

It just looks for a specific set of files that LG uses (and only LG afaik). If they don't exist (such as a Lineage ROM), it will just skip that function, and won't harm anything.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jjohn7293:
Thanks! :)

Does this also remove fingerprints?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Even if you disable backing up vendor?

Yes, it will disable the LG lock screen, letting you in with just a slide to unlock. Then you can go and set your lock screen security up again.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
I get this error.

The Time zone is not working too.

I have the newest recovery image installed.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
The error is safe to ignore for now, but is an issue.

I will address this in rel_t2. Thanks for the report. :)

As for timezone, I am not sure why the sudden mixed reports. Nothing has really changed in all of my TWRP regarding the time. It works for me, I just tested it.

But, the time on our device is a strange qcom proprietary thing. It seems to be strange in how it keeps time.

If you just reboot to recovery from a working stock ROM, it will work fine.

If you boot recovery from Lineage or a hard power off (holding power and VolDown for 10 seconds), sometimes the time will corrupt and you will get strange dates.

There isn't really much I can do unless someone knows more about the qcom time device and can help. AFAIK we are at the mercy of whatever this device reports.

Imagine a watch with a dying battery or something. Keep in mind the following though:

1) Date/Time was never meant to be needed outside of the Android environment. Fastboot, LAF, and Android Standard Recovery do not care what time it is.

2) As such, sometimes when you boot your phone, the time is actually incorrect. You may not notice it because it tries to set the time as fast as possible. Either via a timeserver over wifi, or from a cellular broadcast notification.

My point is, if anyone has any ideas for a fix, I'll gladly try them, but from what I can tell, we have the best we can get for the date/time fix.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
bump for rel_t2 which should fix the reported error :)

(plus I integrated uber-toolchain, the toolchain I use to build the Melina Kernel releases, into the build system for TWRP. This means now the recovery now has the full benefits of Melina Kernel (sdcard performance fixes from Melina rel_nr1 should now be in recovery as well))
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] micgeb:
Thanks for the fix and for the Information.

The new recovery works great.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Do I need to edit on pc or can I edit with aik mobile? Also whatvdo I change? Thanks in advance

EDIT: are the new changes just in the images itself or ramdisk folder too?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
The TWRP changes are in the ramdisk, so start with the latest release. Wherever the theme files are in the ramdisk, mine are just TWRP's with a tint applied to them to go from blue to purple, so replacing the theme images with TWRP's defaults should work in theory.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Ok, well I tried by replacing the whole twres folder and repacked but still came out purple. Not sure what to do next.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Just find and replace .png files
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
I did, replaced all with stock blue and repacked, flashed and still purple. I know I'm fussy and I do appreciate your work, but it's just a personal preference.

Sent from my Nexus 6P
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
oh right, there are some color definitions in the xml files too.

Edit: Here, use the attached gz file and do the following:

Start over with current Melina TWRP initrd untouched

extract it, and change directory to "twres" under the initrd

reverse apply the attached gz patch (either gunzip it or something like zcat ~/melina_theme.diff.gz | patch -R -p1 while in the "twres" dir.

if you did it right (I tested locally), it should patch all the xml and png files successfully (see here)

You now have default TWRP theme (with images and xml) without losing Melina features.

I don't change the theme files often, if at all, so this patch likely works across all older, and even probably some future releases of Melina TWRP, unless a theme change comes from upstream.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] ufocus:
[MENTION=759634]zefie[/MENTION] He's been fixing the time issue for the G4 several times now https://github.com/steadfasterX/android_device_lge_g4
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
Ok thanks zelfie
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mrbeem:
Hi zefie. Just wanted to let you know... TWRP for h870 does now work with oreo. I mean flashing the recovery.img goes ok, but when i try to enter the recovery i see twrp welcoming screen for a couple of seconds and then the phone reboots and restores the stock recovery. In other words, twrp flashes ok but does not stick :). Any chance for a quick solution??;)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] siggey:
Probably you must root after twrp flash, like on nougat
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] eleete0712:
Same here but the same also happens on stock twrp.

Cannot flash anything because twrp doesn't boot up. Just the splash screen and then the phone reboots itself before twrp reaches it's main screen.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jimbomodder:
You need to flash this first , then format data as it's encrypted again and then you can flash Melina recovery in current twrp. Once done reboot back to recovery and you will have Melina's twrp
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Originrm:
I still get some errors everytime i reboot into twrp (with and without melina twrp).

I can't access internal storage from recovery or mount data.

Logs included :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mikes:
I have the exact same issue after Oreo update. Every time I reboot into TWRP I can't mount /data (I formatted it before of course).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] JackErskine:
I just can't get this to work on oreo
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mrbeem:
Same issue here
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] thagab:
And same here.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] lewux:
Failed to mount vendor (rel_t2). How to fix it?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mikes:
There is no fix.