yashsingh1/xdaforums huggingface dataset:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] donky kong 017:
This is because TWRP did not stick. you have to reboot recovery after flashing a rom. so that the system will not overwrite recovery with stock again.

i had the same problem with westwoods rom. even though it says that twrp will not be overwritten.

also i have another problem; although i think it has more to do with westwoods rom i guess its also fitting here.

i had some strange problems with system crashing all of a sudden in the morning. so i went to TWRP and dirty flashed the rom.zip again. after that i not only lost twrp like stated but also it encrypted my data partition again. although it was encrypted before and i just dirty flashed the rom. im now stuck with decrypted data with no chance to backup it in twrp due to not being able to mount/read it. i have no issues besides that. i can flash magisk and xposed stuff and everything is working.

the things i have thought about but i dont have that much knowledge about that stuff: i guess some flags in that rom are set (like in stock) that encrypt the data as any stock LG rom would do even though it was decrypted before. what i dont understand is how could that encrypt my data without formatting data and i cannot decrypt it without formatting data.

i tried several things i found yesterday: setting a PW/pin as lockscreen and for boot and removing it or in combination with fingerprint. nothing unlocks the data in twrp.

so what im eager to know is what flags or files have to be modified in a rom(zip) to remove the stock decryption if it is the case that this happens when flashing a stock rom. it cant be that i have to flash the no-verity-opt-encrypt every time a flash a rom update.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
its in the boot.img, inside the ramdisk, the joan.fstab (or fstab.joan or any other fstab). on stock lg data is set to forceebcrypt. Needs to be "encryptable" or nothing at all to not auto encrypt.

You can always encrypt, thats not a problem, but to get rid of it again you have to format... Just how things work

And yes, everytime you update the rom, aslong as it changes the boot image, and its ramdisks fstab file isnt changed, you have to flash the no verity opt encrypt zip again. (It overrides the old one again every time)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] donky kong 017:
Thx markus for the clarification. So is there any way to decrypt and dont lose my data? i guess if i have any chance to make a backup of data it will be already encrypted, am i right?

And if twrp needs a PW to decrypt shouldn't there be one?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Our TWRP cant handle any encryption, especially not LGs (they did their own ****, not AOSP stuff)

Only an LG stock rom can decrypt lg stuff :/
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] donky kong 017:
Ah damn. That's unfortunate. I guess i will live with encryption til the next clean flash.

Thx again bro
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Pisolo:
Backup TWRP 3.2.1

Ciao [MENTION=3475147]SGCMarkus[/MENTION].

I'm doing Backup of the ROM I selected:

"Boot, Recovery, System, Data and Cache"

Confirm if the selection is OK.

During the Backup the yellow writing appears with:

"Backups of Data do not include any files in internal storage such as pictures or download".

Do I need to worry...???

Thank you.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Nope, its just reminding you that it wont backup /data/media, which is the internal sdcard

just the rest of /data (apps, appdata and so on)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Anyone see in the XDA news feed that TWRP 3.2.2 was just released...
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] DeliriousHD:
I did. But would it work with the v30? XD
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
[MENTION=3475147]SGCMarkus[/MENTION] would need to update it for us to 3.2.2.

We have "unofficial" TWRP. You won't find it on the TWRP website.

He's the one that gave us current 3.2.1 we have now.

Sent via open market LG US998 V30/V30+
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
If the OP takes a look and gives it the Green Light, since i have no knowledge in TWRP lol
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] cmrntnnr:
I spent some time tinkering tonight and installed dotos. Afterwards, I restored my stock setup. All seemed well until the time came to enter the pin, it wasn't accepted. I came across this solution:

https://www.google.com/amp/s/xdaforums.com/g4/help/wrong-pin-twrp-restore-t3406397/amp/

and it worked like a charm. Maybe it saves someone a gray hair or two. It may be a good idea to turn off the pin prior to making a back up.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] breacherman:
Who else is downloading/ flashing modules through magisk? I have little experience with magisk, but what little I have I didn't have any issues. Tried to post on the magisk thread but noticed it was closed.

When attempting to flash v4a 2.3.4, installation fails and says to install magisk v15.0, (have 16.0) which is an older version. With dolby atmos, it claims my system api of 26 isnt lower than the maximum api of 25...please downgrade etc....

