yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Backing Up Data (excl. Storage)

I have rooted all of my phones for years and just recently rooted my H918. When running my first backup in TWRP, I noticed that in the list of partitions, the data partition shows up as "Data (excl. storage)" instead of just Data. I got the following message when it was backing up that partition...

Backups of Data do not include any files in

internal storage such as pictures or downloads.
​

Do all H918 phones behave this way? I've not seen this on any of my previous phones.

Here is the backup output...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Its been that way for over 3 years, its even made its way to TWRP's own faq
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Wow, I guess that's what happens when I keep a phone for almost 4 years (my Note 4). :o

There's a lot of people in those GitHub threads that lost data. If I read it right, it sounds like internal storage is still not being backed up and they have added the warning message so people don't think it is.

So if I make a TWRP backup on Monday and on Tuesday, I bork the phone up and want to restore it back to Monday's backup, how would that be done? How do I backup the portions of data that TWRP is not getting?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
The simplest way though theres no compression is to copy and paste /data/media to your backup (/external_sd is an sdcard, or /usb-otg would be a flashdrive) using advanced->file manager

If you can handle typing a bit of typing advanced->terminal has another way that compresses the data to save space

tar -czpv -f /external_sd/backup.tar.gz /data/media

Thats tar create (compress using gzip)(preserve permissions)(list files as they're compressed) -f path/to/output/backup-name.tar.xz /data/media.

To extract it (restore)

Youd do something like

cd /data
tar -xpvf /external_sd/backup.tar.gz
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Can't you add another option in the backup/restore to do that? ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
MAY be able to add an image backup option for /data, but it hardcodes excluding /data/media in the tar based option. And things will probabily break or eat the all the disk space if someone tries backing it up to internal storage.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] x86cpu:
Right.. another option to add in /sdcard ... disallow it going to /sdcard itself... you have the source code, you can change it add an option.. like the ones when backing up boot, system, data.. add a "sdcard" one, something like that....
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Mmhmm I dont want to tweak too much outside the device tree, so if I can add it as a second fstab entry like system_image thatd be great.. I'd like to get things stable and try to go official at some point, but I havn't heard anything about even an incredibly minor change to twrp itself I submitted to get the date working. I should reach out to them I suppose.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] :
Hi, I can't seem to be able to get the encrypt.zip file to install.

I get an error saying:

Unzip failed. Aborting...
[COLOR="Red"]Updater process ended with ERROR: 1
Error installing zip file '/sdcard/encrypt.zip'[/COLOR]
Updating partition details...
...done

I've changed the permissions for the zip file to 755 but TWRP still reports the same error.

What could be going wrong?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
That was mybad, somehow it got corrupted between my last test and uploading it. New upload. Updating the op now. Incidentally I've got a fresh twrp update building now that I'll be releasing shortly.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
[MENTION=4193208]SJMarty[/MENTION] new build I'm about to upload has a data image option whichl grab apps etc and internal storage, not sure how well itl work with encryption, but its there.

TWRP keeps it from going onto itself because (duh not sure why I didnt think of this sooner) the size of the whole partition is smaller than the free space of the partition. In fact youll pretty much need an external hard drive (they do work in twrp, especially if you manually mount them) for twrp to actually try it since its around 60 gigs it checks for.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
Data Encrypted w/out loss!

Flashed today's TWRP (from 15th of April) on H990ds.

Rebooted to it and run encrypted.zip.

Seemed to start normally...

Been on LG logo for a minute or few...

Then continued boot to the system...

I would guess prematurely... Where to see a log of what happened? Everything seems exactly as it was before encryption...

EDIT: I see status of sda18 as encrypted. Also, see /data partition bar colored as green (encrypted) versus others yellow. How come those dozens of GB on /data had been encrypted so quickly? Amazing! Before the encryption, I set screen lock to mere Swipe thus reset all fingerprint data.

What is next - just set the fingerprint password that would be the new encryption password? Or should I do some magic with Magisk first (see the appeared after force data encryption checkmark in Magisk Manager in last pic)? How to activate secure start-up (30 attempts) password (greyed on the middle pic below), would it be wise thing to do?

PS Observed perfect datetime for backup folder was offered this time! But the internal storage /TWRP/.twrps file (attached) still has one day shift in the future.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Secure startup just needs a lockscreen pin/password/pattern. Its up to you if you want to use it or not. Id just wait on the settings file to catch up..if it doesnt Im not entirely sure whats up but the timestamp is correct on mine.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
You are right, I forgot this step as I played with this before rooting my phone.

But, after setting password + fingerprint lock W/OUT secure setup, and rebooting straight to recovery, TWRP didn't ask me any passwords and data on internal sdcard was wide open!

After adding the secure setup, however, TWRP asked for the password and decrypted data sda18 partition as expected.

