yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Eliminater74:
sorry man, Didnt mean it to sound rude, you do great work.. and everyone has their own way to do things, as im so used to doing steps by steps because I have to reuse alot of things on my projects and need everything to be separated from other things.. But in all. your work is great............

and yeah, I used your fstab and just made some changes and its marked as removable.. I seen your comment on that in the fstab.. I do like that you left many comments for people to understand your work.

I am not building a test AEX Rom with the vendor create script added.. so ill see how that pans out............

thanks again for your help and work........
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I was just kidding :D (if you think that code is a mess you should see my older code that even I have a hard time understanding. That is where the commenting came from haha)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Eliminater74:
[MENTION=759634]zefie[/MENTION],

Question, How are your coding skills on twrp? Mine are not that great and I dont understand the recovery stuff as much as it seems you do,

Here is the thing, a script was made that will create a vendor partition for you. what this script does is checks to see if you have one first..

if not then it checks to see if your system in correct size, then it creates the vendor partition and resizes the system..........

and yes it can be reversed,

the script was designed for twrp originally then LOS added to lge_msm8996-common device tree, but will only work on LOS, that once you install ROM it runs that script and checks everything..

I took that script as well as the Android.mk mods that allow for building the needed tools for the script to run in twrp........

I need an option made that will have a checkbox when you install a ROM, that lets you put a check int the box to pre run the script before installing the rom...........

that way.. people can convert their devices from twrp........

the script and needed tools are already added to the TWRP, not in current one I released yesterday.. but in the one I havent released yet...

so it can be ran manually.. I had to make alot of mods to get it to build the tools and all with twrp..

biggest tool needed was sgdisk............

but if you could help me out with the coding of that option for pre installs of rom.. that would be great........

btw again, that script checks if you already have the partition and if you do, it aborts the rest of the script and goes on to installing rom..........

Let me know if you can help me out here... thanks ..
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] 924973961:
good job.

surport the project treble？
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AL-DEv:
sending 'recovery' (4876 KB)...

OKAY [ 1.131s]

writing 'recovery'...

FAILED (remote: unkown comment)

my device is h872
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Running latest twrp.

Big problems.

Can't backup, mount, wipe /data partition or access internal storage. Although formatting /data temporarily fixes the issue, as soon as I install A ROM within a few days when I try to backup I can't backup /data as its not mountable.

Any ideas?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Look 10 posts up or so for a post I made on my process. My guess is that you haven't fully removed encryption protection from boot so somehow it's reencrypting your data, which would result in the things you're exhibiting. I also recommend looking back at the bootloader unlock thread. Try the opt-verity zip I mentioned before.

Most likely this is a process issue when you came from stock as many people have been using this TWRP for many months without issues.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Thanks, so in terms of backing up data before I do a format/zip flash I'm currently in out of options other than using titanium backup to backup apps? Adb Or Salt wouldn't help?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
As far as apps go, if you plan to flash the same version of Android after you fix the data partition encryption then I see no problem using Titanium for backing up apps. Other than that, whatever way you want to use to migrate any other important info (pictures, documents, etc...) from your internal storage to a computer or maybe a USB or even to a MicroSD card.

After you go back and format your data partition and mess with flashing that opt-verity zip and any other part of that process (again check the bootloader instructions for more info) and you reflash your rom, etc... You can work on moving stuff back. Hope that helps!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
what about doing from command line(to copy /data):

dd if=/dev/block/sda17 of=/storage/0000-0000/data.img

And after formatting, flashing zip restoring via command?

Or would that not work?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Good question. It *might* work however if still lean towards it not working because if it's currently encrypted you may have problems getting it usable later.

You could manually back things up (the tedious way that I mentioned) and then try your way as well. Then on restoring later try your way again to see if it works. If not you at least have your internal storage items saved still.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
opt-verity zip completes but says it can't find fstab twice.

Also, upon installation of ROM, after reboot,/data is unmountable in twrp again.

And don't know of it's related but keeps asking if I want to keep SYSTEM read only. I swipe right to allow modification's, but next time I go in to TWRP it asks me the samer thing
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
What ROM did you flash, just out of curiosity. I had a similar issue with Havoc OS. All installed fine, except Magisk didn't flash, which is why I used this TWRP to flash Magisk. But before I did, I formatted data, then did a full system wipe. After that I flashed Oreo bootloader, ROM, GApps and then Magisk.

If you're trying to flash a Pie based ROM, then I highly suggest you follow the steps above and make sure you have the unofficial TWRP installed.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Yes. Havoc OS (pie). Already flashed Oreo bootloader (or should that be flashed again after format data?). Gotta flash TWRP again, maybe I'm using official version, gotta double check.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Ok, flashed latest unofficial twrp. All good in terms of mounting and backing up /data.

