yashsingh1/xdaforums huggingface dataset:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] SkyPhone:
I've happily decrypted my data and upgraded from beta4 to rc8. Thanks jcadduono.

In case anyone is interested, read on. I had hoped to back up /data while encrypted and the /encrypt partition. I wanted to do it partly because I like extra backups, but mostly because I like to learn to do new and different things.

The first problem was in connecting adb. I just can't seem to get it to talk to TWRP. No problem, however, I used the TWRP terminal. I didn't need to push or shell from the instructions above, as I wasn't using adb. I used cp instead.

The transfer of zstd for compression went fine, as did the backup of /encrypt. However, the /data partition I had planned to backup doesn't exist in /dev/block/bootdevice/by-name/

Doing a cd /dev/block/bootdevice/by-name/

followed by ls shows that /encrypt exists there, but not /data. As a result, I couldn't dd the /data partition. It wasn't critical, I just went ahead and updated to rc8, wiped/formatted data and reinstalled SuperSU, but I am interested in how one could dd /data

Would this have worked?

# to backup
dd bs=16384 if=/dev/block/bootdevice/by-name/encrypt of=/usb-otg/encrypt.bin
dd bs=272144 if=/data | zstd -19 -o /usb-otg/data.ext4.enc.zst
# to restore
zstd -dc /usb-otg/data.ext4.enc.zst | dd bs=272144 of=/data
dd bs=16384 if=/usb-otg/encrypt.bin of=/dev/block/bootdevice/by-name/encrypt
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
I seem to have forgotten that data as a partition is called userdata, not data. Be aware that zstd -19 on 56 GB of data could possibly take over 30 minutes, maybe up to 2 hours. Make sure your external storage isn't FAT32, because that has a 4 GB size limit to files.

# to backup
dd bs=16384 if=/dev/block/bootdevice/by-name/encrypt of=/usb-otg/encrypt.bin
dd bs=272144 if=/dev/block/bootdevice/by-name/userdata | zstd -19 -o /usb-otg/userdata.ext4.enc.zst
# to restore
zstd -dc /usb-otg/userdata.ext4.enc.zst | dd bs=272144 of=/dev/block/bootdevice/by-name/userdata
dd bs=16384 if=/usb-otg/encrypt.bin of=/dev/block/bootdevice/by-name/encrypt
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Ippolito1971:
[MENTION=5672995]jcadduono[/MENTION] I recently read that the dirty cow exploit will be patched in December security update. How will this impact things here? Obviously we shouldn't take security updates but what about those that will buy the device later? Also, forgive me if it's been addressed but does Android Pay work after this exploit?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DarkestSpawn:
Just out of curiosity, has anyone been able to get the T-Mobile Device unlock app to work? Mine just stays on Connecting to Server with nothing. Never connects and closes when the screen times out. Already set it to 10 mins with no luck
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
I don't believe android pay will work unless you're on pure stock. I do not own this device so could not be certain.

I'm hoping that by December people will have reverse engineered the TOT flash process again. Otherwise SOL, unless a stock flashing method comes out allowing you to flash the V10d boot image, bringing the exploit back into play.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] slayerh4x:
Android pay does not work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bxlegend:
If you're rooted it won't work. Gotta try with only the modified boot img and stock system img to see if Android Pay will work.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] slayerh4x:
Yeah I knew it wouldn't work, just showin the guy above a screenshot.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Are Roms out of the question? Anyone know why we haven't seen any yet?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hslayer:
i would love to see stock pixel rom, someone please make this happen! :good:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
I want to get Kali NetHunter out soon but haven't had anyone volunteer for testing. (all people do is reply saying they will test, but never show up in the #nethunter channel in my signature...ugh)

There's probably not a whole lot of developer interest in LG phones though, LG is far from developer friendly.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Is CM, completely out of the question? Because of the second screen?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
the second screen is only a minor obstacle, the V20 really has just 1 screen, with a piece cut out of the corner, it's not 2 screens. it's 2 backlights.

like twrp, you can just define an offset. you can even do it from dtsi, i added a 160px top border to V20 dtsi and reduced the resolution by 160px by changing just 4 lines i think, and it worked fine.

in any case, i'm not doing anything more than nethunter and twrp for this device, you'd have to ask someone else that actually has interest and owns the device themselves.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
One would think somebody who is knowledgeable enough to compile CM, would jump right on this. I'm sure there will be lots of donations thrown their way.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jaysonic88:
Last question on this. I've done restores with TWRP on my V20 but only "dirty flashes" over the existing data. Is it safe to wipe partitions and do a clean restore?