Running Boombox 1.2
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] iRS_:
did anyone install it?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Easy install Dolby Atmos (OnePlus X) and ViPER4Android FX Materialized I will share screenshots of my modules. But I'm also on Stock atm not on BoomBox
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Install what?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] iRS_:
bad, post, sorry :(
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] breacherman:
After reinstalling magisk, twrp now opens up with the Mount / decrypt data /password screen, where I just hit cancel, swipe to allow mods etc. I remember this from when I first installed twrp on this phone on nougat. Having issues this time though, for instance I get an error message now when attempting to make a backup saying "unable to mount storage". I'm sure there would be other issues as well. Not sure how to fix this. Everything was normal with twrp b4 reinstalling magisk. Thanks.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
In magisk manager, is there "keep force encryption" ticked? It encrypted your data partition again.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] breacherman:
Preserve force encryption, on the main page, under advance settings? Yea, that was checked. But if I uncheck it , it dose't stick, if I close out the app and reopen it , it is checked again. Any idea how to make it stick?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
flash no dm verity opt encrypt zip.

Then you should be able to untick that again. You probably updated magisk while that was ticked, which enabled encryption again (happened to me once) :confused:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] breacherman:
Ok I actually did just try that. It didn't seem to work, everything still the same. I wonder if it's because no-verity-opt-encrypt hasn't been updated since November of last year, which means there's no version for oreo roms....

Update: Noticed fingerprint option disappeared under biometrics in options after flashing no-verity-opt-encryptzip, so I dirty flashed my rom along with magisk, now preserve force encryption option is unchecked in magisk, unfortunately though still have same issues in twrp. I wonder if there ends up being no simple solution, if just clean wiping and reinstalling the rom would fix....
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] XCaliburX:
Will there be any updates in the future for this TWRP? 3.2.3 just came out some days ago with some important fixes.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Can do, when I have time, currently working on Pie :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] elias.parasini:
What pie? The one like LMT?

Edit: nvm, Android pie I guess. my bad.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] John Daft:
Hard bricked?

I think I've bricked my v30 h930 :crying:

It all started with uninstalling Magisk from Magiskmanger to get viper4android running.

After it finished the phone rebooted without asking me. The reboot took very long so i thought something must have gone wrong, so i forced another reboot (power button + vol down) . Now i got the message encryption failed and I need to do a factory reset...

Ok no problem I thought and rebooted to recovery to restore my Backup I did earlier that day.

Turns out TWRP can't mount/read my partitions either because of the messed up encryption so would need to wipe everything.

That's a good opportunity to change my filesystem from ext3 to F2FS for a small IO performance boost....I thought.....

The format went on for like 20min and did another forced reboot because it thought it was struck.

That bricked it.

It turns on and immediately tried to boot TWRP but it's stuck on the boot/loading screen of TWRP I gave it a bit of time and tried the reboot again. Same thing after the bootloader unlocked warning it straight tried to boot recovery again. :(

Then i tried to flash a KDZ via download mode but to do it the phone has to be turned off so I left it stuck in TWRP for like 4 hours to get it to shutdown.

Then i plugged my charger in to give it a bit of charge for flashing.

The screen showed a 0% charge screen and went off again. after like a minute it automatically turns itself on and tries to boot TWRP again :mad:

ADB shell works from the TWRP loading screen but i can't flash anything nor reboot to bootloader in it.

Is there anything else I can do?

I'd really appreciate it :fingers-crossed:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] zacharias.maladroit:
Please write in a dedicated thread.

2 points:

there's no F2FS support from any of the kernels - so naturally it wouldn't be able to function with it.

LG really needs to document how fastboot/bootloader mode works: once rebooting ("bootloop"), connect usb cable to PC, force reset (power + vol down), quickly release both and only keep "volume down" pressed, that'll get into bootloader mode, tap vol up/down to switch between "Reboot" and "Shutdown" option, when "Shutdown" is displayed, tap "Power" button for a short time, that'll shut down the device.

Honestly I've no idea clear idea how to get the phone to charge - since it wants to boot into a ROM for charging (or at least basic functionality).

If there's still a bit of charge left in the battery, you could try to get into bootloader mode and fastboot boot twrp.img and let it charge in recovery, that'll give you more options, also you can shutdown down the device via TWRP or bootloader to prepare it for flashing, etc.

Quirks:

sometimes the device is quick to shut down once connected in bootloader mode, so several attempts are needed

sometimes the device doesn't want to react to commands in bootloader mode (or in general ?) so you need to flip the ending of the usb cable (where phone is connected) [between CE sign and no CE sign], that'll let it work [happened almost exclusively under Linux for me with USB 2.0/3.0 ports]

Hope that helps for the start
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] John Daft:
Awesome, thanks a lot ! :good:

Got it to download mode with your help :D

Don't know what exactly helped but your advice and maybe the 10 hours rest made it possible to finally install a KDZ

Thanks again and greetings from Munich :highfive:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
https://www.xda-developers.com/tipatch-patches-twrp-full-data-backups/

[MENTION=3475147]SGCMarkus[/MENTION], will this work with our TWRP?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
No idea, cant say.

