yashsingh1/xdaforums huggingface dataset:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
it's absolutely enough to delete the firmware.* and eventually the modem.* files (should be 3 firmware files and 2 modem files if they're even present from an older version) out of the folder(s) inside your /(external_)sdcard/twrp/backup folder, just to prevent it's being restored by accident.

the modem.* files in general are okay, and yes, i already configured twrp in version that way that modem partition could be backed up and restored w/o hassles, 3.2.3-2 or -3 was this version. please don't ask me why i removed and changed this stuff back... guess it's my life, it's just too full of action atm with changing windows and doors of our house and more work, together with a hysteric wife and two kids xD. fortunately this all should be done and over this weekend :D it's terrible atm...

but: [MENTION=6822369]Xblackberryuser[/MENTION] most recent = -6-default? there's absolutely no reference to modem partition in it, and if the files mentioned above are deleted, even a restore from an older version shouldn't give you this warning. did you reboot to recovery after installing it? critical must-do step. can you reproduce this and take a screenshot and log pls?

i've installed the latest default recovery and did a backup and restore and this message wasn't there for me. (proof-screenshots follow soon)

i've got much more time next week and will have my brain (and body) back for myself, i'll update the first posts then, it looks terrible there and is partially outdated -.-

edit: proof screenshots from backup with -6-default version:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Xblackberryuser:
It's probably nothing
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
now, that's *really* strange :eek: modem or firmware (same partition, diff mount point), both or one of them, are *not* showing up in your backup list, right? one of them, firmware, could show up in your restore list, but only with an old backup to restore which contains these files. no way to let it disappear from restore list, because this partition is needed for decryption (cmnlib files).

i tested this too, after your post, but a) didn't see that and b) i certainly have a h930.

is a log available from that backup? when you didn't visit recovery in the meantime, it should be in /cache/recovery/last_log. could be it's big because of backup, but i want to have that one, please :) when uploading, pls use pastebin.com.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Xblackberryuser:
That error does not show if I select to backup recovery and LAF/DL. Only the default 6 partitions generates that error line. Sorry, I do not have a log. Since that screenshot, have reinstalled recovery and wiped and reinstalled backups a couple of times. I'm guessing that log is long gone.

I restored a backup that did not include recovery and LAF/DL. How necessary is it to backup those two partitions?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
LAF and recovery can be disabled for backup, you can backup them once of course, but you won't (hopefully) ever come into the situation to need restoring them. when you need to restore laf, then it's too late, in general :D beside the case having twrp installed on it. data, system and boot are the main partitions a user which likes modifying his phone has access to and does edits to, so these are the only ones really needed for backup. if you stay on a rom for a while, then there's no sense to backup both boot and system every time, only when an edit was done to them. userdata is enough then. when flashing around like mcgyver and switching roms, boot system and userdata is needed for a full restore, nothing more. just some examples...

about the error: can you do a screenshot of the partitions you backed up, or list them? i think everything except system_image, this is what i tested.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Xblackberryuser:
This is what was backed up that generated the error.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
can you try wipe cache, advanced wipe and cache only. then reboot to recovery and then doing a backup again.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Xblackberryuser:
Yes. No error after wiping cache.

Hold on, didn't boot to recovery after cache wipe.

Same result, no error after booting back to recovery after cache only wipe.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
something remains in backup list, or better: backup list isn't refreshed. when a backup was done with a recovery, which offered an additional partition, then switch recovery to another version without this partition and do the same backup w/o reselecting (=refreshing) the partitions, the backup list setup will remain. a simple reselect of one single entry should be enough to refresh this list, maybe. or a cache wipe. speculation... maybe i'll test this again sometime.

if it's like that, i would call this normal behaviour, imo it's twrp wants to offer the easiest user experience and makes things as comfortable as it's able to. backup list *is* stored somewhere.

so when we flash a new recovery, a cache wipe should be done too, okay. i'll update the first posts anyway, tmr or next week.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] _or_75:
/delete post
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] [Cruzer]:
ok so what do I have to restore to get back wifi functionality, from a restore?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
modem restore,

not

firmware. or flash a modem image via fastboot, it can be a modem.bin taken from kdz, extension renamed to .img, too. (or just leave the filename, should work too.)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
do you need help? which model do you have? edit: tmo, saw it in sig. is there one available? otherwise an other tmo user could do a dd image of his modem partition to help you out. command for that:

