yashsingh1/xdaforums huggingface dataset:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
That's not a twrp issue. I restored Stock, aosp pie and aosp Q ROMs using twrp(both beta 6 and stable before that), had no issues at all whatsover :fingers-crossed::D
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
This is why I really like the "default" (basic) TWRP you made for WTF thread. "Advanced" TWRP often confuses people. The basic TWRP has the categories they need and nothing more. ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] zfk110:
I tried with this stock firmware

https://xdaforums.com/lg-v30/development/stock-t-mobile-lg-v30-stock-collection-t3980701

and this one

https://xdaforums.com/lg-v30/development/rom-havoc-os-t3908402

Same firmware I restored only boot, data and system. everything restore fine, I normally make a backup without finger/password, but after the restore FP doesn't response.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
that sounds strange. it's t-mo version as it looks, that's a little problem for me. i can't imagine it, but are there really these kind of specialties with it? may be that logs are helping with this, can you do some pls? beginning from the moment when you try to use the fingerprint scanner, maybe it's visible in logcat / dmesg what's wrong.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
at this point of time this 3.3.1 twrp can't really be called an advanced version :D only additions are "leave out lockscreen settings when restoring data" and "exclude twrp app". i removed vendor partition too, because developing in this point has stopped imo. weren't these two additions available in default wtf version too...? don't know atm, sry ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
hoi ?

new twrp image with little fixes, but data formatting still not able to remove encryption -.- you can use "fastboot format userdata" to do this. crypto stuff is included, decrypting of stock rom starts but fails :( am on it. maybe someone knows what is "encryption type 3" and "error number -14" for lg...? this is from libqseecomapi.

https://drive.google.com/file/d/1bowXidNlwxsoPVPXYD13Lam1wEFApxBf/view?usp=drivesdk
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
Thanks for the update. :)

[MENTION=3475147]SGCMarkus[/MENTION] do you know anything about this error?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
could be that it's written in libcryptfs_hw, i'll be back on it this evening :D now it's type 1, just by switching to another libcryptfs_hw repo lol

edit: he knows this error on another lg device, but afaik didn't find a solution, too
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
here's a 3.2.3-7 dataimg twrp with f2fs support for data partition. would be nice if some testings would happen; which already happened successful, but the more testings the better :) will work only with roms supporting f2fs, of course, so stock is out.

edit: took link down, too buggy ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ytdttj:
Do you know how to decrypt the data? It confused me a lot
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
no, no final solution found; getting closer describes it best :D
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
yay, "first step" done: twrp 3.3.1-0 is up and needs heavy reliability testing and some tweaks of quirks are left, too. pls report absolutely everything you find not working as you expect it :good: like non-working formatting of userdata (a part of this is that twrp doesn't want to secure erase userdata, i even don't know if that's the full reason, but i think this somehow is connected to new mke2fs (make_ext4fs is dropped by google and twrp since 9)).

let the testings begin :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
you saw 3.3.1-0 thread? pie recovery with decryption function. pls test and in best case pls report back ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
I still haven't seen anyone who reported this problem follow the WTF Instructions for formatting data.

Wipe data (factory reset),

Flash Magisk,

flash the Pie compatible Encryption Disabler,

Flash Root Checker disabler

Format Data (where you type yes),

Reboot to Recovery from within TWRP

Flash Magisk AGAIN

Reboot phone

See this post:

https://xdaforums.com/showpost.php?p=79972563&postcount=107
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
it's only present in 3.3 :D formatting with mkfs_ext4 in 8.1 default recovery works, no matter if pie or oreo. but google have chosen with pie to switch to its successor, mke2fs from e2fsdroid / e2fsprogs. and this one isn't able to remove encryption on some phones, not only our v30. so fastboot erase userdata needed instead, everything else is the same.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
turned out an essential part for removal of crypto wasn't called in 3.3, when formatting the userdata partition to remove encryption and start fresh: fixed. let's say twrp 3.3 is for pie, 3.2 for oreo, when it comes to encryption only. you can use both versions, if crypto isn't a musthave for you, otherwise you may not be able to access your internal sdcard or data in twrp; everything else is the same now.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] callihn:
I have never been able to get the correct date and time in TWRP regardless of TWRP version, Android version or device and there is no persist/time. Any ideas?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
which roms are you using? mostly aosp based ones? i don't know if they are generated in aosp rom's too, the same way as in stock, on data partition and then a copy over to persist is initiated somewhere iirc.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
What rom you on because I know everything working for you
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
jep, correct: there's almost everything you need in the bc.mk. uncomment and fill in your needed paths etc. and you're good to go for your own kernel :good: as this is a kernel for recovery, there's no such high need for letting it build every time when you want to update it. of course depends on the tweaks you're doing, and if you're e.g. optimizing it for recovery?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
i'm on stock 21a eu open, rooted and some other mods.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
I haven't tried your img yet on Du rom 9.0 but it look like the stock getting errors on that new twrp u did are u did some fixes
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
have a look at changelog in second post pls, jep: no error messages, red text or anything anymore, at least not for me. a log would eventually be of help, one can look at it and filter the line out, it isn't that big. it will clearly tell what's wrong.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Just wanted to say thank you for building TWRP with the modern changes.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] boxchevy:
I am interested in the kdz writer portion of this. Anyone tried it? Is it functional? Thanks for the work.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
Ok now I have failed to mount /op invalid argument twrp
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
Me too.