EDIT: I think i answered my own question by reading some of your previous replies on the preceeding page. I'm reading it as long as we've addressed the encryption issue (by formatting and starting from fresh out of box) we should be able to wipe and restore.

Thanks again for your hard work [MENTION=5672995]jcadduono[/MENTION]
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] icestreaker:
It would be awful kind if someone would focus on the AT&T model root for this also. Or even better, can someone come up with a Universal version of the ROM?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jinkerz9430:
I'm not an expert on development. (at least not yet). On the other hand, i do expect for them to crack up each model (although mine is the rootable model h918), because the more variants rooted, the more developments will be created.

But, unless the carriers decide to release an update that allows the bootloader to be unlocked, or developers find a way to root the device without triggering the new security measure implemented by the new anndroid OS 7.0, (just like the systemless root does) , i dont think there are any other methods, at least not for a while. :eek:
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] FlawlesStyle:
Considering the small list of devices supported for CM14.1, and two of them being LG, I'm pretty sure we'll have it sooner rather than later. Coming from a Note 7, I'm 100% sure we'll have it before them! :P
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Has anyone even stated they are working on something for us?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] planetbeen:
Do they usually start working on a rom when there's no way to go back to stock in case of issues? Seems like most people would be wary of testing under those circumstances.

I am under the impression that there's no way to come back until there's a kdz or working tot.

Of course I'm certainly no expert. I just like reading.

(I stayed in a holiday Inn express last night hahaha)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jthrasher47:
I look for you in the t wrp a couple times.. if you PM me what time you will be in the other channel I can test for you I've got knowledge I felt a few rounds myself specifically for Samsung Note series but I believe we can get it done
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] hykhleif:
I have the LG V20 H990 version, I see in the developer options oem unlock so can I not root this phone, as I assume with this I can unlock the bootloader
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jthrasher47:
It's worth a try it will not hurt it if it doesn't work make sure you enable USB debugging
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bxlegend:
The option under developer options is only there to allow you to unlock in bootloader mode using fastboot commands without boot looping after reboot. Even if you check this option, it will not unlock your device which must be done from the bootloader with fastboot commands. The h918 is currently the only model that is able to be unlocked from the bootloader.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jthrasher47:
Well yea. I assumed he knew that part I think he was just inquiring weather he can possibly unlock his bootloader or not
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] epr2175:
Kief i freaking love you man. if you live in LA ill buy you a beer
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bxlegend:
If we all know that only one model has an unlockable bootloader, we shouldn't infer to those with other models to try it out. This will only lead to problems for them.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jthrasher47:
We do not know that the dual-sim model is not unlocked it is an international model and it is usually unlocked we only know that for the national variants here in the US. You're wrong if he attempted it it will not hurt his phone at all it will just fail. As he is aware of. If it fails he knows he cannot do it. I understand what you're saying but again this is an international model and I have p.m. him and told him he should contact someone with that variant for more knowledge as the OP does not want none T-Mobile users here
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Kief_haring:
Used to live above the Ralph's Downtown LA... Back in NY now. Glad it worked for you, I was freaking out when it happened to me.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
There's no way to go back from what u achieved in this thread... We still did that...
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
you can quite easily go back to completely stock and relock your bootloader at any time as long as twrp is working for you. that's what https://build.nethunter.com/misc/h918/h918-v20d-for-OTA.7z is for. mind you, if you take an OTA after that that fixes dirtycow there's no way to go back to working TWRP. that's why i have https://build.nethunter.com/misc/h918/h918-v20d.7z for people who just want to use TWRP with complete stock.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
So, what your saying is Roms are OK to start being cooked/compiled?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DJRobBlaze:
Does your software still say "official" in settings when you go back?

? Sent from DjRobBlaze's VS985 ? Rockin' ? Fulmics 6.6 ? using Tapatalk. ? ®
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] psychoace:
So I'm trying to install the rom over my bootlooped phone but when I go to flash the system image it only gives me the option to flash to boot and recovery. I'm not seeing system. I dd end up messing the permissions on my system folder when trying to change my build.prop could that be the problem? It's what I believe to be causing my bootloop. I accidentally set permissions to read and write on the system folder but not execute.

