yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] NicoCoded:
I never said anything about sharing my EFS; that would be a total idiot noob move, give me a little more credit then that! Also there is a difference between "modem" and "modemst1" or "modemst2" -- so correct me if I'm wrong but the IMEI/ESN is NOT located in the modem.img partition but rather in the ones I just mentioned. The regular modem partition contains radio/baseband/profile/PRL parameters needed by the mobile provider. The modem file I've posted fixes the No Service error that many will get after downgrading or flashing VS995 KDZ to a Sprint LS997.

Back to the topic, I was finally able to make a full backup of the system image partition using this version of TWRP. All the other versions I've used randomly exit tar around 60% and the logs just say terminated with RC=0. So good job and thanks for adding the full image beta. It also works great!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] poixninja:
Would also like to report that on lineage-15.1-20180712-UNOFFICIAL-vs995 and Gamma kernel v17 that decryption within twrp only doesnt work. i can boot to system no problem, but i get failed pattern in twrp, using 2018-07-13 build, 2018-05-05 works just fine
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Just reporting in that the latest update works great on the H990 :)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Not sure if that commit is it, as it's older. But, yeah, your 07-13 latest one will not decrypt anymore. (sent pm about it too).

---------- Post added at 10:00 ---------- Previous post was at 10:00 ----------

Decrypting too?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Got it figured out, new builds are up.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] poixninja:
<3
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Capt_rusty:
Works great, thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Wondering if anyone else is having an issue with the auto-generated backup name being off by 24 hours? Mine has the correct time but the day is always the previous day. I've been seeing this for the last three builds. Running an H918.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wstephen:
TWRP 3.2.2-1

I've got "Unable to load '/twres/languages/zh_tw.xml'" warning on LG V20 N990DS. I am on stock rom (Kernel: DOTS_H990_kernel-leicxan_jahlex-v1.4). Is this a kernel problem?

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sachiru:
Will there be a version of this that supports the F800S/F800L?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SebTech33:
deleted
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
I'll make up one and if it works let me know..I assume you're running the original twrp from the dirtysanta/dirtycow threads?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sachiru:
Yep, haven't touched that, too scared to touch it. Mine is a F800k, but I hear that F800S/L is compatible with it.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
Has anyone successfully flash TWRP to laf yet I want to try it but I'm not sure until I hear somebody say they've done it LOL
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bigcletus:
I am using TWRP 3.2.1-0. If I update to the latest 3.2.2 will my old backups restore ok? Thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] cnjax:
Most likely not, so if you update I suggest you make a backup immediately
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Actually they should be fine but for the fact that the ancient twrp versions labeled everything as us996 or elsa, so when twrp looks for a backup to restore, it will only see backups from a different device type, there hasn't been any changes to backup/restoring that I noticed.. still, it won't hurt at all to make an updated backup

Yep I have and it's been great, plus the lafsploit to root the h918 has had loads of people flash A version of twrp to laf, just not strictly mine
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
So all I do is flash the img to laf. That simple?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Yup.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sachiru:
So, any news on the TWRP version for F800S/K/L?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Had a couple other changes and fixes I wanted to get in first, I released it now with 3.2.3 for all the other variants.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
When I select to install image, I do not have an option to install to LAF. What am I doing wrong? Running 3.2.3-0.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
H918: Date and time not correct on 3.2.3. Was perfect on 3.2.2-1.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Can't do a thing unless you let me know what rom, if it's lineage 15 it's messed up on their side.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
Yes it's lineage 15 1. Sorry.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Not sure how you got lucky enough to have it work in the past: lineage 15 isn't saving the time for some reason so twrp can't read it. You can see it in lineage itself if you reboot with WiFi off and airplane mode on, date resets to 1972. What I'm doing as a guestimate to at least have a ballpark date for backups is to look at the timestamp on /data/media/0
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
I suppose I never booted up without either mobile data or wifi enabled. A few minutes ago, I went back to 3.2.2-1 from 3.2.3 and twrp date and time went back to correct. I noticed that 3 2.2-1 took a bit longer to start up then 3.2.3, however. In my experience the longer twrp takes to boot the more accurate the date. Don't know if this helps.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
You probably need to scroll the selections up man lol
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
It's here on mine. Look in the top left corner and check version number. If you don't see a version number then you down have the correct twrp installed. Other than that idk
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
There is a problem with the theme I was using. It only showed three options. I removed the theme and see the LAF/Download option now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sachiru:
Tested your build on my F800K, works perfectly. Thanks very much!

