yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
LGUP shouldn't be needed. I felt it necessary to mention since it is the magic rescue tool if things don't work right. Right now we're at an early enough stage that the risk level is high.

I should exist on PayPal now. I'd been holding off since they don't exactly have the most wonderful reputation...

I would not expect either of that to matter, but this device is on NRD90M.

I haven't been able to, I'm pretty sure the H990DS model is pretty rare around here. People who have LGE V20s having the other US models (and not knowing that dual-SIM phones exist).

Should mention the procedure is while in TWRP, install the kernel .zip file and the SuperSU .zip file. The order these are done shouldn't matter.

Note that SuperSU's installation often means erasing the userdata, so have a backup of your data handy! LG Backup has a good reputation for saving the lion's share of data. Beware, if you backup to SD card, please then copy that data to another location; Android's SD card encryption saves the key on the phone, so erasing userdata loses that key...

Until there are reports of success this is risky. I'll have to thank XDA Developers for allowing 20MB .zip files, when kernels tend to be smaller than that.

---------- Post added at 05:34 PM ---------- Previous post was at 05:19 PM ----------

I keep pointing to this post since it mentions the difference I'm worried about. The kernels I'm building compensate for the DirtySanta bootloader by adjusting the data they're passed by the firmware. Mention what the output of those two commands and I can make the adjustment I believe is needed. I've actually got a candidate build, but I want to ensure it matches before I release it.
[LG V20 Guides, News, & Discussion] Fidelator:
Guys, I'll need you to be straight with me real quick

I'm literally on the Edge of buying a V20 H990DS HOWEVER, ROM development and up to date software is very important to me, I don't really mind losing some of LG's features by eventually moving to stock

Now: With the current developments will the H990DS, EVENTUALLY, doesn't have to be soon, get Lineage AND support for other LG or stock based ROMs? I don't want a phone stuck on Nougat, my other options are the HTC 10 or the OP3, this is the better phone and that's why I want it.

I'm in a rush because I'm going to import either and the person bringing them will come back soon so I can't delay the purchase any more, I figured there was no one better to ask than the people in this thread.

Thanks you very much in advance
[LG V20 Guides, News, & Discussion] RdT21:
Hope it is ok if I wait for a working LGv20 H990DS before paying. I am afraid to try this now since I am not good with rooting. This will only be my 2nd phone to root.
[LG V20 Guides, News, & Discussion] exadeci:
[MENTION=6984210]emdroidle[/MENTION] I've done up to Step3 and my device is stuck on boot, I read that it was normal to take some more time but it seems stuck with logcat I get:

Nevermind:
[LG V20 Guides, News, & Discussion] emdroidle:
Some of the other devices were slow for some of the steps, but that isn't the case for the H990DS. Step 3 isn't supposed to be at a point where you can get a logcat.

Did you complete step 3? Before step 3? What happens with a normal boot?

If you've completed step 3, then you need to get into TWRP. From where you're at, press and hold down; then press and hold power, once you get to the "LG" on screen briefly release power, but then press and hold again. After a few moments it will display a message on screen about erasing all data, including LG and carrier apps. Press down to select "yes" and then power to accept that selection; you'll do this two times and then be in TWRP.

If you're before step 3 then power off fully. Then press and hold down, and while continuing to hold down plug in the USB cable.

Normal boot will tell us how far along you are. "Static" screen indicates you're near step 3 (DirtySanta aboot is in place).

---------- Post added at 06:24 PM ---------- Previous post was at 06:16 PM ----------

What is worse is the LGE V20 is a rather complicated root procedure. There are 3 involved steps that can't be skipped.

LineageOS has an active development tree for the V20. They don't yet have support for the H990DS, but the kernels I'm building are based on their source tree (they're coming from the CAF/Code Aurora Foundation/Qualcomm source, which has better driver quality than LG). Merely have to get my patches merged in and LineageOS will be available for the H990DS.
[LG V20 Guides, News, & Discussion] Fidelator:
Thank you very much, I've made up my mind for getting this one
[LG V20 Guides, News, & Discussion] exadeci:
[MENTION=6984210]emdroidle[/MENTION] Yeah I just did an `adb reboot recovery` and carried on but after step 4 (+ kernel ) it doesn't boot, here's an extract of the logcat: https://pastebin.com/raw/w2b7pY1a

For others doing the root, follow the Verizon one without step 5 of course and when it says flash supersu, flash h990ds-kernel.zip too.
[LG V20 Guides, News, & Discussion] emdroidle:
Could you grab `dmesg`? `adb shell dmesg > dmesg.txt`
[LG V20 Guides, News, & Discussion] exadeci:
So I flashed boot1.img again and now it went further and the kernel crashed, I'm on osx is there something else than QPST configuration that I could use?

I'll do step 4 again as I'm guessing your kernel changes the boot and I'll send you dmesg
[LG V20 Guides, News, & Discussion] emdroidle:
Okay, this is why I was warning about the directions.

Boot back to TWRP and then upload bootbackup.img, h990ds-kernel.zip and SuperSU.zip. Then do `adb shell dd if=bootbackup.img of=/dev/block/bootdevice/by-name/boot`.

Then install the h990ds-kernel.zip and SuperSU.zip, and ignore boot1.img and boot2.img.

Knew my first pass at directions might miss points. Thank you very much [MENTION=2764901]exadeci[/MENTION] for trying this and finding my failures. :good:
[LG V20 Guides, News, & Discussion] thubble:
When you say to ignore boot1.img, does this mean edit the step3 script to not flash it? (i.e. step3 should only flash the recovery partition with TWRP)?
[LG V20 Guides, News, & Discussion] emdroidle:
Hrmm, yes, that is so. Grr, forgot the original DirtySanta had that as step 3.
[LG V20 Guides, News, & Discussion] exadeci:
Awesome!! It booted, data works, I had to flash supersu again but now it works !! Pm your paypal !!

[MENTION=3102329]roosta[/MENTION] It's working
[LG V20 Guides, News, & Discussion] exadeci:
[MENTION=6984210]emdroidle[/MENTION] Maybe you could create a thread for your root/kernel now :D

I didn't test with a Quick Charge 3 yet but with my QC2 charger it doesn't seems to do any quick charge, I remember it being a settings in the kernel that specifies the max amp the phone can get.
[LG V20 Guides, News, & Discussion] thubble:
Well, I think I might have screwed something up. :(

I got past step 3, and TWRP appeared to flash successfully:

C:\temp1\v20-root\new>adb reboot bootloader

C:\temp1\v20-root\new>fastboot flash recovery twrp-3.0.2-1-h990.img
target reported max download size of 536870912 bytes
sending 'recovery' (26416 KB)...
OKAY [ 0.649s]
writing 'recovery'...
OKAY [ 0.301s]
finished. total time: 0.953s

C:\temp1\v20-root\new>fastboot reboot
rebooting...

finished. total time: 0.121s

C:\temp1\v20-root\new>adb reboot recovery

This appeared to work, but just rebooted to (I assume) the system, and plays the LG bootup sound. I get the static screen, and even covering the sensor doesn't fix that. I tried the volume up + power trick, and selected "Yes" twice on the clear data screens, but it just goes to static for a second and then reboots to system.

Any suggestions?
[LG V20 Guides, News, & Discussion] emdroidle:
Okay, everything is going fine, you just need to get into TWRP. Press and hold volume down; then press and hold power, once it gets to the screen displaying the LG logo briefly (0.5-1.0 second) release power and then press and hold power.

You will end up at a screen saying "Factory data reset" and the message "Delete all user data (including LG and carrier apps) and reset all settings?". Select "Yes" twice and instead of doing a factory reset, you'll end up in TWRP (backups are still good though). Then simply flash the SuperSU .zip and the kernel .zip, at which point the procedure is done and reboot to a rooted system.

I'll be off XDA for ~8-12 hours soon so get back fast if there is a problem.

I'm unsure whether it is an actual issue, but I've had a funny suspicion there could be a need to flash the original abootbackup.img before using LGUP to go back to stock. I don't actually know since the small number of times I did that I'd always flashed aboot back before.
[LG V20 Guides, News, & Discussion] thubble:
I did that - it just reboots back into system immediately after I do the factory reset. I managed to get back into fastboot and flashed TWRP again, same thing.
[LG V20 Guides, News, & Discussion] theleftykid:
This is really good news.. Hooray!!!
[LG V20 Guides, News, & Discussion] emdroidle:
Hmm, guess this is why the original DirtySanta step 3 flashes recovery four times. Often the fastboot command doesn't finish writing. Perhaps merely waiting for 5-10 seconds before the `fastboot reboot` would fix things, but it could be the LG debug bootloader is unreliable at writing the flash. I'd issue the `fastboot flash recovery twrp-3.0.2-1-h990.img` twice before `fastboot reboot` to ensure it really does write all of the recovery partition.
[LG V20 Guides, News, & Discussion] thubble:
Yep, that was it!! I flashed recovery twice, waited about 15 seconds, then rebooted. Worked perfectly! I haven't played around with root or anything yet, but data is working, and haven't noticed any problems so far.

Awesome work!
[LG V20 Guides, News, & Discussion] theleftykid:
Can we start a new thread please with the title and complete steps on rooting H990DS soon? Thank you!!! [MENTION=6984210]emdroidle[/MENTION]
[LG V20 Guides, News, & Discussion] Inpain:
[MENTION=6984210]emdroidle[/MENTION]

I'm not on the bounty list, but once this becomes 100% easy/safe to do, i have 500 USD ready for you.
[LG V20 Guides, News, & Discussion] rubiicon59:
You seem confident. That's good news for me :good:

Man I miss root
[LG V20 Guides, News, & Discussion] theleftykid:
I get the message error "Kernel Crash!" Now I can't get back to TWRP as well. It won't boot to system either. :(
[LG V20 Guides, News, & Discussion] all2i:
wow , thank u for supporting the devs. كفو عليك
[LG V20 Guides, News, & Discussion] theleftykid:
Yaaassssss!!!! Forget all the troubles I posted before... I just read thru everything in the thread to solve all the problem. Now my phone is successfully rooted and working fine. Phone call works, wifi works, mobile data works, camera works, FM RADIO works.. No problem at the moment. Thanks all once again..
[LG V20 Guides, News, & Discussion] roosta:
Congrats [MENTION=6984210]emdroidle[/MENTION] t sounds like you finally got there! Awesome news for the community and v20 owners...

Link me to the other thread you've posted. There needs to be a handful of people who follow the guide, flash and have all phone features functioning. We got there right?

Everyone else - unless your continuing to pledge HERE, there's no need to respond to this. I need to tally up everything and contact emdroidle to help facilitate the bounty. I'll do my best to sort out by the weekend.

RoOSTA
[LG V20 Guides, News, & Discussion] KOLIOSIS:
IDK if you caught my pledge post:

https://xdaforums.com/showpost.php?p=72579150&postcount=456

If you wish to do so,go ahead & roll it in w/the existing list in Post #2 of this thread:

https://xdaforums.com/showpost.php?p=72263967&postcount=2

Otherwise,do those of us who are relatively new to the thread just donate directly to [MENTION=6984210]emdroidle[/MENTION] ?
[LG V20 Guides, News, & Discussion] theleftykid:
It just needs a new thread for the complete guide and revision of dirtysanta to work on H990DS. I ain't a delveloper but just an ordinary user who wants root and it takes me like 4 hours to figure out what I have done wrong and what I did to have a working rooted phone finally.

I just got my phone yesterday and rooted at the same day. Yay! Need a tester? Count me in... Jk

P.S - First time to use LG phone. Which apps are safe to remove? I have uninstalled some preloaded apps like Evernote, Instagram etc...
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Congratulations [MENTION=6984210]emdroidle[/MENTION] for making this happen for the h990ds v20 model .

Just one thing left now.

A proper thread for root and unlock procedure.

Whose laughing now LG, oh its emdroidle.

Anyways congratulations.
[LG V20 Guides, News, & Discussion] hykhleif:
does the new root work on the single sim version?
[LG V20 Guides, News, & Discussion] armsar1978:
Detailed instructions please!!!!
[LG V20 Guides, News, & Discussion] Hamodi:
still need some modify , will do some test with emdroidle tho
[LG V20 Guides, News, & Discussion] hykhleif:
do u have the single sim version
[LG V20 Guides, News, & Discussion] Hamodi:
Yes
[LG V20 Guides, News, & Discussion] emdroidle:
Sorry to be the prototypical technical geek here, but you're kind of scaring me here. :( Not literally, but often technical writing can be a pain for engineers.

I've been editing my poor first pass at instructions. I'd love revision suggestions from the people who have successfully applied.

Most likely going to be creating two threads. First thread will be instructions for installing this kernel and rooting. Second thread will be the technical details for building H990DS kernels.

No one has asked yet, but it is covered by GPLv2. My H990DS kernel source. Most kernel builders will also want an ExFAT implementation. There are mentions of "vanilla" since this kernel tries to be as similar to LGE's kernel while working within the DirtySanta bootloader.
[LG V20 Guides, News, & Discussion] adriansiv:
Happy to contribute

I stand by my original pledge but would like to have full instructions. I have LG V20 Indian version with dual sim.

Also should the money be directly sent to [MENTION=6984210]emdroidle[/MENTION]? PayPal?
[LG V20 Guides, News, & Discussion] Syystole:
Can anyone confirm for me whether it is rooted or not please?
[LG V20 Guides, News, & Discussion] farwish:
OMG!Thanks so much! IT will be the best news this year,,,and will it work on H990N(dual-sim card)?
[LG V20 Guides, News, & Discussion] rubiicon59:
Why is this thread so quiet?

Root is now working with a fully functioning phone, yes?
[LG V20 Guides, News, & Discussion] trongnghia2411:
Guys, what apps/tweaks are good after root for nougat? I used to root phones too but in 6.x and below, I can install Greenify with Xposed. I guess it is not working fully in nougat. So any suggestions?
[LG V20 Guides, News, & Discussion] farwish:
Titanium Backup, App2SD, PIE, Ice box
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Simplicity

I think we dont have more confirmations because the steps are rather confusing for the majority including me.
[LG V20 Guides, News, & Discussion] Xenogenics:
I understood the instructions and got stuck at dirtysanta's step of typing "run-as con" into the console.

It gave me the error of unknown package and the reason for it giving that error is apparently I'm on the latest security patch, so no root for me unless there is a way to downgrade security patches.

I'm not going to try any further because I value the data I have on my phone, but if flashing a previous stock .kdz file using LGUP DOES NOT erase data and yet roll back security patches, then I will be willing to move forward.

Edit: If anyone wants simplified steps, here it is.

Step 1: Ensure you have a backup plan: https://xdaforums.com/v20/how-to/restore-v20-to-100-stock-bricked-devices-t3524903

Step 2: Ensure you have ADB/Fastboot files installed and working: https://xdaforums.com/showthread.php?t=2588979

Step 3: Ensure you have all relevant files prepared:

Installed backup plan.

Installed Terminal Emulator on device.

Downloaded dirtysanta's files and copied them to ADB directory.

Downloaded emdroidle's files, Put emdroidle's TWRP and SuperSU zip into SD card, and emdroidle's step3_h990.bat into ADB directory.

Step 4: Using dirtysanta's steps: Run "RUNMEFIRST.bat" <-- Do not close.

Step 5: Run "step1.bat" <-- Wait until you can type something again.

Step 6: Type "run-as con" <-- If you get unknown package error, means your latest security patch patched it out, boohoo no root.

Step 7: Type "chmod 0777 /storage/emulated/0/*"

Step 8: Open Terminal Emulator, Type "id"

Step 9: Look for something containing "untrusted_app". If not found, Start all over again. If found, continue.

Step 10: Type "applypatch /system/bin/atd /storage/emulated/0/dirtysanta" into Terminal Emulator

Step 11: Wait for RUNMEFIRST.bat console to prompt you to run step2.bat.

Step 12: Run "step2.bat"

Step 13: Run emdroidle's "step3_h990.bat"

After step 13, boot in to TWRP.

Press and hold volume DOWN; press and hold power until the LG logo comes up, then briefly release power (0.5-1.0sec) and then hold power again.

You will then be prompted "Delete all user data (including LG and carrier apps) and reset all settings?"

Select "Yes" twice, and as long as TWRP installation was successful you'll get into TWRP and NO RESET will be done.

Inside TWRP flash emdroidle's "h990ds-kernel.zip" and then flash SuperSU.zip. At this point the process should be complete. There won't be static on boot, you'll have root and nothing else should have changed.

Edit2: I do not know if this works as I got stuck at typing "run-as con" because I am on the latest security patch.
[LG V20 Guides, News, & Discussion] rubiicon59:
Odd how quiet the thread is now root is apparently working.

And yeah its quite complicated following the instructions in both threads.

An updated all-in-one guide (combined from both threads) would make a big difference.
[LG V20 Guides, News, & Discussion] UL7RA:
[MENTION=4741759]Xenogenics[/MENTION] what is the latest security patch?
[LG V20 Guides, News, & Discussion] Xenogenics:
I'm on 1 March 2017
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
This is bad news for me as I'm also on March 2017

But I will try till "run as con" to see if I get the same error cause I think up to that stage no changes have been done to the phone

Plz someone confirm my theory
[LG V20 Guides, News, & Discussion] KOLIOSIS:
Which security patch did you get this to work on?
[LG V20 Guides, News, & Discussion] LucaZPF:
uff...1 May 2017 security patch for me
[LG V20 Guides, News, & Discussion] Xenogenics:
Up to that stage, only some files are pushed to your phone, it doesn't do anything with them yet.
[LG V20 Guides, News, & Discussion] Prowler_gr:
I get the same error on 1-Nov-2016 (TWN-1725 firmware)
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
run-as: Package 'con' is unknown

254|elsa:/ $

this is what i get

****
[LG V20 Guides, News, & Discussion] Prowler_gr:
My antivirus was deleting the "dirtycow" binary from the required files...

As soon as I disabled it I was able to run the exploit
[LG V20 Guides, News, & Discussion] Xenogenics:
Congratz, do let us know if you succeeded.
[LG V20 Guides, News, & Discussion] Prowler_gr:
Any help appreciated. Got myself a soft brick.

I was able to get to the screen saying "Factory data reset" and message "Delete all user data (including LG and carrier apps) - BUT -

I get static when I get toTWRP (no picture), the same when booting normally.

I'm still able to get into fastboot.

LGUP recognises my phone as US996 so unable to revert to stock...
[LG V20 Guides, News, & Discussion] me2151:
Do the static fix by turning screen off and back on...
[LG V20 Guides, News, & Discussion] Prowler_gr:
I can't. It crashes & gets to a subsystem crash: screen (during SSR)

Any ideas of how to revert to stock?
[LG V20 Guides, News, & Discussion] KOLIOSIS:
Are you saying you achieved root w/this exploit while on the May 2017 security patch?
[LG V20 Guides, News, & Discussion] emdroidle:
Okay, this is the other reason for wanting familiarity with LGUP. On the LGUP thread you'll notice they've got a link to KDZ files for most of the V20s. They've got December KDZ files for nearly every V20 and LGUP will install older firmware which is vulnerable to DirtyCOW.

Next issue here is to write a piece of software to selectively install portions of KDZ files. Install the updated /system to get security updates, but leave boot and aboot alone. This is on my to do list.

I'd had suspicions of such an issue, but knew of how to work around. Boot into bootloader mode; this can be done by running `adb reboot bootloader`; or starting from a phone which is OFF, press and hold DOWN, then plug in the USB cable. Then run.

fastboot flash aboot abootbackup.img
# wait 15 seconds or so
fastboot reboot

This is simply putting the old aboot back into place. The one time I did a stock reversion I did that first since I was wondering whether the mismatched aboot would confuse LGUP.

Static on screen in TWRP is odd, that never happened to me. This sounds like step 3 didn't succeed for you.

On key piece of advice: Don't panic!

The H990 devices seem to have a third variant of the display chip. It is different enough that screen off doesn't get it back to a usable state. This is one of the reasons I went for the kernel rebuild.
[LG V20 Guides, News, & Discussion] Xenogenics:
I assume flashing old .kdz files will wipe my data. I'm currently too lazy to do the oldschool backup of my contacts, files etc. I wish there was Nandroid backup for non-rooted phones so I know my data is safe and recoverable.
[LG V20 Guides, News, & Discussion] thubble:
I got the same issue. What's probably happening is that TWRP didn't actually flash successfully, so after you do the "factory data reset" it actually does the reset and then boots to system. The problem is that "fastboot flash" is unreliable with the dirtysanta bootloader, and sometimes doesn't actually flash even though it appears to succeed.

Go back to fastboot again, run the Step3 script (make sure it's the one emdroidle posted and not the regular dirtysanta one). If that still doesn't work, try editing the Step3 script to remove the "fastboot reboot" at the end; then run the script, wait about 15 seconds, then do "fastboot reboot" manually.
[LG V20 Guides, News, & Discussion] UL7RA:
Same as guys from before, I get static when going into TWRP. Fortunately I managed to save it by doing that fastboot trick.
[LG V20 Guides, News, & Discussion] MajorChioHazard187:
This is great news,congrats [MENTION=3009077]emDroid[/MENTION]le with your success.Now theres hope for those of us using the Single sim H990
[LG V20 Guides, News, & Discussion] UL7RA:
Well, the behaviour is not best described as 'when it goes into TWRP it goes static', but more like the 'anything I do goes static'. And that thing with 'pressing twice on Yes' actually gets into deleting the stuff and nothing that looks like TWRP. Tell me what I can do to help.

EDIT: I'm running 'V10c-SEA-XX'. Before starting the rooting process, I used. LGUP to install the oldest available SEA firmware. Appears to be on the 1st of December 2016 Security patch. I did this cause I was on the 1st of March patch and saw I needed some older one.
[LG V20 Guides, News, & Discussion] all2i:
this is well explained method for noobies .

just notice the step 14 I had to do it twice to flash recovery.

great job [MENTION=6984210]emdroidle[/MENTION]
[LG V20 Guides, News, & Discussion] farwish:
anyone konw does this rom work on h990n(dual-sim), i m gonna flash it now, thanks
[LG V20 Guides, News, & Discussion] darkstorm99:
Looks like I am out for now, I get the unknown package error too when trying run-as con. Software version: V10E-Aus-XX, Build NRD90M, Security patch 1 April.

For those that have already rooted, I have made a few backups already, but does using the "upgrade" function of LG UP to go down to an earlier firmware cause a factory reset to occur?

If I were to downgrade to an earlier firmware, then flash V10E again using the upgrade function, would I lose root?