Do I flash it to boot or recovery? I'm not doing anything until I know for sure.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
are you on rc8 or rc10?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] psychoace:
TWRP?? I'm on 3.0.2.0 beta 12. Otherwise I'm not sure what you're asking
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
that's why you don't see it in flash image, rc > beta, you're like 15 revisions behind or something
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] psychoace:
Presto blammo you the man yo. :) Thanks, I'm back to normal.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] netgar:
I don't get it.

Which version of twrp we should use during initial twrp & root installing ?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albinoman887:
if i'm rooted do i still have to run dirtycow again to update twrp? or simply adb dd the img to recovery
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albinoman887:
once i can get this backup to actually finish downloading without failing i was gonna start looking at CM. i didnt know about the backup til now. Someone could probably start making a modded lg rom now though with android kitchen. i mean hell even a deodexed rom is better then nothing

i found a github with some lg g5 repos for CM it should be a good start for the v20
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Double0EK:
Use TWRP to flash the updated TWRP .
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
[MENTION=5672995]jcadduono[/MENTION] Tester here... For real.

I've gone to your channel, but it instantly bans me. Does it require authentication?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] psychoace:
https://build.nethunter.com/test-builds/twrp/lge/twrp-3.0.2-0-rc8-h918.img
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shagy38:
Same here
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] YrrchSebor:
This worked perfectly on my v10 on our latest 20l update!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Can't F'n WAIT!!!!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Ippolito1971:
I read via XDA the dirty cow exploit still works with November security patch but they would most likely have it fixed in December. No?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Yes.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shagy38:
Hey guys this is my first LG device i am wondering is it normal to see this with the root
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
This is how mine looks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shagy38:
Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
yeah you'll need to join #twrp or #jcadduonoisawesome instead, a user [MENTION=7511870]DeadSquirrel01[/MENTION] on XDA actually has been spamming a bunch of channels relentlessly using the web gateway so we had to ban the web gateway there. I'm only a voice in #nethunter so I can't unban it. Alternatively, you can download a client such as HexChat or mIRC and join #nethunter.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] nmespinosa:
So, I can flash the first one via twrp and it'll be like I just got the phone out of the box?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
What theme is that?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] shagy38:
High contrast
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] DeadSquirrel01:
What do you want from me? I'm just busy with my cm14 port ;)
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] lightninbug:
Go troll somewhere else.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Thanks to [MENTION=5672995]jcadduono[/MENTION] and the system.img he posted, I went ahead and did this. :) . There is a debloated and deodexed system.img that you can flash over your existing /system in my thread.

Thanks for everything [MENTION=5672995]jcadduono[/MENTION]
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] vibrantliker:
Just wondering, with this system.img mentioned, is that for backup or a more desirable version that the stock version we all currently have after root?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
Can someone help me i really dont understand this part is there a video

Type adb start-server and make sure to check the notification on your phone to accept debugging authorization.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] digitalart:
when you have ADB installed and when you connect phone to the computer, there will be pop-up on your phone about connection from etc whre you have to accept and select to always connect/trust this device so look for popup on your phone after connecting
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] BlackHippy25:
Thanks bro
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jjr3211:
Is there a way to go back to stock. Like the phone was never rooted?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] liquidraven:
Work on verizon model?

~Sent from the cloud~
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] crazyc78:
If your bootloader is unlocked then yes it will, but your on Verizon so that would most likely be a no go. So far the only carrier V20 to get an unlocked bootloader is T-Mo.

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

As far as I know I don't think so. This is still in the early stages of development so give it some time. I think there is a thread somewhere about flashing stock files. The process is different than say a Samsung device which I came from.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] yossijoe:
Search maybe?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] bxlegend:
Yes just search the thread for the stock images posted by the OP.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Tilde88:
Both, actually. It converts your current ROM to a deODEXd build, to allow for easier customization of apks and such. Ever so slightly better on performance...

Or if you dont have /system, it will restore it for you (deodexd). This also restores any apps in /system that you may have removed or frozen. It does not wipe /data or any apps that you installed. It also does not change your phone settings or configurations.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Bob Simons:
I'm embarrassed to be so dense but I don't understand the OP and I'm hoping someone can help me. I have a 918, and had no problem with step 1, unlocking the bootloader. I got ADB working and ran the fastboot oem unlock, and re-set up the phone. I don't understand step 2. I can't figure out how much of https://github.com/jcadduono/android_external_dirtycow#running is description and how much is instructions for me to manually enter into an ADB command.