Open market US99820D

---------- Post added at 11:34 PM ---------- Previous post was at 11:33 PM ----------

Can we check if the partition is available on our devices?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
I was coming from Du rom 9.0 when I wipe it does that but install go through this what u have
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
I'm on stock, rooted US998 20D. Does it for wipe and install.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
The OP building TWRP is not going to support it.

You need to go to the actual KDZ thread and get support from there.

We had this for our V20 for unlocked, ATT, T-Mobile and Verizon.

Now TWRP with the feature got ported over.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
flashed, the newer one provided in OP, no more mount errors. also used the material theme on it flawless.

DotOs 2.5
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Alibaba0101:
Yes,

Latest version getting new error

"Failed to mount '/OP' (invalid argument)"

every time updating partition details...

US998 20d

also don't see /OP configs partition in backup

when in mount

can't mount /VENDOR or /OP configs
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
I'm sticking to the 3210 twrp I have it's nothing really good about the latest because most of the people getting errors just like me I can just wait into that get fix I can tell u that i got trable on the lastest twrp I had got a error flashing trable lineage os when I flash another zip to recreate the vendor img it worked
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Emu:
Flashed latest TWRP. No more failed to mount /ENCRYPT. But it still says

"Failed to mount '/OP' (Invalid argument)" during backup process. But it has no effect on the actual backup. Just that error message.

LG V30+ US998U, Android 8.0 20e.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
that's really strange. just to confirm, you all have the image with "latest" in its name installed? the mount options in fstab are correct, and if there's an errer => I need a log to have a look at it. thought this is clear as it is default procedure. *can* someone with these errors please upload a log for me?

i'll add some instructions to OP today. it lacks of them, looks like they are needed even if they are present on the other threads and everyone should know them already :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
thx :) one question: are you vendorized? this partition is mountable only if present of course. i, e.g., can't mount it too, just because i don't have one and this partition isn't standard on v30.

one of you, ballroomblitz and alibaba0101: can you pls upload the resulting file for me somewhere or put the output in a post within a spoiler?

adb shell
ls -la /dev/block/bootdevice/by-name > /sdcard/partitions.lst

it looks for me, as the US998 is somehow other structurized regarding partitions. maybe i just make this OP removable too, so everyone for whom this partition doesn't seem to exist doesn't have problems anymore. but i would like to know the partition layout of US998 first :)

i need a log from twrp and the partitions.lst for figuring out what's wrong with this special partition :eek:

i didn't say i won't support it :D i said it's untested by me and i need feedback from a person who tested this if this is even working. it should, as stated in original thread, but i don't know this. :)

but yeah, of course, his thread is the first point to start with for informations etc.

i don't have any kdz files atm, but i will download one matching my device and try to flash the boot partition for example. we know more then.

your sentences are hard to read for me :( :D interpunction ;) but: you're on an US998 too, may it be? i really think that there is sth different going on regarding available partitions. can you too pls do a partitions.lst as described above? would help!

yeah, another us998 :) let's see how we get this sorted out. i'll compile a new version when i have the logs and know what's going on.

[MENTION=957521]Alibaba0101[/MENTION] and other vendorized ppl: how did you vendorize your phone? with markus' method or the PARTY script for another phone? it looks like the party script is causing errors or at least some little problems: it even isn't working correctly on our phone (system partition not resizeable). maybe the errors are connected to this? iirc the PARTY author wrote something recovery related.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] hfharry:
I dumped out the partitions-list file from US998_20a stock firmware for your references.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
wonderful, thank you very much! :good:

the op partition doesn't exist on US998 phones and it looks as there isn't an equivalent partition :eek: k, i make this partition no more disturbing by at the same time keeping it for the phones on which it is present :good: uodated recovery follows in some minutes.

btw: is there someone out there who wants, needs or simply want to test encryption for his aosp flashed phone? would be nice, when there were testers for this. i would need a second v30 for testing this because i need to stay reachable.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
OP (i don't like this abbreviation anymore now^^) and changelog updated.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Yes,correct. I should have worded it better.

---------- Post added at 03:22 PM ---------- Previous post was at 03:17 PM ----------

https://pastebin.com/S3UcthmK

Ok I hope this worked.

This is the error for the T-Mobile version.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
thanks :) the /op mounting failed error should be gone now. one can't mount what isn't there, and now we know that us998 and tmob 932 doesn't have a OP partition, thus these errors.

but i want to know, what indeterminate013 image error is, and secure discard wiping doesn't work (whatever that is, let me read myself in :D).

tldr: install newest version, it's available in OP and shouldn't produce *any* error (beside indeterminate and secure discard).

btw, i really like the xda labs app :good: everyone should install and use this!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
New version of TWRP gave vendor error and still op error.

---------- Post added at 04:24 PM ---------- Previous post was at 04:22 PM ----------

https://pastebin.com/x0MqZHtd
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] TheCoryGuy:
Is there any way to do a CLEAN install of TWRP? I tried patching it with an app that I think messed up some files. Flashing a new .img doesn't seem to fix the problems. Some parts of the file systems won't mount and I can't make a backup.

Thanks in advance!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] mrsdbskn:
Maybe I am wrong here but I have a LG V30( Firmware v20d, TWRP 3.2.1.0) and I want to upgrade to Firmware: v21h and TWRP 3.2.3.0) So my question is if I am upgrade TWRP and flash the newest kdz with kdzwriter does the phone encrypts his data again and i have to wipe everything?

Because when I upgrade the phone first via LG UP and the reflash TWRP 3.2.3.0 i have to wipe the data right?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SweetwaterBurns:
If the fs aren't mounting, there's probably an error in the fs. You can try to repair the filesystems (or just wipe them} and they should be mountable again.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
[MENTION=7110320]mrsdbskn[/MENTION] you can use westwoods twrp zip for that (does he provide a 21h zip? 21a, sure, sry, don't know atm. this way everything (would) stay(s) and you have the newer fw installed :good:

broken, let's do this via telegram and then let's tell the solution here. this is kind of getting "funny" xD and i need silence for that, so earliest in ... 3-4 hours? is this possible for you? i'll send you pm.

[MENTION=7399899]TheCoryGuy[/MENTION]: what did you flash where...? can you explain more? the steps you did e.g., and what the wanted goal should have been?

anyone else having problems? just tell.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Ok everyone, new version of TWRP is fixed!!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
k, *now* it really should be fixed xD it was a typo... added a letter where it doesn't belong... OP mysery fixed!

link updated, changelog too.

thx for session, broken ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] mrsdbskn:
Thank you:)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
That's what I'm talking about everything fixed u got us through this hard time lol,but I'ma try some trable ROMs later to as well

By the way if anybody wanna flash a good twrp theme get the 32X_v1_hdpi_black-signed.zip
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
Just a warning with this, not to sure if its because of this specific twrp or not.

When i downloaded the twrp i moved it to my MicroSDCard, i then flashed AIK (Android Image Kitchen) and modified the spash image. of the twrp.

When i wanted to flash the modified twrp it gave me an error (not to sure what it was) but it did ended up saying successful, i did not trusted it so i reflashed the original twrp and booted by phone up to check out the modified twrp trough file manager. and it said 0 bytes.

so if i would have rebooted after the first flash my twrp/recovery would have been corrupted i guess. (bricked phone..?)

So in other words if you are going to modify the twrp splash, make sure the "twrp.img" is ON your INTERNAL memory or you will end up flashing a 0 byte twrp which is a big no no..
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Deandre7452:
I was on the 32.1.0 twrp then flash the lastest link here after that then I put the black themed zip on my sdcard in flash it then it worked just like that other then that I haven't mess with the spash image
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Emu:
Flashed TWRP on US998U 128 GB version Android 8.0 20e.

Zero bugs. Thank you!

Now I'm curious why some devices don't have this /OP partition. But that's another discussion I guess.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] kgirlx:
Had original TWRP, installed, then flashed the one posted earlier, then flashed this latest fixed TWRP.. Still getting the OP error when doing a backup.. Anyone know why and what I did wrong.. Thanks
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
hmm, we can do a "best of themes selection" or sth like that ("recommended themes"?), in third post? there's something to take care of when processing splash images, when i remember correctly. i thought i've read something about that. let's keep an eye on this special topic ;)