I'm afraid to flash it to LAF though because the Oreo KDZ might need a pristine LAF partition and I'm waiting for an updated KDZ that supports root.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Backup the LAF partition, make a copy somewhere. Then flash or do what you want with it, and just restore the backup if you need it later. Ez. It's what TWRP is for, after all.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Sachiru:
Thanks, I didn't think of that.

LAF is the "if all else fails, push this button" recovery option, correct? Something to use in case something gets fscked up when flashing a ROM/Recovery/KDZ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Basically yes, it is; In most cases, ie unless your bootloader gets locked, TWRP is going to be more useful to have around than stock LAF (remember kdzwriter is included and may be accessed in advanced->terminal) , but its up to you.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Jerry SQ:
H910, working just fine. I flashed LineageOS 15.1 x86cpu ss h910 with Magisk and all without any problems at your lastest TWRP
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] da576:
3.2.3-0 from the build.twrp.me link in the OP seems to be working on us996(factory unlocked). I tested the following:

1) Back up 2018-07-26 LineageOS build

2) Flash lineage-15.1-20180806-X86CPU-us996.zip

3) Back up 2018-08-06 build

4) Restore backup of 2018-08-06.

No problems that I have noticed so far.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
[MENTION=8639605]Phoenix591[/MENTION]

Just reporting in that the H990 build works a-ok from the OP, the one from the official TWRP servers. Your unofficial builds have always worked perfectly for me, I'm happy to see a somewhat official version is still doing just that :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Alright, did a lot of clean up, this should be the last unofficial providing there aren't any issues. A lot of the previous known issues are taken care of, I'd love to hear about anything that crept in.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Capt_rusty:
Works great, no issues with h918
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Did the version not increment in this release?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Correct
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] anotherdj:
encrypt.zip looks for /fixdate.sh instead of /sbin/fixdate.sh

encrypt.zip fails on 2018-08-17 build of 3.2.3-0, saying "Please upgrade to my TWRP builds because ...".

anykernel.sh checks for existence of /fixdate.sh, which is actually at /sbin/fixdate.sh
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Sorry about that , slipped my mind during those changes. Here's a new fixed zip, also linked in the OP: encrypt-v2.zip
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Redline:
Latest version working perfect here for me on the H990DS with LOS 15.1! Glad to see the vendor support already in place, gives people plenty of time to update and have support for when /vendor or treble support makes its way to us. Many thanks :D
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
Where the official releases will be placed and will kdzwriter be built-in?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
They'll be on TWRP's website and available through their app. Kdzwriter will be still built in; the official version, provided no issues surface, will be exactly the same as this latest update. This newest version was already built on their build servers and it's just down to a push of a button to send it from unofficial to official.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] anotherdj:
Thank you!

I saw that you changed from patching fstab.elsa to fstab.qcom. However, I have fstab.elsa, both inside boot image and recovery. I have an LS997, on which I installed AlphaROM with mk2000 kernel. I am using your latest LS997 build of TWRP v3.2.3-0 from 2018-08-17:

# md5sum twrp-3.2.3-0-ls997.img
bde446e037b1ffc074bc0d663e736fc2 twrp-3.2.3-0-ls997.img
# dd if=/dev/block/bootdevice/by-name/recovery bs=29597696 count=1 | md5sum
bde446e037b1ffc074bc0d663e736fc2 -

Additionally, do you think it'd be appropriate to abort the anykernel.sh script with an error message if it doesn't find fstab to patch, instead of continuing and rebooting? That way the user would be able to troubleshoot. What do you think?

P.S.: I see that you have fstab.elsa in your GitHub repos:

https://github.com/Phoenix591/android_device_lge_us996/blob/us996/recovery/root/fstab.elsa

https://github.com/Phoenix591/android_device_lge_ls997/blob/ls997/recovery/root/fstab.elsa

Guess I should send you pull requests, would be quicker. Whatcha think?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
My bad, I was messing with it for another reason and accidentally left it as qcom. New one, just qcom back to elsa, and qseecomd->qseecom (guess I dropped the d when switching to my own qseecomd script)

I let it keep going if changing the fstab doesn't work because, I had success manually starting qseecomd, calling vdc and kicking off the encryption that way.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Zemnexx:
Thank you for this. This really needs to be pinned or something on the first post to detail how to actually get into the recovery. For those having issues or are confused about how to actually get into your recovery via the buttons like other android devices, this will get you into TWRP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
okay i'm stuck . i've searched everywhere and i cannot find a solution hence why i am here .