Is that the normal behaviour and the secure setup is the only mechanism that provides the actual syncronization of passwords (as before entering the secure setup, the encryption password was default (with custom lock screen/fingerprint password), so the file system encryption password was not been changed, thus TWRP didn't needed a pwd)?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Yes, without secure startup the encryption is left with a default password that just protects if someone removes the storage chip from the rest of the phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
.twrps timestamp

Strange indeed. Right after the encryption it was April 16th (see attached zip file a post before), but now, on subsequent access, the timestamp of .twrps file is April 15th (i.e. correct)!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Can the free space check just be disabled in the settings menu? I am assuming the backup itself is only the size of the actual data on the phone, yes?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
Is this beautiful or what!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gabe2014:
Just question if safe to flash or this work whit the new laf method exploit ?

Note : I rooted my v20 a week ago whit the laf exploit
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
Yes, working perfectly.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
I'd do it after the exploit, the automatic method looks like it should work with any twrp, but the manual one was very picky about the exact one used. Should be fine to update afterwards using install->image.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Gabe2014:
Thanks guys for the replay , I'II try to flash the imagen on a bit
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Nightshadow931:
Looks awful. Original version is far better visually, imho ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shadavis08:
What you talking about Willis
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XolYnrac:
Someone have tried use kdzwriter with twrp 3.2.1.0-2018-4-15 version? I have this problem.

https://xdaforums.com/v20/development/tool-kdz-writer-t3649818/post76274425#post76274425
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XolYnrac:
I have a LG v20. Using twrp 3.0.2-1 I cant see data partition, twrp asks me about password, but using twrp 3.2.1-0 that does not occur
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
Looks like you have encrypted data partition with default (unchanged after initial encryption) password. Old TWRP can't handle encrypted data partition properly, at least with LG V20 H990.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Correct, the old twrp didnt support encryption (stock uses enccyption by default but rooting while unencrypted disables mandatory encryption). I'll have a build up with kdzwriter bundled inside it soon so as to avoid the issue mentioned in the other thread.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
So what was wrong was that you wern't doing the ln -s part of the directions in the kdzwriter thread. so it couldnt find the linker (the second paragraph under unix-like describes exactly what happened) needed to run the program (it was looking in /system) It was working in the old twrp because it mounts /system by default and new versions don't.

Anyway today's build flat out includes kdzwriter and is ready to use.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jl10101:
That's EPIC. Thanks so much for working on this and keeping it updated for the not as popular variants (H990 here). Thanks!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
Thank you!

You are The Man!:good::good:

The first and so far the only TWRP that supports encryption!

Kdzwriter couldn't be easier to use anymore! Not even symlink creation needed, it's right there ready to go!

Working exFAT support!

Timestamps are at last fixed!

Amazing value for all LG V20 owners, kudos [MENTION=8639605]Phoenix591[/MENTION]!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Well someone needed to be taking care of TWRP, at the time I started only the vs995 had a 3.2.x build. Figured might as well be me since TWRP is simpler than a full ROM like LineageOS. (Re:the system is busy issue its a nonissue, just twrp trying to unmount it before I end one of the services necessary to decrypt. I unmount it immediately after)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] will5:
Before the new twrp, I was using

C:\Users\Myself>adb reboot recovery

C:\adb>adb push kdzwriter.gz /

C:\adb>adb shell

gunzip -c /kdzwriter.gz >/sbin/kdzwriter

chmod 755 /sbin/kdzwriter

umount /system

ln -s /sbin /system/bin

kdzwriter -a external_sd/update.kdz

So, how should be the commands now that kdzwriter is included in twrp?

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] XolYnrac:
i have followed the instructions. I noticed after install twrp3.2.1
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
All you need to do is the actual kdzwriter command, in your example

kdzwriter -a external_sd/update.kdz

you don't even need to use adb (or a pc) at all, you can just go to advanced->terminal and enter it directly on the phone.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] will5:
Thats great. Thanks for your work on twrp.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shouk_1987:
I echo this man's words

You are really amazing and you and the other devs just make our device the V20 more beatiful every day
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
Yes indeed, the data encryption was the last major stop that could prevent one from rooting. But now, when TWRP at last supports encrypted data, removing battery or reboot/shutdown will provide the same level of user data security as a brand new device from LG factory [provided you activated secure startup of course].

The only remaining concern I have LG managed to fix Dirty Santa exploit in its recent firmware (from version 10k?). As laf exploit isn't ready just yet, a device with that recent firmware couldn't be downgraded anymore, so no root obtainable without patching LGUP, or on communication protocol level with a proxy, or by providing customized aboot.img for the device. Please correct me in these assumptions, as I'd glad to be wrong on those!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shouk_1987:
Hello Hotcell