Is there a clearer instruction than the OP for what to do? I did read about 70 pages from the first page and then the last 10 but I still don't understand what to do with the dirtycow and recowvery files, nor where and how to install TWRP. I ask that people not ridicule me but I don't get it, and I've been flashing phones for over 8 years.

If anyone can point me to a post that explains what to do, or could tell me again, I'd be eternally grateful.

Between now and when I get it rooted, how can I prevent automatic updates from blocking this exploit? I haven't found the setting that prevents automatically installing updates. I want to make sure that I don't get anything installed until I get it rooted which will then prevent it.

Thanks
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] KOLIOSIS:
Look in DEVELOPER OPTIONS,it's the 9th item listed,toggle it OFF.

AFAIK,there have been no updates for the TMOUS Model (H918) as of 11/15/16.So,you should be good to go.

As for the rest of the root/TWRP process,I haven't rooted mine yet,not much compelling me to do so vs most of my previous phones.

I will soon,I still miss having AdAway on-board & more granular control of disabling apps/permissions (via SD MAID PRO).
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Bob Simons:
Thanks, I'd found it before but had to do it again after doing step 1 of the root process. I once had an AT&T S4 which was sold with an unlocked bootloader but AT&T sent out an update that locked it. I'd already rooted the phone so it was safe but if I'd ever gotten a replacement it would have been locked forever. So I have mixed feeling about this as it's quite possible that the 7.1 update could break this patch and then we'd be in trouble if we ever had our phones replaced due to hardware problems. Still, I might as well keep this rootable as long as possible. I'm wanting to do it now but I just cant make sense of the instructions, to my great confusion.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Puckettonline:
Do I pick selinux enforcing or permissive? What's best for a LG v20? I will install Roms in the future when they come out.
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albinoman887:
two questions. has anyone been able to download the stock builds without the connection failing before it finishes? can someone upload it somewhere else?

also if i'm already rooted . whats the best way to flash the updated twrp?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] jcadduono:
just use wget -c

if on windows: (grab 32-bit version, 64-bit is broken atm) https://eternallybored.org/misc/wget/

might need to use --no-check-certificate if it cant read your windows cert collection

only use permissive if something you want to install wont work without it, youre much more vulnerable to exploits in permissive, hence why that is our goal for installing twrp
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Bob Simons:
Thank you for that advice, not to mention jcadduono, bezeek and chainfire. It worked perfectly, no bricks, few moments of worry, and no confusion. Now I just have to decide whether to stay with the T-Mo service or pay off the phone in full and port the number back to AT&T and keep the phone. The phone is great but the service is poor. But again thanks to everyone.

Here's to hoping that devs make ROMs for this phone. I'm coming from the V10 which scared off most devs and frustrated the rest into very low expectations.

One question for those who know more than me: I understand that T-Mo is expected to have unlocked bootloaders. What would you call the V20? Am I correct that it was unlocked but was crippled by removing fastboot commands or similar so while it was technically unlocked, it couldn't be modified until jcadduono worked out an exploit? And this means that if we need to get replacement phones which ship with updates like 7.1 or later, we may find the new phones locked down again?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] albinoman887:
I use linux :) thanks. now what about flashing twrp? can i just run the dd commands now that I have root or should i re run the exploit or flash via recovery with dd?
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] wing_addict_usa:
How do we set it to permissive?

---------- Post added at 12:30 AM ---------- Previous post was at 12:21 AM ----------

Where can I find this option
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Puckettonline:
Thanks brother for the help!
[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Perion:
Boot reverting to recovery (TWRP)

So, managed to noob my phone working with this. I was using the automated script originally and forgot to Format Data on the install. After running into boot problems, I found the option and did a Format Data, after that point, the H918 will only boot into TWRP.

I've likely completely hosed things by this point working on it, one issue is that I did wipe the /system folder thinking to do a clean re-flash of the system.img mentioned in the thread here, as well as trying the system_new.img from the debloat thread, but this was after the problem with boot always going to recovery. I've also tried re-flashing the boot.img from the above zip in this thread as well as the stock boot backup image from the script as well as applying no-verity and/or supersu. Only thing I've not done is try to replace the recovery, since right now that's my only way into the phone and ADB.

Any ideas on where to go from here? Am I stuck waiting for a working TOT? Those are the risks of flashing, after all.