i installed TWRP 3.2.3-0 from your download and then tried to backup everything on my stock LG US9996 and it was on "n" which i believe is the latest stock OS from LG however while creating the backup everything was smooth until it got 2 file "system" which where at this point , it failed about 64% of the way and gave an error and after trying several different SD cards , they all ended with the same error , so i said "fok it" i'll move forward without a backup and unfortunately i do not have that log file as i thought maybe i just cannot backup the stock LG software for some ( encryption? ) reason .

so in installed the latest 14.1-20180819-NIGHTLY and it installed just fine however when i went to make a backup in TWRP again at the "system" file i get an error "Error writing destination fd (Operation not permitted) Backup Failed. Cleaning Backup Folder." - which i have attached the log file .

i have formatted several SD cards from linux 2 fat32 and even used TWRP to format and i still get the same error while trying to backup the "system"

so i've rulled out a bad SD card and they have more than enough storage , i've tried 8 16 32 and 64 2 no prevail .

so i'm stuck , anyone ?

also included all log files from the SD card not sure if they are needed or not and i've had my fair share using TWRP but i've never encountered such an error when trying to backup the system .

thank you and regards . . .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Looks like you're backing up system_image to an sdcard.. I bet you're running into fat32's file size limit of around 4 gigabytes (a system_image backup is about 5). Backup system_image to internal storage or external hard drive, or if you must use an sdcard format it as exfat (support for exfat varies depending on the kernel) or use a regular system backup instead (this isn't relevant at all for you personally since you have an LG unlocked us996, but for others keep in mind if you lock your bootloader a system backup will fail the check while a system image won't... Regardless it's safest to use download mode to flash a kdz when going fully stock to lock bootloader anyway)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
copy , thank you for quick reply , trying . . .

---------- Post added at 10:38 AM ---------- Previous post was at 10:34 AM ----------

and real quick since i'm drunk as F right now how do i install the TWRP over the old one ?

thanks and i could probably figure it out myself but while i'm searching , how 2 do it so i don't screw something up if you could give me a link for install over old that would be great , thank you . . .

and link for paypal donation also . . .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Just edited my original reply with the real issue. To install a new build of TWRP use an app like flashify in a rooted rom, or in TWRP itself install->install image-(browse to new twrp)->recovery. Might as well keep that new build I linked anyway, going to properly release it in a day or so if it works with what x86cpu is doing with regards to treble and system as root.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
and i could use linux chromebook or windows whichever is easiest but i usually use linux . . .

---------- Post added at 10:48 AM ---------- Previous post was at 10:45 AM ----------

thank you , working . . .

will reply with outcome . . .

PP donation link ?

ty . . .

---------- Post added at 10:51 AM ---------- Previous post was at 10:48 AM ----------

"select partition to flash image"

recovery ?

edit: nevermind > recovery . . .

---------- Post added at 10:54 AM ---------- Previous post was at 10:51 AM ----------

sorry for such a mess of a reply but what should i back up ?

it's been a while and i've forgot . . .

thank you , trying again . . .

edit: backing up everything except experimental . . .

edit edit: flashed new TWRP under TWRP as advised and went okay now just backing everything up . . .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
same failure .

included logs .

i'm lost . . .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Fat32 sdcard+system_image won't work. Fat32 problem. Use system instead of system_image instead if you really need to backup /system (the "ROM" mostly) to a fat32 sdcard (backing up system_image to internal storage or an external hard drive that isn't fat32 will also work, as well as formatting the sdcard as exfat, but there isn't a way to convert to exfat without losing data and kernel support for exfat may be buggy on some kernels/roms)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
okay lets say i decide to disable all startup programs and i get a bootloop or something goes wrong then what do i need 2 backup 2 SD card formatted with exfat then to get back into the system like it was before i disabled all of the startup apps ?

thank you . .. . .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
System is just a slightly different way of backing up the same thing as system_image, system backups are smaller and won't run into fat32's limit. Mostly just focus on backing up system, boot, and userdata, thats the whole rom,kernel, and all your apps, though you should keep an efs backup too. (Efs is related to cellular modem, so just back it up when service is working perfectly well and don't worry about continuously updating that backup because it's not going to change much)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
okay formatted 2 exfat and now trying 2 back up everything just in case . . .

10% complete , lets see how it goes . . .

edit: and yeah i thought system was all i needed from past but cant remember much it's been a while but that's the one that wont backup , "system" but again backing up everything except experimental and lets see if it works now with exfat . . .

