yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
This sounds like step3/TWRP installation is being very unreliable. :( I'm wondering whether it is best to advise people to run the command manually (increases complexity). The one other issue is step3_h990ds.bat must be in the same directory as twrp-3.0.2-1-h990.img

According to reports, "LG Backup" is pretty reliable at backing up and restoring data. The one caution is, if you backup to SD card, your SD card cannot be encrypted since Android's encryption will break any attempt to restore. I must strongly advise getting a backup onto a laptop/desktop computer.

LGUP's "upgrade" option is the non-factory reset, "refurbish" includes a factory reset. I've read downgrading may require use of "refurbish" though.

Using LGUP to upgrade to a newer firmware version will lose root. The problem is flashing a KDZ file replaces aboot and boot. What is needed is to only flash /system and /firmware while leaving everything else alone. I hope to create a utility for this, but that will take a while (you need to understand the KDZ format, something LGE isn't going to publicly document).

Heh! Yeah, I can see that happening. Yet another odd little issue to document.

How many variants of the H990 are there? I'm aware of the H990DS dual-SIM and the owners of the H990N single-SIM have been quite noisy; there is also a H990N dual-SIM? Problem is the adjusted kernel is setup to correct the bad information from the unlocked DirtySanta bootloader. In order to do that, it has some of the parameters hard-coded. If there are 3 variants out there, not just 2, then I have to look towards alternative strategies otherwise I end up having to build a bunch of different kernels. :( This is doable, but is yet another increase in complexity.
[LG V20 Guides, News, & Discussion] me2151:
If you get me links to your guys' sources(device tree, kernel fixes) I can build you a 3.1 Twrp for testing. Go ahead and PM me
[LG V20 Guides, News, & Discussion] exadeci:
I feel like most people here have never rooted a phone, you are asking step by step instruction while you have them!

It's the Dirty Santa root that all: Verizon (VS995), Sprint (LS997), ATT (H910) and Korean(F800L) owners have been following since last December.

All you have to do is replace one step and one file from the Dirty Santa tutorial
[LG V20 Guides, News, & Discussion] dr jakub:
I've tried above method and right now i have bricked phone :( after successfully install the TWRP and kernel at booting i had secure-boot screen (i had disabled secure boot earlier). Factory reset in TWRP didn't helped...also system is not booting at all a the worst LG UP recognize my phone as US996. Do you know how to flash KDZ file in this situation or any other method that i can use to properly boot system?
[LG V20 Guides, News, & Discussion] me2151:
You arnt bricked. you just dont follow directions. you dont factory reset in twrp. you FORMAT DATA!
[LG V20 Guides, News, & Discussion] darkstorm99:
Just documenting it here in case anyone else tries this too. I just tried the upgrade option via LGUP to 10d, and whilst it would appear to work at first, every 10-30 seconds various apps stop responding including the stock messaging app, acore (not sure what this one is), and a few others but the prompt disappears before you can read it. Seems the "refurbish" option is the way to go.

edit: I will experiment with running the root instructions first before refurbishing or restoring to factory settings.
[LG V20 Guides, News, & Discussion] KOLIOSIS:
Do you mean the "upgrade" option gave you problems?

As it currently reads, the refurbish option gives you problems, but you go on to say the refurbish option looks to be the way to go????
[LG V20 Guides, News, & Discussion] darkstorm99:
drat. well spotted. Corrected my post
[LG V20 Guides, News, & Discussion] emdroidle:
You've got TWRP installed, which seems to be the most unreliable of the steps. Best option from where you are is to boot into TWRP, upload bootbackup.img then run `adb shell dd if=bootbackup.img of=/dev/block/bootdevice/by-name/boot`. Then flash h990-kernel.zip plus SuperSU.zip, and you'll be fully rooted.

Going back to stock can started via fastboot or TWRP. From TWRP, upload abootbackup.img (note: abootbackup.img) and then run `dd if=abootbackup.img of=/dev/block/bootdevice/by-name/aboot` in a shell; follow this with running `sync` a few times, then wait at least 15 seconds before rebooting. LGUP should now correctly recognize your device.

From fastboot, run the command `fastboot flash aboot abootbackup.img`, then wait 10 seconds and repeat this command. Wait another 15 seconds and run `fastboot reboot`.

Note that we're overwriting aboot here, which is hazardous. Be very careful if doing this, typos can readily give you a genuine brick. Also do not skimp on the delays, it sounds like aboot isn't completing writes before taking new commands and we need the commands to complete before the next one.
[LG V20 Guides, News, & Discussion] farwish:
do you think that the kernel of H990N dual-SIM is a little bit different from H990DS dual-SIM ? can i just try your mod kernel on my H990N dual-SIM? and if it brick, can i use kdz to restore it.
[LG V20 Guides, News, & Discussion] Prowler_gr:
Did that with no luck.

Restored aboot via fastboot as per [MENTION=6984210]emdroidle[/MENTION] instructions, which got my phone running again.

Re-tried the full dirtysanta exploit from start to end which again landed me in the same place (static) after running step3_h990.bat multiple times (after removing the "fastboot reboot" line). Also ran "fastboot flash recovery twrp-3.0.2-1-h990.img" manually at long intervals 4-5 times without a different result....

My understanding is flashing the kernel should resolve the static for normal boot, but we need TWRP (without static) to flash this.
[LG V20 Guides, News, & Discussion] emdroidle:
There are a few issues. The H990DS kernel I've built is actually correcting issues caused by the DirtySanta bootloader. Of note the DirtySanta bootloader includes in its command line "... model.name=LG-US996 androidboot.serialno=LGUS996*** ...", that kernel corrects these to "... model.name=LG-H990ds androidboot.serialno=LGH990*** lge.sim_num=2 lge.dsds=dsds ..." It also does a correction to the "smem" area, where it fills in the correct model name and SIM count.

It is possible the H990DS kernel would work for you, but the differing strings may confuse portions of the software on the phone, worst case they could misprogram the modem to the point of damaging it.

My request for information was to confirm what the differing strings were so correct values could be substituted.

Okay, are you sure you're correctly following the procedure to get into TWRP?

Start with volume DOWN and power held. Once you get to the LG logo screen, briefly release power (half second) and then go back to holding power. At this point it will ask to clear the phone (recovery also handles factory reset) and selecting yes twice will go into TWRP. This screen and its text should be static-free.

You might be releasing power for too long. This may also be better to start from the phone being fully powered off.
[LG V20 Guides, News, & Discussion] Prowler_gr:
Positive. I get clear picture (no static), when it prompts me twice to clear data. It is after I do this I run into static....
[LG V20 Guides, News, & Discussion] darkstorm99:
I have successfully rooted my v20. Thanks so much to emdroidle for his relentless hard work (I had been refreshing this thread daily). Thanks too to Xenogetics for combining the original Dirty Santa instructions and emdroidle's.

The instructions I followed were the combined ones that Xenogetics posted, which is now in emdroidle's "success" post. Where I had differed was as follows:

- I didnt run step3 h990.bat. I opened the file manually to see the commands and typed them in, then waited 30 seconds after each time the command was run (including flashing recovery 6x)

- TWRP stated the internal storage was encrypted and couldn't be decrypted. Fortunately I made a backup of the important parts of the internal storage prior, using manual methods and LG Backup. Could we make it clearer that there is a solid chance that all internal storage may be wiped?

- Because of the above, I used the Format Data option in the wipe section.

- I used a USB OTG adaptor to install the 2 zip files from TWRP, because the internal storage was wiped.

- I had to downgrade to V10d first. Even though I had crashing for apps, since the device got wiped, it has since disappeared.
[LG V20 Guides, News, & Discussion] RipCityBassWorks:
Wow, thanks emdroidle for the wonderful success story! I might have to buy a H990DS now, they are cheaper new than the other models for some reason.
[LG V20 Guides, News, & Discussion] Xenogenics:
[MENTION=6984210]emdroidle[/MENTION] I'm going to backup and try the root process today. When we do get more reported successes and learn from our mistakes, please do edit the steps and post it in a new thread because I strongly think this needs to be more visible and also you deserve more credit than a post hidden in this thread.
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Just want to clear some doubts before i proceed:

FIRST

I'm currently on v10e-sea-xx which means i have to downgrade, so i chose this H990ds10c_00_OPEN_SG_DS_OP_1214.kdz for LGH990DS.

SECOND

i managed to get LGUP working using this https://drive.google.com/file/d/0B0-_MIhGeuKhNWFpcUNfc2FKeG8/view?usp=sharing found in this thread https://xdaforums.com/v20/how-to/restore-v20-to-100-stock-bricked-devices-t3524903/page13

THIRD

I have to use UPGRADE option right? because i am installing a lower version.

LASTLY

Lets hope i get this successfully done and i'm rooted and unlocked.

Suppose i want to return my phone back to way it was (stock), i can simply flash the above kdz file using the upgrade option, right?

meaning i will lose root and the BOOTLOADER WILL GET LOCKED again, yes?

and will LGUP detect the phone as h990ds or usxxxx????

Thank you in advance
[LG V20 Guides, News, & Discussion] Xenogenics:
[MENTION=6984210]emdroidle[/MENTION] Okay, I followed all the steps up to before running your step3.bat

Instead, I manually entered the command "fastboot flash recovery...." 6 times with intervals of approximately 30 secs.

I then proceeded to remove the battery and booted into recovery with success.

I first tells you that your device is corrupt (g.co/ABH)(Visit link and read RED warning) blah blah blah, but then reboots into recovery. (Edit: Press hold power button awhile to skip)

TWRP states internal is encrypted, but wiping /data/ seems to help.

Proceeding to push kernel.zip and supersu.zip for flashing. (Edit: If you have ext SD card, you dont have to do this)

Edit: Seems to be working fine, will check for root soon. Edit: Root is there.

Anyway to remove the annoying corrupt warning on boot?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
PLZ clear my doubts after you successfully root
[LG V20 Guides, News, & Discussion] dr jakub:
Thanks emdroile, i did fastboot flash aboot abootbackup.img and it went well, i have now standard fastboot and standard firmware update screen but in LG UP i have still wrong model :( at this point i cannot flash again abootbackup.img because screen "welcome to fastboot Mode for bootloader unlock" appear and in command prompt i have only waiting for device...

booting to TWRP also don't work....

Is there anything else that i can do?
[LG V20 Guides, News, & Discussion] farwish:
thanks for your reply and can you plz just mod some command line like "model.name" to match the H990N. the premise was that it wont waste you too much time
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Lets hope i get this successfully done and i'm rooted and unlocked.

Suppose i want to return my phone back to way it was (stock), i can simply flash the above kdz file using the upgrade option, right?

meaning i will lose root and the BOOTLOADER WILL GET LOCKED again, yes?
[LG V20 Guides, News, & Discussion] Xenogenics:
I'm not sure if the bootloader will remain unlocked. For my previous SONY phone, unlocking the bootloader but flashing a stock rom still gives an unlocked bootloader.
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
thanks and could you clear my doubts in post #569
[LG V20 Guides, News, & Discussion] Prowler_gr:
SUCCESS!!!

After 4th attempt, & with repeating exactly the same steps as before - I finally got into TWRP :good::good::good:

For those people (like me) that keep running into proplems, I advise on insisting running "fastboot flash recovery twrp-3.0.2-1-h990.img", until you succesfully are able to boot into TWRP.

After that everything is straight forward
[LG V20 Guides, News, & Discussion] Xenogenics:
First: Yes v10c or v10d

Second: Test if LGUP actually can run in the first place. I had to extract and rename a .dll file from the .kdz file using a .kdz extractor and put it in a folder /model/common/

Third: Refurbish wipes your data, Upgrade does not.

Lastly: Flashing a stock .kdz file using LGUP's refurbish option will reset the device to stock. But I am unsure if the bootloader will go back to being locked.

---------- Post added at 04:38 PM ---------- Previous post was at 04:37 PM ----------

Congratulations.
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
wow thanks

just one last qn.

will the phone be able to take ota updates?
[LG V20 Guides, News, & Discussion] Xenogenics:
I have no idea. You have better luck asking in the original dirtysanta thread because their thread is more developed than ours. e.g. They had root for a longer time than us, they may have more answers there.
[LG V20 Guides, News, & Discussion] me7tarfeek:
I can test it in my H990ds...
[LG V20 Guides, News, & Discussion] elliwigy:
we have a tester for h990ds already.. he actually helped somewhat in the process also
[LG V20 Guides, News, & Discussion] me7tarfeek:
Wish you all the luck... Please keep us updated....
[LG V20 Guides, News, & Discussion] elliwigy:
success thanks to [MENTION=4591212]me2151[/MENTION] and [MENTION=4668174]EMSpilot[/MENTION] for buying an 840$ phone lol

keep in mind i have a vzw v20 but fully unlocked with twrp and root and converted to an US996...
[LG V20 Guides, News, & Discussion] me7tarfeek:
:good::good::good::good::good::good:

What a great news.... You guys made my day.....

Will wait to hear a good news on H990ds....
[LG V20 Guides, News, & Discussion] roosta:
Congrats guys. Great news. Though a dual sim phone is differently built in both hardware and software ROM so it could be a completely different story. However, my optimism has increased a little today! [emoji3]
[LG V20 Guides, News, & Discussion] ausi:
Model H990 versus 990DS for Root??

Will the International Model H990 be the same Root procedure as the 990DS (-i believe the only difference is the Dual SIM)??
[LG V20 Guides, News, & Discussion] capfirepants:
I guess it's to early in time to tell....
[LG V20 Guides, News, & Discussion] trongnghia2411:
So my understanding is that u have successfully rooted 990DualSim version. Am I correct?
[LG V20 Guides, News, & Discussion] me2151:
No. We have not said that at all. The H990DS is the one most likely NOT to work properly due to different hardware.
[LG V20 Guides, News, & Discussion] me7tarfeek:
So, do we have anyone working on H990DS root?

We are seeing great progress on other models.
[LG V20 Guides, News, & Discussion] me2151:
We thought we had someone with the H990DS. Apparently not :/I understand there are quite a few people on here with a 990DS but the chances of brick for that device is I would estimate... 85%+
[LG V20 Guides, News, & Discussion] hykhleif:
can i ask u think the h990 single sim will have soon root, is there a thread for the H990 single sim international version that talks about rooting
[LG V20 Guides, News, & Discussion] elliwigy:
if you can look for it if it exists then im sure itd be there for you to read lol if u cant findanything then means thread doesnt exist
[LG V20 Guides, News, & Discussion] me7tarfeek:
Any news on H990ds?
[LG V20 Guides, News, & Discussion] hykhleif:
well it does not exsit, and i am too lazy to try the search function

so i will spread rumours here that there is no thread for h990 and let every h990 owner be in despair :), and if it exists then you are blamed for hundred lazy guys not finding it and we will be envious and our envy and curse eye is infectious and reaches over borders
[LG V20 Guides, News, & Discussion] poczynek:
Anyone willing to try?

http://xdaforums.com/v20/developmen...bootloader-t3519410/post70094400#post70094400

May brick ... may not ...
[LG V20 Guides, News, & Discussion] me2151:
Just a warning. If you do try i am not responsible for any of it.
[LG V20 Guides, News, & Discussion] 881jz:
Very unhappy with this phone so don't care if I brick it. Will hopefully get a chance to try it out to. Tomorrow.
[LG V20 Guides, News, & Discussion] UL7RA:
I managed to get ALMOST everything to work. Just that everytime I try to reboot from TWRP it says that my phone is encrypted, and refuses any password. When I get back into TWRP and format, it refuses to boot, and goes to TWRP instead, so I'm forced to LGUP the kdz again to get the phone to working condition.
[LG V20 Guides, News, & Discussion] theleftykid:
I have Lucky P-----r, Tasker, sixaxis controller, rom toolbox. Tried viper4android for nougat lgv20 but does not work on my device ( probably done the instructions wrongly).

Update: This viper4android works for me ViPER4Android_2.5.0.5_guitardedhero.zip
[LG V20 Guides, News, & Discussion] aboda7es:
I'm having the exact same issue. Any ideas?

EDIT: I tried to format (not wipe) /data again, and it worked! No more encryption prompt!
[LG V20 Guides, News, & Discussion] dr jakub:
How do Guys you manage to flash KDZ file? whatever i've tried always failed with error that i have US996 instead of H990DS
[LG V20 Guides, News, & Discussion] Xenogenics:
did you wipe only data? or did you factory reset?

also, after wiping, did you install the kernel.zip and supersu.zip?
[LG V20 Guides, News, & Discussion] UL7RA:
I think I tried everything, but also I remember I tried formatting after installing those and would fail to boot.

I'll use a backup from TWRP so I don't have to do everything all over again. I'll update asap if anything works.
[LG V20 Guides, News, & Discussion] Prowler_gr:
[MENTION=3102329]roosta[/MENTION], I agree with [MENTION=6984210]emdroidle[/MENTION], he should now be entitled to claim the bounty.

I agree the current posted rooting procedure is still quirky but it eventually works.
[LG V20 Guides, News, & Discussion] UL7RA:
I DID IT! It works. Finally! After like 6 hours of trying I managed to make it work. Okay. So. First of all, DON'T run the step3_h990. When you're ready to do that, open up adb and write "fastboot flash recovery twrp-3.0.2-1-h990.img". Wait 30 seconds after it's ready, disconnect the cable, pull out the battery, put it back in, then get into recovery (Volume down + Power, let go of the power button for a moment after the LG logo appears, then press it again). Press Yes, Yes again, goes into TWRP. Now here comes the interesting part. I'll tell you exactly what I did. I wiped Data, flashed kernel and superSU, then rebooted. Nope, device is encrypted. Went back into TWRP, wiped data, phone booted but no root. Went back to TWRP, formatted, then flashed SuperSU and Kernel and now it works.

Basically, before installing SuperSU and Kernel, make sure to format data. You won't lose any app if you back them up with LG Backup.
[LG V20 Guides, News, & Discussion] Xenogenics:
The best thing to do is not panic. :)
[LG V20 Guides, News, & Discussion] UL7RA:
Proof it works:

Click me!
[LG V20 Guides, News, & Discussion] FACAF:
Could someone please explain the process step by step ? It is very confusing for me because de information is very fragmented,

I have H990DS from Korea, v.10e. Thanks in advance
[LG V20 Guides, News, & Discussion] Prowler_gr:
https://xdaforums.com/v20/how-to/bounty-thread-lg-v20-root-h990ds-t3493062/post72675514#post72675514
[LG V20 Guides, News, & Discussion] affan8054:
Successfully rooted followed the steps and had to downgrade to december security patch (H990ds10c_00_OPEN_SG_DS_OP_1214.kdz)from here (https://lg-firmwares.com/lg-h990ds-firmwares/)

---------- Post added at 08:01 PM ---------- Previous post was at 07:28 PM ----------

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

Step 2: Backup your phone data. LG Bridge/LG Backup is pretty reliable, but I strongly advise backing up everything onto a desktop/laptop computer. If you backup to SD card, the SD card must not be encrypted! (failures will destroy the key and the data)

Step 3: If your phone is on an update after December 31, use LGUP to "upgrade" to an earlier firmware release . Go to the url mentioned in step 1 and download firmware with december security patch in my case (H990ds10c_00_OPEN_SG_DS_OP_1214.kdz) did it

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

Step 5: Ensure you have all relevant files prepared:

Installed backup plan.

Installed Terminal Emulator on device From playstore.

Enable usb debugging

Downloaded dirtysanta's files (https://www.google.co.in/amp/s/xdaf...s995h910-dirtysanta-bootloader-t3519410/amp/) and copied them to ADB directory.

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

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

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

Step 8: Type "run-as con" <-- If you get unknown package error, means your latest security patch patched it out, boohoo no root. If you can find an earlier firmware KDZ for your device, LGUP should be able to install it and you'll be able to root.

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

Step 10: Open Terminal Emulator, Type "id"

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

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

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

Step 14: Run "step2.bat"

Step 15: Edit "step3_h990.bat" by right click and erase the line fastboot reboot and Run emdroidle's "step3_h990.bat" 2-3 times to ensure recovery is flashed properly.

After step 15, 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. If TWRP installation was unsuccessful try step 15 again by booting back to fastboot mode .

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.