yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
From the state of "welcome to fastboot Mode", you would need to issue the command `fastboot reboot` (fastboot has similarities to adb, but very different capabilities). After returning aboot to stock (and waiting for fastboot/TWRP to finish writing!), there could be a need to completely power off the phone and disconnect the USB cable.

No, you would need "REFURBISH" which will includes a factory reset.

Appears you need to do this step before installing the KDZ. This is the issue [MENTION=5593775]dr jakub[/MENTION] is running into.

Once the KDZ is installed though you're correct, root access will be lost and the bootloader will be locked again. Actually need LGUP to be recognizing the phone as a H990ds before the KDZ is installed, so afterwords it will still be recognized as a H990ds.

You won't want to. A successful OTA update would end up overwriting the DirtySanta bootloader with the stock one, both losing root and locking the bootloader.

A major concern here is this means we'll be lagging behind security updates. This is why I very much want to have a tool to merely install /system from a KDZ file, this gets us back up to date on security.

No. Now I'm wanting to type a joke saga about being branded by the red triangle is the curse of having an unlocked bootloader. :) Unless I could get LGE to sign my kernel image (yeah, right), the red triangle is going to be permanent, just like DirtySanta for other devices.

This is always true.

Unfortunately the procedure is complicated and confusing. Due to the constraints of SE Linux, simplifying it is near impossible. There have been some attempts to simplify the procedure, but it is doubtful they will reach success.

---------- Post added at 03:46 PM ---------- Previous post was at 03:20 PM ----------

I keep pointing here, because that is directions for retrieving the appropriate strings to ensure things match correctly (incorrect matches could do anything).

I simply need the output of the two commands:

adb shell getprop ro.product.name
adb shell cat /sys/firmware/devicetree/base/chosen/bootargs

I strongly recommend filtering the value of "androidboot.serialno". I'm looking for the prefix (most likely "androidboot.serialno=LGH990********") and don't need the whole value (which would be considered personal information).

Okay, I want to make sure I get the models straight. The single-SIM H990 always has a model name of "H990", no extra letter(s)? Is there a single-SIM version of the Korean H990N?
[LG V20 Guides, News, & Discussion] MajorChioHazard187:
Correct,I have a South African model V20.Model is just straight H990.
[LG V20 Guides, News, & Discussion] Markavg:
Thank you very much!!!! Been waiting for the root since the release of the V20 :D had to downgrade the firmware to the november patch as it does not work on the may patch.
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
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.

:fingers-crossed:

could you explain more about dd if=abootbackup.img of=/dev/block/bootdevice/by-name/aboot and sync above:confused:
[LG V20 Guides, News, & Discussion] Prowler_gr:
[MENTION=6984210]emdroidle[/MENTION]

Can your kernel be used on custom roms?

--or to rephrase--

If we took a custom rom (Lineage - or - AOKP) from https://xdaforums.com/v20/development, flashed it on a rooted H990DS with TWRP & then flashed your kernel, would the phone be fully functional?
[LG V20 Guides, News, & Discussion] Squadala:
Will it work on v10e?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
no it will work on 10c or 10d

you have to downgrade using lgup

start reading from page 49 to know whats happening

---------- Post added at 08:49 AM ---------- Previous post was at 08:01 AM ----------

HOW to backup these before starting the root process

"abootbackup.img", "bootbackup.img" and "recoverybackup.img"
[LG V20 Guides, News, & Discussion] dr jakub:
i understand the procedure but cannot go with it as after command `fastboot flash aboot abootbackup.img` i get error: FAILED (remote: device is locked Cannot flash images)' :(
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
have you tried using uppercut https://xdaforums.com/lg-g5/development/uppercut-lgup-loader-g5-variants-t3511295
[LG V20 Guides, News, & Discussion] dr jakub:
i've tried almost everything that can found in internet, every program for flashing LG devices get the same error that i have US996 device and can't flash firmware for H990DS...there is no any "force" switch to flash for your own risk...as a last hope i flashed firmware for US966, which was successful (lol) and android is booting, but hangs welcome screen and selecting internet connection. These screen cannot be skipped as LG force to connect to internet to step any further, in normal android there was option to skip all these configuration steps and boot to system without any connection...In other words i am in very deep **** :/