edit edit: it's @ 72% which it has never got that far before it's always crashed around 64% so i think it's gonna work .

so why does exfat work but fat32 does not . why does it stop @ 64% using fat32 but not while on exfat ?

and i know you said it's a limitation but what is that limitation ?

and this should be mentioned in the header of this thread so others can know ?

thank you ,

paypal please , donation time . . .

---------- Post added at 12:50 PM ---------- Previous post was at 12:08 PM ----------

exfat worked , fat32 had issues , i will try 2 restore the file and see if it works . . .

thank you so much

PP ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
The limit is maximum size of a single file which for fat32 is 4 GiB (4,294,967,295 bytes) so I suppose that's 64% of the size of the system partition. The same limit for exfat is ~128 petibytes FYI. Wikipedia. Check your pm for my PayPal since you insist.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
got it , limitation of size .

rebooted after backup all is good , then went back into TWRP and restore all files and now stuck @ LG screen . i guess i'll wait a while and hope it boots . . .

looking in2 secret messages , thank you .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
I'm using your latest recovery on my 990ds. For some reason I can't go into recovery using buttons. It just boots up even. Earlier I was able to go into recovery using the steps you mentioned. Can't now.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] rein013:
after restore now all i get is LG screen . it wont boot past . can you call me ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
keep trying you're doing it wrong sometimes it's a pita to get LOL
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] tech_infinity:
Lol. I tried at least 10 times ?.

Is there a boot to boot into recovery using fastboot in case my rom goes into bootloop.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
You are probably releasing pressing again too fast I had that issue LOL

If you come to the super v20 ROM thread and grab the link to the telegram thread I can get you an app that will boot into recovery for you that's all I got
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
For those who want to reboot an easy way look for Quick Reboot Pro app. It has shortcuts and widgets also.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Also Zacharee's mod for stock adds it to the power off menu. For lineage you can enable advanced reboot u der development settings.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Do you have a link to this mod?

Thanks.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Miscellaneous mods
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] mrdzu165:
After i unlocked Bootloader, twrp asked passwords, i can't flash ROM, please help me
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Use the password for your lockscreen. If it doesn't work, ensure you're actually running the TWRP (version 3.2.3) in the OP and not some old version from a guide. To bypass the screen (for example to update to a proper TWRP by going to install ->install image>(browse to new twrp... Must be saved on an external sdcard if bypassing the encryption screen>recovery,), Hit cancel on the password screen.

Twrp may also be updated via fastboot in the case of the official LG unlocked us996 or those rooted with dirty Santa (fastboot method not recommended for those who used dirty Santa, due to it being more unreliable and potentially needing more than one flash to work)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] faeterov:
I installed through TWRP the latest magisk (17), and I get "Updater process ended with ERROR: 2" just after "Constructing enviroment"

This is with the latest TWRP on the H990DS.

Now the phone is on bootloop.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Parasol_Monsters:
I also installed the latest magisk (17) with TWRP with no problems (US996 with official bootloader unlock).

Just for reference as this might be specific to your variant.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Flash magisk uninstaller then try reflashing, if fails uninstaller then rom (then kernel if the one you want isn't in the rom) then magisk 17, if that fails do the same again but with old magisk.

just got done testing and couldn't reproduce the issue (I redownloaded and installed my 8-17 twrp from a work in progress build I had and tried flashing magisk 17, which worked, then uninstaller then 16.7, then magisk 17, still worked) , so the general magisk troubleshooting above should cure it.

A few people in magisk's support thread to have had issues as well that this sort of troubleshooting fixed.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] doctor_james:
I had that issue too on a h990ds and uninstalling magisk, reflashing the kernel and the new magisk seems to have solved it. There's possibly an issue with magisk hide settings not persisting though I've not had time to investigate.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
[MENTION=8639605]Phoenix591[/MENTION] I'm getting error 255 when I try to create a backup is there a way to fix this?

I'm on the super v20 telegram thread if you want to hop over there
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
Are you still working on 3.2.3 to correct the timing issues and also I believe the displayed sizes of the backups isn't correct on the info page when the backup is done.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
What timing issues? If you mean just the time/date it is already as accurate as it can be, for stock roms I don't further adjust it because it's almost always accurate (if it's not it's a bug in the rom/kernel), for AOSP roms I adjust it a bit to get it accurate but it does work now. I'll take a look at the backup size, hopefully just be a case of GB vs GiB..