dd if=/dev/block/bootdevice/by-name/modem of=/sdcard/modem.img
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] [Cruzer]:
I was able to get back functionality after flashing 20o update. Thanks
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
k, good to read that all is good now, again :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] lafont28:
Ok can someone please tell me if I have the procedure for flashing a GSI right before I screw it up and brick my phone. I have the vendor partition created already. So now I:

Backup current ROM

Factory reset

Install GSI as system image

Reboot to recovery

Flash gapps/magisk

Anything I missed or not necessary?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
after factory reset go to

https://xdaforums.com/lg-v30/development/rom-lineageos-15-1-t3789792

flash the lineageos treble version so it flashes the right vendor.img to your new vendor partition

after that you can continue from "install GSI as system image"
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] lafont28:
Do I have to boot LOS and then reset again or go right to the GSI?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
after you flashed the lineageos treble, you can flash you GSI choice right after that.

i did the same thing this order:

created vendor partition with party.zip (512mb)

reboot recovery

factory reset

flash lineageos treble

flash GSI of choice

flash gapps

flash magisk

done.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] lafont28:
Perfect!! Thanks for the guide!
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
check post quicky i edited it, i forgot to add the factory reset.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Just remember not all GSI need gapps..
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
prepare for a flashing weekend, new version up, with full modem support (again, as it was there already but ... ;)).

see changelog and first posts for additions etc pls :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
Not meaning to hijack thread. (i tought since its TWRP related ill post it here)

If anyone is interested in automated TWRP backup.

i made a small macro with shell script with the use of "Macrodroid" on the Play Store. plz check this link if interested.

https://www.tapatalk.com/groups/macrodroid/true-automated-twrp-backup-t5459.html

(if you think i hijacked this thread, plz tell me and i will delete this post)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
no problem :D i like all recovery related stuff :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
[MENTION=3138121]seadersn[/MENTION]

got error flashing theme.

https://pastebin.com/ehrQp2Fj
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
did you redownload it or is this a local copy you saved earlier?

just flashed this two days before without an error, a local further modified copy, but will try attached zip now :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BADA 187:
just downloaded it and opened it

you have zipped the folder containing the files.

i just extracted the files and zipped those and it works now.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
yeah, but noone wants to edit the files he want to flash in first place, even me want to flash rigfht away :)

LoL *THAT* happens, when everything you want to do is interrupted 4-5 times by kids or something else.... looks i need to do stuff *only* when i really have silence xD sh!t...

so: reuploaded, correctly zipped this time :D sry for inconvenience ;) tested every theme with flashing, it's fixed.

updated third post, removed attachments but put link to afh "TWRP Themes" folder.

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

thanks for finding, bada! :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Sergykm:
[MENTION=3138121]seadersn[/MENTION] can you help me please?

I delete magisk and my userdata was encrypt after that. I cann't use my phone because when it boot in to OS is says encryption unsuccessful.

So in TWRP I must use my pin to decrypt userdata, but I cann't use pin. So can I restore my data or it lose? I have many photos from vacation here...
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
Cant access link. Its denying saying i dont have access
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
could it be that magisk changes your bootimage back to original and that this original was a boot image with encryption enabled? or magisk changes it back to forced by default, but i absolutely don't know that. anyway TWRP itself doesn't encrypt your userdata partition, it can only encrypt your TWRP backup folders content.

what happens when you flash magisk again?

pls try again, somehow used wrong link :)

https://www.androidfilehost.com/?w=files&flid=285330
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Sergykm:
I flash magisk unistaller and after that I get bootloop, after that when I go in twrp I get that data is encripted and has size 0B, when I go to twrp I get mount decrypt data password.

So I don't know what can I do... I don't want format my data, because there're so many photos(((((((

Also when I boot into OS I have message that encryption unsuccessful.

What can I do? Is there any chance get my data back?