Wont be back from my holiday till sunday evening, and then ill finally have my v30 back in my hands. So i need root it again and all ?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] otroguero:
I'm sure this has been covered, but I can't find the answer anywhere... Once treble-ized, is it an A or an AB partition setup? Thanks y'all. Ls998 is perfect on aosp, I appreciate all your work!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] zacharias.maladroit:
A only

A/B would be support for seamless OS updates and that has to be implemented by vendor.

This probably could be achieved by community (more extensive re-partitioning) but setting up the vendor partition is already quite a trouble,

and we might potentially run into even more issues with it (TWRP has to support?, kernel has to support it, ROM, etc. etc.).

https://www.xda-developers.com/list-android-devices-seamless-updates/
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] siulmagic:
Does flashing trebelized twrp wipe the treble partitioning?, i partitioned before installing twrp, now i am trying to mount vendor with the treblelized twrp and i cant mount it, no matter how many times i press the vendor partition in twrp.

Edit: nvm... i forgot o remove the extra --pretend from the vendor script.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] TheCoryGuy:
So for whatever reason all attempts at making a backup fail. Even tried installing the image again. Any ideas?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] cmrntnnr:
I assume that you booted into TWRP and that you see the message that the backup failed. One reason it can happen is that one of the output files exceeeds 4gb and the file is being written to a FAT formatted sdcard. The FAT file system can't store files bigger than 4gb. Reformatting the sdcard to EXFAT removes that limitation. A work-around is to backup to internal storage and then copy the backup to a pc via usb. The first option is preferred.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] TheCoryGuy:
I'll give that a try!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Emu:
Great work getting TWRP to work. TWRP has saved my life from so many bootloops on previous LG phones so I appreciate it a lot.

Question: Every time I boot into TWRP I get a different time and date. The date and time I set won't stick after reboot. Is there a way to fix this?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
Not right now. [MENTION=3475147]SGCMarkus[/MENTION] would have to fix something in the code. Wrong time/date on this unofficial TWRP is a known bug. Sorry.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] gimpy1:
I have a backup storage question. The vs 996 Rom download is 2.88 GB. My single backup in twrp is listed at 7.83 GB. What is that extra 5gb and where does it come from?

Refer to my screen shot of the storage from the "disk usage" app. I don't recall ever having that huge of an extra GB size ever before in any of my other twrp backups before

Thx

Each of those 5 files are approx 1.5 GB each.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Normal Stock ROM uses around 4.5GB or so, as long as it isnt (heavily) debloated. (zips are compressed, thats why they are smaller)

And also dont forget the backup of your data partition there ^^

TWRP splits the backups into ~1.5GB files btw. You have 3 (up to) a bit more than 1.5GB system backup files + 2 (up to) a bit more than 1.5GB data backup files + a bit of smaller stuff like probably boot, recovery or whatever.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] CCJ22:
Why even partition in the first place? Not trolling, genuinely trying to learn here.

What's the benefit of 3.2.3?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] otroguero:
The partitioning is what makes Project Treble, Project Treble. For devices that shipped w/Oreo, the partition structure is different from previous Android versions. Project Treble sets Vendor partition which contains device specific files (drivers, configs, etc) which survive the flashes. Instead of device-specific ROMs, Treble flashes GSI's, Generic System Image, which theoretically will flash on any Treble device (it's new, kinks still being worked out.) V30 shipped with Nougat and the old partition structure, so we Treble-ize ours before we can use GSIs. These are definitely layman's terms, and apologies in advance if I'm not quite right. That is the gist, tho and we use arm64-Aonly GSIs on the v30

PS HUGE props and thx to sgcmarkus and zacharias and the rest of our devs! They are doing incredible work
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] rayzerblayde:
Nooby question, but will this work with my Aussie V30+? (H930DS)?

Thanks in advance! Love everyones work!! :D
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
Yes, it's for all V30/V30+/V30S -- all "Joan" phones.

You need to unlock your bootloader to install. Directions here:

https://xdaforums.com/showpost.php?p=76584629&postcount=193
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] eep1:
I've never had a TWRP with the correct time and date. A little inconvenient for backups but just have to remember to rename later.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Hello, on the LG V20, we can flash TWRP to LAF. Will that option come to TWRP for the v30 at some point?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] FcBayernMinga:
Hi [MENTION=3475147]SGCMarkus[/MENTION] i flashed the treble twrp but couldn't mount the vendor Partition (Error 150).

But I'm 100% Sure I have a vendor Partition with 512mb, from flashing the ZIP from https://xdaforums.com/axon-7/development/tool-party-v0-1-vendor-partition-t3831517
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] SGCMarkus:
Try to manually format the partition with make_ext4fs :confused:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] FcBayernMinga:
Nvm: vendor had 0mb. Vendor Image 512mb.

I flashed your lineage trebleized rom and now i can mount it.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Will you add flashing TWRP to laf?