However Magisk shows this :
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
I think that would help. Format data, wipe everything. Flash bootloader. Flash latest build and GApps, then Magisk and you should be good. Which version you using btw, H870?

---------- Post added at 09:01 PM ---------- Previous post was at 09:00 PM ----------

You can disable it if you want, then reboot. But good to see you've got Magisk working.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Disable in Magisk? Tried that, came back on after rebooting
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
I know on the 872 it acts weird like that. I think that dm-verity encryption (can't think of the exact name of it, think it's mentioned above) should fix it. (disclaimer :I've never used it but reading that thread seems like it'd be the thing) I know my encryption wasn't right until both those boxes were unticked.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
H870 yes. I think the problem is when I run verify-opt-encrypt zip it gives me error twice on boot patch :

Unable to find fstab!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
I found a thread for this, please have a look at it.

https://xdaforums.com/apps/magisk/magisk-dfe-t3834304
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
This is a different thread and the one I was thinking of. (looked at that other to make sure) I get the encryption deal myself unless it's baked into a repacked rom and this is what I've been looking at using. There is an order of flashing involved. Worth a look if nothing else. I'm admittedly curious. https://xdaforums.com/showthread.php?t=3817389
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Thanks, I actually came across this literally an hour before you posted it. Whether it'll work is another thing :guess I won't know till I try. Bit of hassle having to keep wiping data and reinstalling apps with titanium, but willI leave that next time till magisk shows no Force encryption.

Will post if all goes well.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
I know what your saying. And if it works please pass it on. If it does I think I should be able to update my own device without having to depend on someone else. I just don't have the time to try it and "not" have it work myself right now
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spaceboy60:
Ok, something strange happened. I uninstalled magisk before backing up. After reboot I reinstalled it and downloaded the latest magisk manager. Force encryption is no longer checked after installing magisk manager even after a couple of reboots. No idea how that happened!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] macieksoft:
How do I boot into TWRP from power off. I can only get into the TWRP from the OS with the advanced restart options. When I hold power and volume down I get a factory reset screen... Any help would be great thanks.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
You are at the correct screen. It looks scary but that's the phones main recovery entry screen. You have to choose "Yes" and "Yes" again. As long as you know you have TWRP installed there's no worry. If you're not sure, your best bet is to boot into system, and make sure you install TWRP through ADB. Because of you DON'T have twrp installed clicking yes through those screens will wipe your phone instead of loading up TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] macieksoft:
Thanks, that worked :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
Hello,thanks for the recovery,it takes aeons to boot it but it works. However, i want to flash new GPU drivers but whenever i flash it i only get blackscreen. I think it may be due to the fact i canßt mount VENDOR partition in this TWRP,how can i fix? Thank you in advance
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kimitza:
Hey guys, has anyone managed to make it work with the latest 20H firmware? Thank you
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
where did you get the 20h from? i had success last night with a higher rev (iirc rev23) because lower ones would not work but i am on 20g iirc
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kimitza:
I digged around a litle bit, but I managed to get it. Let me get home in about 2 hrs and I'll upload it. Now I'm at work, with a crappy connection(100mbps). Home I have gigabit fiber. I'll use mega. Tell me the region you want it for.

https://mega.nz/#!rgNzgaSC!TiYCiQNHMIxW6pk4fZfqpockrIrncgevyQNeVl82Pug

This is the KDZ I flashed.

It's for Romania, but I'll upload later open_eu

here it is,H87020h_00_OPEN_EU

https://downloads.lg-firmwares.com/...339f3101ac2104/H87020h_00_OPEN_EU_OP_0110.kdz
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kimitza:
The problem with all recoveries so far and 20H is it's getting stucked in lg thinq logo after I flash magisk 18.1 zip.

I don't have the problem with 20G. Maybe LG patched some things?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Tlailaxu:
it hang for me aswell after Magisk flash but dalvic/cache wipe solved it for me, however that could also just be snake oil and i had luck,who knows
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Stone. Cold:
Blackscreen issue will not occur if you do clean install. Flash the ROM, GApps, GPU drivers and then Magisk. Never flash the GPU drivers after first boot, this is what causes the issue to occur. So clean installation is recommended
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] runningnak3d:
While working on my own build of TWRP I got tired of waiting for this build of TWRP to boot (no offense [MENTION=5687366]Eliminater74[/MENTION]) so I swapped out the kernel (and that is LITERALLY the only difference, hence the -1 in the name).

This is for H872, if you would like me to update the other versions, just ask: link.

-- Brian
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I am using old Melina twrp just because of boot time. So if you can build it for h870 it would be great.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Eliminater74:
its cool man, and if you wanna start off with my source its on my github under the G6Dev name.. I dont work on the G6 anymore.. ever since I got my OnePlus 6T, thats all I been working on.

They now have a sure way to unlock all Oneplus T-mo editions.. but all my work is working on that now....... I still have my G6, but havent done anything to it. its running stock as well.......

Also if you wanna start building this TWRP, I am sure I can get them to switch this thread over to your name. Just PM if your interested.. but as for me, I been done with the G6 for a while..

No more LG for me.. as long as I can help it........... But dont get me wrong, the G6 is a good device.. but LG just makes stuff so hard and you end up spending more time fixing and bypasing

all LG's crap then you do true deving.. Never have that issue with OnePlus.. Its devable out of the box.. none of that crap that LG does.......

but it was good while it all last............
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] runningnak3d:
Thanks man :)

I am waiting for a phone that is dev friendly, has an SD855, and no notch and I will be leaving LG behind for good as well. I have a feeling that there should be something that meets my needs in the second half of the year.

I loved a good challenge, but as you said, you spend all your time trying to get around the security and there is no time left for FUN work.....

Anyway, I sent you a PM -- thanks again for all your work on the various LG devices.

-- Brian
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Eliminater74:
[MENTION=3167089]runningnak3d[/MENTION],

I have sent XDA Mod [MENTION=3690061]karandpr[/MENTION], a PM asking to switch this thread over to your name:

and if any other XDA MOD shall see this, Please Switch This Thread over to [MENTION=3167089]runningnak3d[/MENTION]..

I enjoyed working with all of you.. and Hope the best for you all.. But as the saying goes, its time for me to move on.

I do still have my G6, so If I can help at anytime. Just Mention or Best ro PM me,

[MENTION=3167089]runningnak3d[/MENTION], I will PM you the links you have requested...........
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Vortell:
Sad to see you leave here happy to see you go to op6t since I have one of these too! Lol! Oh and I hope twrp gets updated for us997 as well.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
That makes two of us :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] runningnak3d:
OK, all three models have been updated with a non-compressed kernel so the boot time is back to what you would expect. Just to be *VERY* clear, that is the only change that has been made so far.

Once I get a stable build, I will post a proper change log.

The big thing that I am working on right now is the ability to take carrier OTA updates -- as is. As in you get a notice that you have an update, and it will just apply without having to worry about someone making a new zip.

That feature will only work if you are BONE STOCK. That means you would have to temporarily disable adblock since that modifies the hosts file. The good news is that if you DO miss something, and aren't bone stock, it will just gracefully fail and you won't be stuck in a TWRP boot loop.

Also working on a few bugs fixes (clock), and making sure that decryption, lock screen wipe, and kdzwriter are working as expected.

-- Brian
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
Awesome! Thank you, [MENTION=3167089]runningnak3d[/MENTION]!

Edit: MAJOR improvement in TWRP boot time. :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
That would be great to be able to take the updates. I've been wondering about that for some time now. My thought was using the kdz and only flashing certain partitions using lgup.

Thanks for your work man I truly appreciate it
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] runningnak3d:
Actually, once I get kdzwriter working, you will be able to do just that:

adb push H872-blah-blah.kdz /sdcard/
adb shell
cd /sdcard/
kdzwriter -a H872-blah-blah.kdz

That is it. kdzwriter will only write the partitions that are safe.

That requires work though ;)

What I am working on will allow you to just take an OTA and not thing about it.

Now that I finally have imgdiff / bsdiff working, applying OTA updates is a no-brainer. I wasn't able to find an H872 20g KDZ, so I finally broke down and compiled up the OTA tools so that I could apply the diff from the 20g OTA zip to the 20f KDZ. Now, I am adding that functionality directly into TWRP.

It will of course check to see if there is an update to recovery, and skip that "update" .. so all OTAs will be perfectly safe.

-- Brian
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
That would be sweet. I'm still on 20d tried to get that copy of F that's out there but it keeps crapping out at 87% for some reason.

Something I think I should mention, I had a bunch of encryption issues rooting (fairly sure you saw it lol) I think weakNPCdotCom was working those encryption tweaks I've seen around into his builds. (you'd have to ask him) Which I think fixed it, but it would still be a concern of mine whenever I flash a rom.

I know enough, to know what I don't know, just thought I'd mention it is all. I screwed my stuff up a week ago and tried restoring a backup with no luck. Took forever (like 12+hrs) and didn't work for some reason. Had to redo everything from the 20a kdz I had floating around in the pc.

Sorry this was so long just thought i'd mention it. Could've been me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] runningnak3d:
I have a 20g zip in the TMO forums that you can jump straight to.