I'm on Boombox 1.3 and now on last twrp...
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
sorry, i can't tell you what to do, beside the fact that for critical operations like these a beforedone backup could've been a lifesaver :( sorry, really; but *did* you try reflashing magisk? and: which version of the recovery do you have installed? does it happen to be the IntSD version (or DataIMG, with a DataIMG backup) and that you *have* a backup, best would be only some days old, so when restoring this one only little is lost? then we could just format data and restore the backup: and flash opt-encrypt zip...

i have to have a look at least at the boombox rom's boot image. i don't know how this rom is configured.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] JohnFawkes:
Thanks :good: Working great now
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
So i'm using TWRP-3.2.3-6a-DataIMG.img but can't seem to flash https://xdaforums.com/lg-v30/how-to/us998-to-ls998-sprint-lte-root-t3802310 to return to stock .-.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
what's your exact issue?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Well when trying to install the stock rom, it would say no OS after a successful flash and then upon reboot it would just go straight to TWRP, but i later figured out that a simple KDZ to US998 20E and reinstalling your latest TWRP fixed whatever was causing the issue.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
hmmm.....i'm getting failed mounting Persist-LG error 150......i have no idea why....
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
that's drm partition; is it there in /dev/block/bootdevice/by-name folder, when you booted your currently installed rom? and is there a /persist-lg folder (mountpoint) in root directory? and is there something in it?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Well after flashing a Rom it would boot straight into fastboot...then I tried KDZ back to stock to fix it again...but no luck
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
reboot to fastboot can be fixed with a boot image reflash sometimes. but doesn't sound like this would be enough in this case. you didn't see telegram messages, right? can you check them? i think this isn't twrp related, but maybe we can figure this out together.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ainz_Ooal_Gown:
Telegram is number specific :crying: :crying: :crying: i need the phone to boot in order to use it.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
Any reason when I tried to make a backup I got this file that I can't delete?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
you should scan your sdcard for errors :( is this card longer in use and does it have to perform many write cycles? a forced shutdown of android OS can cause this too, for example. maybe there's a defective sector on your card.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Kleymor.Metal:
I refurbished my phone via LGUP, then flashed your TWRP, rom, fixed timezone and flash recowery again after all this things.

Now my problem has gone away, your TWRP works great. Big thanks )))

Отправлено с моего LG-H930DS через Tapatalk
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
thanks, too :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] BROKEN1981:
I loaded music to my sd card last night and deleted the file using Windows.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
no scan done? i would check it :good:
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] gimpy1:
I have a twrp/backup/restore question. I am on the current (6a(?)) twrp version. I want to have one good backup in my twrp for possible restoration, if ever needed. I currently have 4 systems that I have backed up in twrp over the last several weeks totaling over 19 gb of space (I hope to free up about 15 gb or so). The problem is, there is only one of these four in the "restore" button of twrp.

These four backups were done over the last three or four weeks or so. So, different twrp versions and probably different roms. The one backup that actually shows up in the restore section of twrp is an older one (the dot from 2017). The app used to show the twrp breakdown is disk usage.

Any help or advice? Thx.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
these were done over different recovery versions, right? but this shouldn't matter, as long as you have a look now in every folder and delete the "firmware.*" backup files, or at least do not restore them. this is because i once changed the way twrp backups the modem partition (from dd image to filebased, which didn't work).

folder structure is

twrp / backup / (serial number / rom/fw version) / backup.folder containing the backup files.

it should show every backup in your actual setup, when you move all these folders which actually contain the backup files, into the rom/fw versions folder, from which twrp shows these two of your backups.

or written another way: inside your /sdcard/twrp/backups folder are more than one different folders. locate the one which shows its content in your actual twrp setup and move the content of all the other folders into this one. done :) but be aware to not restore a backup from a different model number (vs996 and us998), this may not boot. you can try it, but it may not function.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] gimpy1:
Yes, they were done over different recovery versions. When you speak of firmware, I am not sure what you are speaking of in my backups?

Can I go into my file manager (Root Explorer) and delete three or all of those backups individually? I think I would delete all of them except for maybe the one that shows up in the "restore" section of twrp? But that one is a backup from several weeks ago.

Do I have different firmware in my backups? Is very confusing to me. :confused:

Thx
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
did you backup any other, additional partitions than boot and system? if yes, then maybe parts of the firmware are included. and: you switched from vs996 to us998 = another firmware ;)

leaving only one backup would be a good idea :good: i'm handling it this way too.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] gimpy1:
I only backup whatever is already automatically checked. I do not add checkmarks..
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
Probably an easy answer here. Just picked up a 128 gig card. Ran a new backup. Weird thing is it shows up in file system as the name of the back up. Doesn't look normal i.e. TWRP>backups>serial number>backup name. Just backup name by itself. Problem?