If these questions are for me then i am afraid that i donnot have answers , i am just a normal user that applies the devs helplful tricks and aids and due to limited time i am not aware and cannot take the risk about all what can be implemented for our device

Actually i donot understand 100% percent what is this patched for encryption twrp

I am aware about the kdzwriter patch and this is whybi thanked the OP dev

I only do a pattern plus fingerprint security at startup

Can you tell me when , why and how i use this encrypted twrp ?

I cannot get the idea quite well

Sorry for my ignorance
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] devis prafiano:
Yes
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
The questions are for those who know about the subject, so no worries!

Encrypted user data partition uses widely known linux dm-crypt and, when combined with Android Secure Setup, provides some general level of protection, especially in case the phone is switched down or rebooted in emergency. Why you would like to protect your data? If you have no idea, you don't need to even bother, just relax! I'd guess some business users, activists or tech freaks obsessed with imaginary or real security & privacy may be on the other side. Any way, my point is with this TWRP we can enjoy all the features of original unrooted LG device now. And the ability to protect the user data by the same disk encryption tech, with the recovery that is able to work with it, is the major factor that allows us to keep all the original functionality, have root and thus get much more; all that without compromizing security.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
Most variants can rollback to firnware exploitable by dirtysanta, just not the h918 or ls997. Though this may change with each uopdate. To check under stock/stock rom dial *#lgmenu#*(numbers from your model eg 918, 995, 997)# then under svc menu and version info if antirollback is 0 it can be rolled back, as an alternative theres a property that can be checked by getprop in an adb shell/terminal but I cant remember exactly which (getprop by itself prints all of them)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shouk_1987:
I have h990ds , i typed ×#990#* and it didnot recognize
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Type2501:
Sorry if I had asked a basic question, but I came across the problem when flashing it over my twrp 3.1.1. in fastboot mode.

google a little bit on it, seems like it is related to root or oem unlock, but I have working root with magisk.

sending 'recovery' (29100 KB)...

OKAY [ 0.637s]

writing 'recovery'...

FAILED (remote: unknown command)

finished. total time: 0.657s

is there any way I can flash it?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
your variant cant use fastboot to flash things. Install it in twrp itself using install ->flash image -> (browse to where saved on phone and tap it) -> recovery -> Swipe to flash. Or install and use an app like flashify on a rooted rom.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
The h990 may have it disabled then. If you try to roll back in lg up itl check and make sure its fine first. as well its listed if you open an adb shell or terminal and run getprop itl spew out a lot of things, but its in the middle of it somewhere.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Type2501:
Hugh thanks to you. Since I flash the 3.1.1 with fastboot in the first place, I though there is some things else wrong with my phone. Maybe there is an update that blocked fastboot commands.

The T-Mobile v20 is really a hard phone to work on with all those ARB ****. But thanks to you, I now can flash Oreo for the first time.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
The tmobile variant never had fastboot flash (only fastboot oem unlock), just the dirtysanta bootloader that you likely used did.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hotcell:
You have it. See pics below.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shouk_1987:
I got it

I didnot get to translate lgmenu to digits

Yes found it antirollback is 0

I am on 10h AME
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] donniegalaxy2:
Hello all. I'm on an LS997, my android version is LS997ZVD. I'm pretty sure I'm on an unflashable version? Can I roll back to a flashable version? If so, how?

Also, is this twrp flashable through Odin and downlaod mode?

Thank you kindly!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Phoenix591:
you cant root nor rollback to a rootable version. Odin is only for samsung. Download mode can only flash stock firmware (see lg up). There is work being done to root newer sprint updates and they might be close, in the meantime stop taking updates until you're sure theyre on the same antirollback version. The work for a new root is focused on arb 1, to check the arb of your current firmware dial (translate lgmenu to digits) *#LGMENU#*997# svc menu-version info
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SJMarty:
I have v3.2.1-2 installed on my H918. My auto-generated backup name is showing "1972" for the year...

"1972-05-02...blah...blah"

Anyone else experiencing this?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] scottyrick:
Date is never right with this build.
[Touch Cruise General] styblop:
Hi,

how can I setup the unit so that after resuming form suspend (using power button) it shows the last active application instead of always going back to Home screen? I find this very annoying e.g. in navigation when I suspend the device to save battery but I then I have to use the tiny&clumsy task manager in the top right corner to return to my app. Any hints? Thanks
[Xiaomi Redmi 2 Questions & Answers] HIDDENSLAYER:
hello guys I have redmi 2 with 2gb and I am not able to root my device.

i have used many root apps but nothing. for now I am using wodroid 3.1 but its not able to find my device

please help me
[Honor 6X Guides, News, & Discussion] Siddk:
1.Download this update.zip

http://update.hicloud.com:8180/TDS/data/files/p3/s15/G1190/g79/v107036/f1/full/update.zip

2.extract update.app from the zip

3.place it in dload folder

4.power off device

5.hold volume up + volume down + power button simultaneously

6.It will restart automatically after update

7.download this Update.app from the linkhttps://drive.google.com/open?id=1Ry8iHF73Xt_Uj86oUk-Fgwd17qWs6JGF

8. Repeat procedure from 2 to 5

Changelog:

● VOLTE implemented for Vodafone.

● December Security Patch

● Recycle Bin In Gallery App
[Honor 6X Guides, News, & Discussion] Shehzadaxhaikh:
Honor 6x.

It is stable update of honor 6x and it comes in which month in my device.... And I m living in Ahmedabad when it will come by OTA BY UPDATER APP..
[Honor 6X Guides, News, & Discussion] shashank1320:
You can manually download and update via dload else wait for OTA.

OTA has nothing to do with your location. It will come for all devices
[Huawei Mate 10  Guides, News, & Discussion] tboy2000:
https://www.androidauthority.com/best-of-android-2017-results-823772/
[Huawei Mate 10  Guides, News, & Discussion] chronicfathead:
Sweet. Should help build the community. My first Huawei, and I'm only annoyed by a couple of bugs and the fact I will need to pay Funky Huawei to keep upto date and fix the bugs sooner.
[Huawei Mate 10  Guides, News, & Discussion] Mohamad Gahed:
And the NPU is not yet put to test ?
[Huawei Mate 10  Guides, News, & Discussion] sonydesouza:
Great for community yes!!
[Huawei Mate 10  Guides, News, & Discussion] juscallmemickey:
Great news and hopefully it attracts more people to the community!
[Huawei Mate 10  Guides, News, & Discussion] royhanks3:
This is amazing news, I really hope this boosts the attention of our community to potential owners so we can enjoy the benefits of TWRP, and most especially custom roms.
[Huawei Mate 10  Guides, News, & Discussion] Archspire:
I bought the mate 10pro 3 days ago, coming from an s8 plus, and loving the battery life. My mate 10 pro charged 8am 100%.now, 15.05 at 85%. On my ex s8 "plus I would be close to recharging it.

Loving it!!
[Huawei Mate 10  Guides, News, & Discussion] t-shock:
I totally agree with you.

FunkyHuawei could at least, have no charge for just changing the rom. They could ask money only for the unbricking and debranding......
[General Questions and Answers] Joe333x:
If anyone has PS Vue they know that the mobile android app is pretty restrictive even on your home network. However if we could get the apk from FireTV or Fire stick to run on any device it would be pretty sweet. I have the apk installed on my rooted xposed galaxy s5 on 5.1.1 but it says this application is not available for your device. I have been trying to play with xprivacy to get it to run but havent had any luck. If anyone cares to help i have attached the apk that I have, im sure there is a more updated one though. Thoughts, ideas?
[General Questions and Answers] RSG0123:
I was able to get com.snei.vue.atv_4-10-0.apk from apkmirror running on my X96 tv box

I was able to get com.snei.vue.atv_4-10-0.apk from apkmirror running on my X96 tv box 7.1.2, but seems to be a screen size/resolution issue. No errors, but the output, mainly the menuing and text are much larger than the screen. I could see enough to manage to log in successfully though. If anyone is familiar with how the app determines screen size/resolution we could be getting somewhere. Used rootcloak to get past rooted warning.
[General Questions and Answers] Joe333x:
Wow thanks you're awesome! That version also works on my phone but with the same problems you described. The main issue is it isnt being forced to run in landscape. In landscape mode you can see everything perfect but Im guessing since you are using a TV box theres no way to change the orientation. I needed to plug a usb keyboard into my phone to log in and download a game pad to navigate but it does work. Only problem is that it does not run in fullscreen so the status bar is still shown. I tried using App Settings xposed module to force orientation and full screen but some how the ps vue app blocks or ignores the changes. Does anyone know of any way besides app settings to force an app to run landscape and full screen?

EDIT: Figured out the answer to one question. How to force an app into full screen mode. I got the idea from this article https://www.howtogeek.com/302194/ho...to-fullscreen-immersive-mode-without-rooting/ but you can easily do it by using terminal emulator and entering "su" and then "settings put global policy_control immersive.full=com.snei.vue.atv "
[General Questions and Answers] RSG0123:
I haven't tried this, but jumping off your fix for full screen, something like this may work for the screen orientation..

abs shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
[General Questions and Answers] Joe333x:
You can 100% find a command to enter into adb or terminal to force everything to run landscape for your TV box. So far I have not found a command to force just a single app to run landscape its not a big deal since it goes into landscape with the accelerometer.
[Essential Phone Questions & Answers] Zargone:
I have a REAL challenge answering my phone. It does not like my swipes and likes my IGNORE swipe even more!

What is the trick?