-- Brian
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Ken C:
I got it, thanks.

I'm looking forward to seeing where you go with this, don't know if I'd have the patience, but know I don't have the time to figure it out.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] hector2001:
In TWRP, when doing a restore from Backup, restoration process has no issue at all but it is very slow.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kimitza:
Do you have the backup on sdcard?

If you do, do you realise the backup is usually about 10gb in size and if you don't have UHS standard sdcard, the reading is kinda slow, ergo the restore time is high.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Encryption not working ?

Hi,

Thanks for the great work !

I'm not able to decrypt the system partition (the official TWRP neither), is there something I've missed ?

(I'm running CM 14.1 on a h870)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Atrate:
You mean the /data partition.

Encryption doesn't work with any TWRP, at least for me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] LouisLaic:
Yep, you're right, in the explorer of twrp the only blank folder is "data" ! The TWRP I had on my previous phone (G3s) worked with encryption, do you know what could cause trouble ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Atrate:
You could ask the maintainer, but he said that he's working on making encryption work, so I'd just wait
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Gracko:
Hi guys, I'have a problem to install the latest version v3.2.3.-1

my device is H870

v20H-eur-xx

when I want to flash recovery I got this,

PS C:\Users\Graco\Desktop> fastboot flash recovery recovery_h870.img

target reported max download size of 536870912 bytes

sending 'recovery' (31768 KB)...

OKAY [ 0.688s]

writing 'recovery'...

OKAY [ 0.282s]

finished. total time: 0.970s

PS C:\Users\Graco\Desktop> fastboot boot recovery_h870.img

downloading 'boot.img'...

OKAY [ 0.703s]

booting...

FAILED (remote: unknown command)

finished. total time: 0.719s

and nothing happens, I can normally restart device and it's working. When im rebooting to recovery from adb (not fastboot) it's still stock recovery not twrp

I tried to use AIO Tool and effect is the same, it says "ok" but unknown command

I also tried not to type reboot recovery or reboot to img but manually with button combo and phone is just rebooting
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Atrate:
Lg G6 doesn't support the "fastboot boot" command parameter.

When stock recovery boots, on the "ERASE ALL DATA/FACTORY RESET" screen, choose "YES" two times. It will not erase, but instead boot into TWRP.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Domix19:
Is backup working on this twrp? 30 minutes Backing up System is too long i think...

Nevermind, for second time backup worked
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
"fastboot boot recovery_h870.img"

Why would you do that? This command is disabled for the G6 afaik.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zaebwolf:
for whatever reason loading into recovery is way slower then on 3.2.3.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sobek5150:
Correct. The original 3.2.3 done by Eliminator had a compressed kernel causing a longer than normal boot time. New dev that's taken over this thread and released 3.2.3-1 has fixed this. The current compromise is that the date and time are not correct on 3.2.3-1.

EDIT: Just realized you were saying that the new one is booting slower. Can't help there. I tried the new one and I get a 7 second boot time. Compare that to the 25 second boot time of 3.2.3
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zaebwolf:
lol jesus christ 25 seconds XD. 3.2.3 official boots realy fast, 3.2.3.1 some 10-15 seconds maybe even 20 feels forever. but thanks for clarifying.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] dudeistpriest:
Seems it boots into recovery in less than 5 seconds for me. Dunno. H870.

By the way, thanks for making this recovery possible on our phones. TWRP official seems to be abandoned for the H870? Or at least there hasn't been any development for a while and the last official doesn't work.

It'll be awesome if the encryption problem gets solved.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] xabzzz:
Hello RunningNak3d ...

Just a question :

Is the "TWRP recovery mod" you provide for H870 on this page

https://androidfilehost.com/?w=files&flid=289997

the right modded file ?

I ask you this because of problems of "storage mount" among other minor things.

The file above has a name that seems to say the file is old ... (recovery_h870_20180813-1.img) whereas the date of upload is rather recent (Feb 13, 2019 | 07:02PM)

Sorry to ask, but after a recent and succesfull unlock, I went through all the paths with "official TWRP" before running with your mod ... and trying to install latest Magisk 18.1 and so on.

I had to recover (upgrade) several time Stock 20h in download mode ... with "wipes" and "format" found on the internet to fix "mount" problems ...

Note :

My LG G6 is a H870 on OREO (20h, security patch 01.01.2019), carrier free and unlocked bootloader (official unlock.bin used),

Cheers and thanks anyway for your dev ...
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] tsdq512:
I have tried all recoveries but following error occurs lg h872 on both 7.0 and 8.0

target reported max download size of 536870912 bytes

sending 'recovery' (21244 KB)

OKAY 0.516s

writing 'recovery'...

FAILED (remote: unknown command)