which phone model? you rebooted in between flashings? there shouldn't be an error anymore, normally. i wanted to test something regarding that special point (handling partitions not present on other phones), i'll keep you updated. edit: test showed: the new TWRP-3.2.3-1_ff.img should really not produce any error regarding non-existent partitions, be it vendor or OP. maybe we should do a telegram session too, i'm in UTC+1, pls count that in :D just contact me, but pls doublecheck first if you have the latest TWRP with the above mentioned filename flashed onto your phone on recovery partition.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
k, got decryption to work, for both stock and aosp :good:

i really need testers. who's willing to test for stock? and i need one or two aosp testers, too. please, contribute, help, do some testings ;) i need to stay stock for a longer time, i can't install aosp anymore.

proof: have a look at attached screenshot :)

as a nice sideeffect, one doesn't have to delete lockscreen.db files and maybe gatekeeper files out of data/system folder to be able to use the restored backup :svetius:, but only if no format data was in between. (more details later in this post).

so, regarding testing:

- aosp encr. needs to be tested done, it works.

- restoring a stock non-encrypted backup, which contains a lockscreen (not encryption) pattern / pw / pin, needs testing

stock: works:

- stock: decrypting data with pattern / pin / pw in twrp

- stock: restoring an encrypted backup of data partition, with factory reset, with wipe data only

- stock: take backup from encr. stock rom => format data => do whatever you want => format data again =>install ROM from which encr. backup was taken => boot up and set up the exact same security settings as the backup to restore has (everything needs to be the same! logical) => restore encrypted backup => boots up fine :good:

stock: not working:

- lockscreen pattern. it works when you simply wipe data (not format) and restore the ROM's data afterwards. but not, if you are doing a format data! then you have to delete the lockscreen.db files to be able to get into your ROM. encryption pattern is independent of this.

AOSP: not working:

- stock ROM installed, wipe data (not format), install aosp => doesn't boot => logical, another form of this kind of security ;) (vold decrypting @ aosp vs. keymaster full disk enc decrypting @ stock)

AOSP: working:

- coming from encr. stock ROM, format data and install AOSP, of course :)

- encrypting and restoring: the same rules as for stock = working

conclusion:

security encryption is doing what is intended to do. everything's fine :)

k, maybe i'll test AOSP encrypting myself, now that i know that my encr. backup can be restored xD

will be tested now:

- wipe data

- install another ROM

- restore backup of encrypted ROM
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
ok, the maybe final build is ready. it will be tested this weekend by me and some others (eventually and hopefully), and then released tomorrow evening utc:+1.

when someone wants to test it, pls just write me a pm :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
a propos: [MENTION=3235131]kgirlx[/MENTION], everything's good now for you? i think you had the wrong img file ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] kgirlx:
TWRP

Yes, my dumb ass had the wrong image file. Downloaded the latest and reflashed, made backup. No errors. Excellent work. Thank You.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
thx for feedback! :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Alibaba0101:
A small thank you sent :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
thank you! :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
I'll shoot you a PM sometime tommorow.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] TheCoryGuy:
I used a tool from XDA that allows you to back up all data from apps and such after patching TWRP. I just want to start from scratch because things haven't worked right ever since. Can't make back ups either
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
ouch... the idea behind that sounds good, but it's of no sense when it's not working; or even destroying existing functions 0_o

i press a thumb for you that everything goes well now when you re-setup your phone :) :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] gimpy1:
Thank you for posting this updated twrp, and for also posting the instructions on installing it in your first post. Following that guide, I was able to update twrp easily, with no problems.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Are you able to add the beta feature from the v20 TWRP?

It's a data img.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Also I can't do testing today. I need my device and my v20 is in a bootloops from a bad flash. I can't easily jump on my PC to restore a backup.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
sure, i saw this. already thought about it :D this way really everything ROM data related would be backupable. why not :)

no problem, just wondered why you didn't answer :D wish you luck then!! (but it's fixable...?) :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Awesome!!!!!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
a "little" update, see rewritten first post. :)

edit: I'll add the possibility to backup complete userdata partition including internal sdcard (/data/media) too. this will come together with the guide for decrypt stuff.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] kherio:
I have just flashed 3.2.3-3 version and i'm on bootloop on LG V30 logo...

I cannot enter into recovery mode....