i've tried uppercut also in the first place, but error is the same, cannot flash firmware h990ds on us996...
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
hmm this is a problem.

i wont root my phone unless there is a way to go back to stock

[MENTION=6984210]emdroidle[/MENTION]

---------- Post added at 09:27 AM ---------- Previous post was at 09:17 AM ----------

did u try this

From the state of "welcome to fastboot Mode", you would need to issue the command `fastboot reboot` (fastboot has similarities to adb, but very different capabilities). After returning aboot to stock (and waiting for fastboot/TWRP to finish writing!), there could be a need to completely power off the phone and disconnect the USB cable.
[LG V20 Guides, News, & Discussion] dr jakub:
Yes, i've tried "fastboot reboot" but all it does is simply restart the phone and start with normal system booting...i have no idea in what way it can help...
[LG V20 Guides, News, & Discussion] hykhleif:
any new about rooting the single sim version
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
i'm out of ideas
[LG V20 Guides, News, & Discussion] Prowler_gr:
That means you've locked your bootloader, lost TWRP recovery, and can't finalise setup to enable adb & run the exploit...

Good luck........

I haven't tried this but it doesn't hurt to try

http://www.mobileapps-dev.com/artic...riants+with+.KDZ)[No+OS+Firmware+Update+Loop]
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
So what are the steps to successfully go to stock after rooting
[LG V20 Guides, News, & Discussion] Prowler_gr:
I believe you only need to restore the original aboot (which get's backed-up as abootbackup.img during step2)

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

You shouldn't be deterred by [MENTION=5593775]dr jakub[/MENTION] issues, his major problem is that he locked his bootloader by flashing the wrong stock firmware (US996).

When rooted with the debug bootloader you can use fastboot & also the dd= commands (which he can't because he's locked)
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Where does it get saved
[LG V20 Guides, News, & Discussion] Prowler_gr:
In your adb folder, with the rest of the files.
[LG V20 Guides, News, & Discussion] Xenogenics:
Sigh... This is why you don't panic and start doing things on your own.

Follow every step to the letter. If you're on the same model/version as everyone else, it should work for you.

If you encounter problems, stop and do not panic/attempt to resolve the problem yourself especially when you're not well versed in android development.

Especially when the unlock/root method is in beta and there is clearly a disclaimer stating all the things that can go wrong.

I think a major ****up on your part was using LGUP to flash the US variant of the V20 just because LGUP recognises it as so.

By doing that, you re-locked the bootloader and/or patched the security exploit. Right now, you have a dual-sim hardware variant V20 with whatever-sim software variant you flashed.

The foreseeable method to getting your phone back to stock would be to find a way to flash your abootbackup.img that step2 has saved.

If you managed to flash abootbackup.img, LGUP SHOULD recognise your phone as whatever variant it was before and you can flash a stock kdz file of your variant. And maybe wait a little longer till you decide to root your phone
[LG V20 Guides, News, & Discussion] dr jakub:
i had many phones earlier but never had a LG, its the worst software for flashing I've ever seen, and to be honest the worst approach to their customers, locked bootloaders, no reliable and functional software, i feel almost like having an iphone, not an android phone.

For anyone who have similar problem, i will try later flash dz software using uppercut/lg up with usb 2.0 cable (with stock usb c kable flashing stops at 10% throwing error, another example of "brilliant" LG software)
[LG V20 Guides, News, & Discussion] Prowler_gr:
[MENTION=5593775]dr jakub[/MENTION]

Not all is lost if the proceure described in http://www.mobileapps-dev.com/article/12632626/Ultimate+guide+to+unbrick+LG+V20(Only+Variants+with+.KDZ)%5BNo+OS+Firmware+Update+Loop%5D is legit

Disclaimer:

I have not tried the method, neither can I confirm that it will work for US996-->H990DS

I have highlighted in red, what I gathered to be important for this to work.
[LG V20 Guides, News, & Discussion] eyz:
anyway to determine whether the phone is already patched before going ahead with the rooting process?
[LG V20 Guides, News, & Discussion] Xenogenics:
[MENTION=6984210]emdroidle[/MENTION] is aboot.img for different devices of the same variant cross compatible? e.g. Can someone else using h990ds use my aboot.img to restore his phone to stock?

[MENTION=2630853]Prowler_gr[/MENTION] [MENTION=5593775]dr jakub[/MENTION] Can you PM me links to your abootbackup.img?
[LG V20 Guides, News, & Discussion] Prowler_gr:
I am pretty sure they would differ by region (eg TWN - SEA -AUS etc), & maybe by software version (10b, 10c, 10d etc), but they should be cross compatible (LGUP would recognise them)
[LG V20 Guides, News, & Discussion] Xenogenics:
Can you send me a download link to yours?
[LG V20 Guides, News, & Discussion] Prowler_gr:
Attached.

It is from firmware: H990ds10b_00_OPEN_TW_DS_OP_1125.kdz
[LG V20 Guides, News, & Discussion] gazzacbr:
Hi, check out linux/unix commands for dd. It does a direct write of data into a device or block of memory. Also known as disk destroyer because if you get the arguments the wrong way round (if=input file, of= output file/where to write to) it can destruction your system. Take care with this one...
[LG V20 Guides, News, & Discussion] Xenogenics:
****, so I ****ed up and flashed a locked bootloader aboot.img by accident (wrong flash) and now I have the same problem as dr jakub (lol silly me).

So all in all,

my bootloader's locked,

LGBridge recognises hardware as H990DS but software as US variant,

LGUP recognises phone as US variant,

I won't be able to boot unless I flash a US variant software (which i haven't done), which dr jakub did but unable to bypass setup screen.

Any ideas? [MENTION=6984210]emdroidle[/MENTION]

Edit: Trying Uppercut, I got an error at 12%

"Error: 0x2BC, Invalid

command response code =

0x80000121"
[LG V20 Guides, News, & Discussion] dr jakub:
yeah...been there....using an usb 2.0 cable also don't work...always stops at 10% with invalid response code or with timeout error, depends which cable was used...it's almost unbelievable how bad LG programs are...
[LG V20 Guides, News, & Discussion] Xenogenics:
Which US996 kdz did you flash?
[LG V20 Guides, News, & Discussion] dr jakub:
don't go this way, it helps nothing, system will boot but you will be stuck at welcome screen as you cannot pass it without connection to wifi or mobile (none of this works). I'm running out of swearing for LG...
[LG V20 Guides, News, & Discussion] Xenogenics:
LOL! I can't even flash the US variant it still gives me the same error!

Now I can't even go into download mode nor fastboot. I guess this phone is ****ed.
[LG V20 Guides, News, & Discussion] erhanyavuz91:
Can you help me ? My phone : V20 H990TR
[LG V20 Guides, News, & Discussion] ahlok_hk:
This can be avoided if you have performed step (A). If already patched, perform step (C)1
[LG V20 Guides, News, & Discussion] exadeci:
[MENTION=6984210]emdroidle[/MENTION] There is now a step by step tutorial by [MENTION=273964]ahlok_hk[/MENTION] that I'm sure he won't mind having featured in your root thread when you'll make it :D

https://xdaforums.com/showpost.php?p=72716640&postcount=613

On a side note is there a way to keep your root on the latest update? I can be a guinea pig again if you need.
[LG V20 Guides, News, & Discussion] zack1175:
I just hope emdroidle can get his reward.He absolutely deserved it.However,there're so many people who placed the bounty but left here ever since or refused to pay the bounty...
[LG V20 Guides, News, & Discussion] exadeci:
Ok so it might just be easier to get LineageOs working and forget about LG official releases then :good:

I've quickly browsed through your kernel code, to make Lineage OS a reality on the 990DS, it would require a merge of your v0.1-branch with cm-14.1 and rebase that on upstream's master keeping of course your changes? Or is there more than that?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
succesfully rooted last night

straight forward steps ,,, jjoking

thanks

[MENTION=6984210]emdroidle[/MENTION]

Xenogenics

Prowler_gr

and many others

will post images soon

NOW I WANT TO TEST HOW TO GET BACK TO STOCK

Method 1: (TWRP, strongly preferred!)

Boot into TWRP (DOWN + Power with a brief release during LG logo).

Copy the file "abootbackup.img" from your archive to your phone (adb push abootbackup.img /).

Run `adb shell` and type (or copy&paste) the following commands:

Code:

dd if=abootbackup.img of=/dev/block/bootdevice/by-name/aboot

sync

sleep 30

sync

Get into Download mode. Power off phone from TWRP. Press and hold UP, then power phone on (no need to hold power).

Load the appropriate KDZ file onto your phone via LGUP.

Should these commands be run using command prompt while in twrp
[LG V20 Guides, News, & Discussion] eyz:
m goi sai.

when I read boohoo, I thought it's end of step. didn't realise I have to go back to the earlier step to "upgrade" the kdz file.
[LG V20 Guides, News, & Discussion] emdroidle:
There is going to be complexity. I'm pretty some fixes I did one way, and they did another way. This change, I added a symbolic link, pretty sure they copied the entire file.

They disabled the "second screen" in their tree, which involves modifying the .dtsi files. The H990ds will require a similar change. I really hate they way they did that. Could have created a kernel option for enable/disable, yet instead they hard-coded it (this breaks the kernel for use with stock, when it could easily have been preserved).

Then there is the situation with the Bluetooth drivers...

"kdzwriter" will take a bit, but I hope not too long. I disassembled the format a year ago, so I know how to implement this task. Only difficulty is integration with TWRP (I've got no idea how their UI libraries work).

If you think that process is straight-forward you're crazy. I and others have tried to explain it clearly, but it is really hairy.

Yes. Run `adb shell` and type them in turn. I really don't like playing around with this since the process is so risky, but if you really want to.
[LG V20 Guides, News, & Discussion] adriansiv:
Indian Variant?

Did you do this on Indian variant of LG V20?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
as long as the model is h990ds you're good

and also the security patch level must be less than march 2017 preferably December 2016

---------- Post added at 07:45 AM ---------- Previous post was at 07:43 AM ----------

yes the process is quite complicated as involves the use of both pc and phone simultaneously

that REALLY statement scarred me :crying:
[LG V20 Guides, News, & Discussion] RdT21:
So if we root we loose security patch of April 2017 because of the need to downgrade? This is a no no for me. Security patches are very essential for me.
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
SUCCESS

Rooted and unlocked using the method provided by [MENTION=6984210]emdroidle[/MENTION]

Also successfully returned to STOCK using TWRP method provided by [MENTION=6984210]emdroidle[/MENTION]

I won't try the fastboot approach because it is unreliable

And i think its time to open a new thread
[LG V20 Guides, News, & Discussion] adriansiv:
Bro can you please do a step by step guide of rooting and unlocking ? If you are from india, can i get your whatsapp number ? pm me pls.
[LG V20 Guides, News, & Discussion] djodjo131:
i have a message not found with the command run-as-con why ?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
There do exist two step by step guides so writing one more will mean disrespecting the members here at xda

but this guide by emdroidle https://xdaforums.com/v20/how-to/bounty-thread-lg-v20-root-h990ds-t3493062/page49

and this by ahlok_hk https://xdaforums.com/v20/how-to/bounty-thread-lg-v20-root-h990ds-t3493062/page62

both are very well written.

i just made a combo of the two, i mean cross checking

i am planning of creating a PDF file for rooting and going back to stock

good luck
[LG V20 Guides, News, & Discussion] adriansiv:
I will look into these . Thanks bro.I just have one question. For future OTA updates, as far as i can remember, once you have TWRP, they won't install. So what is the process of updating the phone and keeping root? Is it possible?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
You won't be able to install updates while rooted and with twrp flashed.
[LG V20 Guides, News, & Discussion] adriansiv:
so we will only be able to update the phone only when somebody releases a twrp flashable stock rom ? am i right?

Are there any custom roms which have VOLTE functionality right now?
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
1. Not sure

2. No

---------- Post added at 02:07 PM ---------- Previous post was at 01:59 PM ----------

1. Not sure

the thing is i think the bootloader is unlocked as long as we have the debug bootloader installed

as soon as we flash the kdz file it gets locked again

2. Not yet
[LG V20 Guides, News, & Discussion] ahlok_hk:
make sure you type "run-as<space>con"
[LG V20 Guides, News, & Discussion] gazzacbr:
haha, its from the old old days of 'real' unix. long before windows and gui. you really have to check and double check the command syntax...
[LG V20 Guides, News, & Discussion] faeterov:
[MENTION=3102329]roosta[/MENTION], please state if the requeriments have been fullfiled, in orther to transfer US10 as promised.

I'll wait some days to see if [MENTION=6984210]emdroidle[/MENTION] provides a revised version of the process, at the moment I still see some users habing problems, alltough I'd asume it's because not following the instructions.
[LG V20 Guides, News, & Discussion] gnrsenpai:
is it possible to use MagiskSU instead of SuperSU in this rooting method?
[LG V20 Guides, News, & Discussion] emdroidle:
I really do want everyone to be a bit scarred, we're working with tools which can easily brick phones. This is really a rule of superuser, any time you're at a prompt of the form "# " be careful and think before pressing enter. We're not quite juggling hand grenades here, but care is essential.

This is also a major concern for me, which is why I badly want to work on my `kdzwriter` utility. Temporarily though, you're stuck. :(

Most likely this means you're on a security update after December, so the DirtyCOW exploit doesn't work. You'll need to use LGUP to go to an earlier update.

I was halfway thinking it was a Windows NT admin who came up with that, but it coming from older times doesn't surprise me either. Thing is nearly any command run as root can do a lot of damage `cat /dev/zero > /dev/block/bootdevice/by-name/aboot` will happily kill things for you (note to others, do not run this command).

Very likely, but I haven't tried it. I'm unsure of differences between MagiskSU and SuperSU. This process is relying on SuperSU to delete the "verity_key" file, as long as MagiskSU also does that it should work.
[LG V20 Guides, News, & Discussion] rubiicon59:
Entering "run-as-con" is your problem. It's "run-as con", it's a space not a second hyphen.
[LG V20 Guides, News, & Discussion] exadeci:
Mostly PEBKAC (Problem Exists Between Keyboard And Chair).

Though [MENTION=3102329]roosta[/MENTION] the thread could be renamed with something like [Update: Rooted] or something.
[LG V20 Guides, News, & Discussion] faeterov:
Once we have TWRP shouldnt we go with the lineageos way and abandon LG software? What we will lose by doing so?
[LG V20 Guides, News, & Discussion] emdroidle:
You can do that if you desire. As of right now I don't believe LineageOS has any support for the "second screen" (it is disabled in their kernels). They aren't yet autobuilding kernels for the H990*. No idea of their dual-SIM support.
[LG V20 Guides, News, & Discussion] faeterov:
Of course. I was just pointing that maybe that should be the long term solution for the problems you posted, like obtaining security patchs.

Congrats on the work. Sholdnt we pay you now, or is there somwthing that requiers fine tunning?
[LG V20 Guides, News, & Discussion] emdroidle:
What requires fine tuning right here is my use of PayPal. :confused: I haven't been using them before and need to get the right detail posted.

In case anyone wonders, the bounty wasn't what got me to get this working. I think the V20 has some interesting hardware (ooh! IR reception, rare; NFC, becoming important; dual-SIM, can be (ab)used in interesting ways) and since no one else had adjusted DirtySanta for the H990DS, I had to do it myself.
[LG V20 Guides, News, & Discussion] Arfzck:
camera cannot focus

My camera cannot focus after root (thank you [MENTION=6984210]emdroidle[/MENTION] for amazing work by the way).. I tried using open camera too instead the stock one. Still cannot focus. My phone v20 h990ds Indonesia. But i flashed it with 10d singapore. Is it causes the problem?
[LG V20 Guides, News, & Discussion] KOLIOSIS:
Most here,present company included,are ready to pay.

As for motive,no shame if you were in it for the bounty,we're all grateful regardless! :good:

I know I've pinged the OP regarding payment & have yet to see a response here,or via PM.

Perhaps if you could talk to the OP & decide how to go about it,I'm sure you'll get damn near all the pledges.

Also,I know there's a couple of tutorials throughout the thread:

Any chance you can get a final/official one posted in the OP or a link in the OP to a thread specific for the root method?

THX! :good:
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Camera focus is working
[LG V20 Guides, News, & Discussion] Arfzck:
Thanks for the information.. Should i reflash the phone then?? Or there's something wrong with the kernel?
[LG V20 Guides, News, & Discussion] Lebo-Wog:
So now we can finally flash custom roms and kernels ? Thank you guys for all you efforts.
[LG V20 Guides, News, & Discussion] Jaspreet.master7:
Try a factory reset from twrp
[LG V20 Guides, News, & Discussion] hykhleif:
please can we get root for single sim version