We can do that on the V20.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] badboytien:
does this twrp compatible with us998 20e

thanks for your help
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
Your question is confusing. Yes it's compatible, once you unlock your bootloader and install it. This is TWRP for all v30 variants.

Let's clear up confusion another way. Have you unlocked your bootloader and install TWRP and you now want to upgrade to 20E? Yes, this. TWRP is compatible for all V30.

But if you have not unlocked your bootloader yet, this is not the first place to go ask quotations. You need to be in the WTF thread where all your questions are answered in the Guide, about how to do that and to install TWRP in the first place.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] badboytien:
now, i am in us998 20e with bootloader is already unlock

i am looking at other thread they said there is no twrp that compatible with v20e
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
You are mis-reading. Has NOTHING to do with TWRP.

NO KDZ file can be flashed by TWRP. Period.

But in the past [MENTION=3642089]westwood24[/MENTION] made some TWRP-flashable files (like a ROM) for us FROM KDZ for H930 and US998 that can be flashed by TWRP. He has not done that yet with latest US998 20E. So, if you want to install it you install it the way you do ALL OTHER KDZ files, which is not with TWRP -- but with dev patched LGUP.

All those questions are answered in the US998 KDZ thread and have nothing to do with TWRP.

No KDZ is "compatible" with TWRP. You use another tool to install any KDZ.

Once you have 20E installed, TWRP will work just fine for stuff TWRP does.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] badboytien:
thank u so much

god bless u
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
ok, the time bug was not acceptable by me xD so i tried to fix it, and it is ok now :) would like to have some feedback from you, because for me the last time clock was one hour off (instead of one and a half year), but for [MENTION=3037651]zacharias.maladroit[/MENTION] it was ok. :good: (edith is crying: just tested it again, now it works for me too, timezone is ok)

grab TWRP-3.2.3.0-tfp.img here.

everything is working as it should, incl. time (don't forget to set your timezone). i want to fix encryption too, but this is a harder task than i thought... we'll see, maybe, at some time ;)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Wait so is this also a newer number TWRP or just fixed time?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
yes, newer sources, too. these are the fixes from twrp team since then:

* adb backup fixes

* OTA style update zips will now install automatically without prompting for decrypt

* minor tweaks to handling date/time on Qualcomm devices

* updates to some language translations

* Fix automatic installing of OTA zips on encrypted devices

* Remove SuperSU from TWRP

* Support both md5 and md5sum file extensions when doing MD5 checking for zip files
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] bacon612:
Thanks for your efforts. Can this img be flashed from within the original TWRP build?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] donky kong 017:
Flashed IMG in twrp worked great. Made a backup and time is correct. Thx for the file
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
Thanks for this. I know at [MENTION=3475147]SGCMarkus[/MENTION] has been very busy with his ROMs. Back in April 2018, he gave us the version in the TWRP OP because the other two versions by other people were outdated at the time. Also they segregated the H930 and US998 nomenclature, which suggested split development (which would have been a disaster). Yes, those were the only two V30 models that had bootloader unlock and root of the time, due to LG official bootloader unlock code - - but they didn't need two different TWRP releases. Now ALL the V30 have bootloader unlock and root, and his version gave us "current" (at the time) TWRP and unified the V30 development in spirit.

I will include this newly updated TWRP in my WTF guide. I hope at [MENTION=3475147]SGCMarkus[/MENTION] can post this one in the op. Thank you again.

Yes. You can always update TWRP within TWRP.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Do you help develop TWRP? If so, I just want to know if we will get the feature from v20 TWRP.

In TWRP there was an option to flash TWRP to LAF.

It made life easier so we did not need a PC.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
No, I'm not a developer. I'm better at contributing information, sometimes giving my opinions. ;)

[MENTION=408669]SGC[/MENTION]kmarkus, [MENTION=3138121]seadersn[/MENTION], [MENTION=3167089]runningnak3d[/MENTION] or other developers would be the ones to give you that.

Just curious. I see this request a lot from the T-mobile guys, but I don't really understand why they want it. How did it make life easier so you don't need a PC? You still have to flash TWRP to LAF via PC to begin with, do you not? I really don't understand any advantage there.

Plus, once TWRP is installed regular way, it becomes your custom recovery. Then you don't need a PC after that. On stock rooted firmware you can use any one of several apps and/or on AOSP custom ROMs use the built-in power menu to easily "boot to recovery" (TWRP). This is the excellent app I recommend in my WTF Guide:

Recovery Reboot

Whereas with a LAF-installed TWRP (which you still have to flash via PC, unless I'm not understanding something), then you would end up with two TWRP custom recoveries? For what purpose? And how or why would you want to boot to TWRP on LAF, when you already have TWRP custom recovery?

Please help us understand the need and advantages.