If I click restore it shows me to see and select that backup. ?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
can't imagine atm what happened, can you post a screenshot? :D

folder structure sounds normal.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
In the screenshot, you can see the backup folder at the top. Usually, when doing a backup for the first time, recovery creates the folder system/subsystem. Yes? I'm going to run another backup just to see if maybe I selected something I shouldn't have.?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
This is what I got on a second attempt. File structure created, but nothing in backup folder.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
You don't think this it's a card issue?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
did you format the card before using it? i would do it, there isn't much stuff on it right now or? copy everything away from it and format in twrp, then a reboot to twrp and backup. maybe this helps.

if you've got concerns about the fitness of the card, let it check, by either twrp.or a linux / windows tool in a card reader.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
Thanks again sir! Reformatted in Windows, and all is well.
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] gimpy1:
To clarify for my edification, are you backing up to an insertable micro SD card and not to the phone storage itself?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] Ballroomblitz:
Correct
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ctl999999:
I found the /system/vendor/etc/...but there are no the fstab file there....but I still copied the attachment into that folder & reboot. However the security settings still not have the option for me to encrypt it. Anyway what is the option looks like in here ? Thanks....
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
*may* it be, that you are on stock? for stock there shouldn't be the necessarity to change a fstab, you could encrypt your phone from within security settings on your phone. all the fstab changing script-zips for joan don't remove the encryption but make it a option. it's no more forced, but you can chose if you want it encrypted or not. try a search in phones settings for "encrypt" (if english as main phone language is used).
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ctl999999:
Yes sir, I was using stock rom with rooted, and I also just tried one of your flashable rom too. Both I checked the setting after reboot, Under "encryption&credentials" >> "Encryption" >> there has two options for me to choose, "Encrypt SD card" & "Secure Start-up"............is that the secure start-up is the encryption that this thread talking about ?

Basically I just want to protect my data under twrp.....i.e. nobody can access it under twrp.......could you please show me some directions....Thanks a lot....
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
you're rooted? or have a terminal amulator app installed? you can check encryption state with

su

getprop ro.crypto.state (and the type of encr. wit getprop ro.crypto.type).

maybe you already are encrypted, but don't have a pattern set (pw, pin, pattern).
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ctl999999:
I try all the steps from the beginning...flash twrp,rom...etc....now the encryption state is encrypted, the type is block or blank result.....however even I set the pattern set (pw, pin, pattern), I still able to see my data in twrp without input the password.

I just set the password but not enable the pin required every startup, is it the reason ? If I set the pin required startup it will ask my password in twrp.........but is this normal ? As I do not want to turn on the "Secure Start-up" function........
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
set your pattern/pw/pin and enable secure startup = pw/pin/pattern needed when device is booting. this way in twrp you'll get prompted to put in your pw/pin/pattern. if you tick "cancel" then, then your data isn't visible, because twrp doesn't decrypt your userdata partition. if you fill in your pw/pin/pattern, then of course your data is visible, that's twrps job (=to decrypt your data and be able to use it).
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ctl999999:
How about if we set a pattern/pw/pin but not enable secure startup ? I believe in this case data still encrypted and our data cannot be seen in twrp, right ? Because for my previous phone I didn't enable secure startup but my data was not able to seen in twrp......
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ChazzMatt:
At some point you will need PIN/password or even you won't be able to see your data in TWRP.

Then why were you resisting that before, asking if it was "normal"? Try it. It will either work or it won't.

IF it doesn't then you have to do the secure startup.

This may give you some more information:

https://xdaforums.com/nexus-6/help/twrp-3-2-1-0-password-boot-t3759783
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] ctl999999:
Because I was not using oreo on my previous phone....and you know different phone/twrp version might have different situation....^^

Yes...I tried.....on my phone...........No secure startup = data could be seen in twrp without input password.......

Anyway, do you guys usually turn on secure startup ?
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
jep! :)
[LG V30 ROMs, Kernels, Recoveries, & Other Developm] seadersn:
update available: with some OP partitions available now, an OP image flashing function is added, beside a sources update.

have fun and a nice weekend! :good: