yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] will5:
Well, is not possible to flash a 996 rom on 990ds.

But take a read here https://xdaforums.com/v20/help/volte-support-lg-v20-h990ds-t3519742

Some h990ds have volte. On others will activate depending on how you use the sim slots. Also you can flash other region h990ds kdz. But has some limitations and some apps will crash, but I think it can be fixed.
[LG V20 Guides, News, & Discussion] unclemachete:
Static shows at times while I use my device normally. It appears as one or two horizontal lines for a split second and then dissapear for a couple of minutes and later show again. What could be the cause?

(the static is almost identical to the one that appears after flashing TWRP)
[LG V20 Guides, News, & Discussion] will5:
Use mk2000 kernel and static should be gone.
[LG V20 Guides, News, & Discussion] unclemachete:
mk2000 isn't available for the H990. I'm using DOTS right now. Anyone else experiencing this issue?
[LG V20 Guides, News, & Discussion] will5:
Mk2000 is available for h990. Dont know if it works. Maybe should ask on mk2000 thread.

https://androidfilehost.com/?w=files&flid=255288
[LG V20 Guides, News, & Discussion] :
retry

I did a new try with my h990DS. The result is the same as previously, i.e. the phone ends up with scrambled screen and does not boot in twrp. At the boot time it does the LG welcome tune and and it seems after running for some time is crashes. As it is all with scrambled screen i'm not sure. Also, i get a blue screen saying that the kernel crashed. and just hitting vol- reboots the device.

I had to reflash the phone with the 10c rom as requested in this tutorial, i had originally an AME rom and with the 10c from before 31st dec. 2016 available on lg-firmwares.com being a TW android complains at startup that the original label being AME the current ROM is not the same ... not sure if it's relevant here for finding out why this root procedure is failing on my device.
[LG V20 Guides, News, & Discussion] Nightshadow931:
Yep, you're doing something wrong.

I had the same problem - even that kernel crashing screen on my 990ds.

Honestly, I don't remember what I did to fix it. Try to search for my posts in this thread, maybe there's something that can help you.
[LG V20 Guides, News, & Discussion] :
yeah with the alternative tutorial by ahlok_hk it worked. The thing that was missing was unplugging the phone after the second flashboot flash ... after waiting 30 s instead of rebooting as stated in the original tutorial by emdroidle. Then removing the battery and wait for 5 sec. and put it back and following the procedure to boot into twrp worked. Once in twrp i could flash the kernel and magisk, and then i got to another problem which was, once the supposed rooted android booted prompted for a password with 30 tries or left the user with the only option of emergency calling. I found some inputs from people with the same problem in this thread and the solution was to do a full wipe in twrp. Now my phone is rooted and i updated the rom with kdzwriter.
[LG V20 Guides, News, & Discussion] J_Beam:
Sh*t happens :(

Hello at the rund,

maybe i get some help?

I try to root my h990 DS and have sucsess till the reboot from twrp.

But now the phone is half dead. After booting the LG Logo appears,

after a while comes the blue screen and then the blck one. (see pics)

My Desktop dont find anymore the phone and i am not able to recover or flash again.

I would be greatfull for any suggestions to reanimate the phone.

Many thanks in advance

Best wishes from

J_Beam
[LG V20 Guides, News, & Discussion] Nakashima Taiki:
Maybe this question is already answered but I want to do a factory reset on my phone that have the latest security patch. Do you loss root by doing it? Do i just flash magisk and custom kernel after doing a factory reset?
[LG V20 Guides, News, & Discussion] :
try reading my posts, i had some similar issues. You should be able to get to download mode by, once the phone is off, press and hold down vol+, and plug the phone to the pc preferably running windows and ready to run lgup, and once you see the download mode you can release the vol+ button. then with lgup you should be able to reflash an official lg rom.
[LG V20 Guides, News, & Discussion] Arxangel5:
Root succeed

I have AME h990ds and it hard for root it correct. You need at first downgrade to 10g and to TW region. In another region it not work correct. Kdzwritter can help to change region in next time (after root) - read manuals.

Sometimes LGUP incorrect detect phone after upgrade firmware (same as lg990ds11c). And all kernels not detect model - you need correct parameter devicecheck to 0. I spend some time with IDA Pro for return firmware to stock with LGUP and reroot it again. If you have no power to do big work for root - not do it. LG not for noobs.
[MENTION=1657835]jahlex[/MENTION] "D.O.T.S." is not good kernel - sometimes Phone reboot and apps closed at start (after I try delete google chrome). But may be it's hardware problem.

Now I'am on mk2000 kernel (it have many same modules) with magisk, after some time can write about his stability.
[LG V20 Guides, News, & Discussion] sptw:
MN

AME is AME and TW is TW. If your device is AME, the correct one would be AME firmware. I have a lg v20 h990ds AME firmware, and everything running like a charm to downgrade AME, not TW.

BTW, D.O.T.S is an excellent Kernel.
[LG V20 Guides, News, & Discussion] hotcell:
AME down to 10d, then back to 10g and now on 10h + Magisk are here as well. Yes, you're exactly right.
[LG V20 Guides, News, & Discussion] MuradinB:
Hey guys, so i have a question to ask. I have the LG V20 H990TR and my security patch is for september 1st 2017. After searching the forums i found lgup tool but the eariest sec patch that they have is for 2017-01-23. I can't seem to find anything before December(2016 right?).
[LG V20 Guides, News, & Discussion] agamemnonn:
I have same phone. You need 10d kdz to use dirty santa expolit. But i havent found that first 10d kdz anywhere too.
[LG V20 Guides, News, & Discussion] Arxangel5:
I read in other thread that firmware with different regions are equal (people compared files). Preinstalled apps are different and signature (phone write after start that you install firmware for another region, but you can fix it). I don't know equal or not hardware for different regions on one model but for business is not cheap to do different hardware for different regions - more simple only change firmware. And we see that firmware very similar and have only minor changes.

Probably I do some inorrect in one of steps that 10d not work.
[LG V20 Guides, News, & Discussion] hotcell:
Yes, 10d for AME has the required for Dirty Santa security level to achieve root successfully.
[LG V20 Guides, News, & Discussion] sptw:
I remember that thread. Unfortunately it is gone. If memory don't fail me, the guy there suggest all AME firmware are equal...the same, not TW. In the same way , he guide people how to create a universal firmware using TW and ESA.

Quote hotcell, i am in the same way. The only difference is i'm on supersu and he is on magisk.
[LG V20 Guides, News, & Discussion] ElRubiale:
Hello, I already have my h990ds root in version 10c. What is the next step? Can I update the tlf software without losing the root? Thanks, with what the root cost me, I'm afraid to lose it now.
[LG V20 Guides, News, & Discussion] will5:
You can update using kdzwriter. There is no other way. You wont lose root. Just remember to flash your preference kernel and magisk or supersu after updating.

There is a kdzwriter thread.
[LG V20 Guides, News, & Discussion] sptw:
Look at the post #1012

https://xdaforums.com/v20/development/dirtysanta-h990-t3624296/page102

In time: Use kdzwriter 1.3 version. This is the latest one instead 1.2 on the thread above. Dont do clear dalvik cache or anything else like this.
[LG V20 Guides, News, & Discussion] ElRubiale:
Thanks to both, for twn there is no g and the last one is 10i. Any problem in doing the process with the 10i?
[LG V20 Guides, News, & Discussion] will5:
No, no problem.
[LG V20 Guides, News, & Discussion] sptw:
Some people point out some kind of problems updating long differences between firmwares, like from C to I. As i said before, i did AME D, G and H. I could see e, f, h and i for TW. Maybe it would be a good idea to upgrade f or h, before you go directly for I version. Just my opinion.
[LG V20 Guides, News, & Discussion] will5:
Yes, thats true. But dont think it will affect 990.

Most versions are pretty much the aame. They didnt fix a thing for our phones.

Other thing is 910h model that has like more than 10 updates versions.

Anyway, the generic recommendation for kdzwriter is not skip more than 3 or 4 versions.
[LG V20 Guides, News, & Discussion] speculatrix:
TL;DR: How far back a release do I need to go in order to be able to use DirtySanta to root my phone? It's a Taiwanese variant of the 990. I'm currently on H990ds10i_00_OPEN_TW_DS_OP_1117.kdz. thanks

Backstory:

I wanted to replace SuperSU with Magisk because my phone was failing safetynet etc, but Magisk reported the boot image was already patched, so I tried to unroot to remove the SuperSU package.

Something went wrong and the phone wouldn't boot any more, and I ended up having to restore the bootbackup and abootbackup images using fastboot, using the backup from when I first rooted the phone. I can't boot into TWRP any more ("adb reboot recovery" does nothing), and there's no su anywhere on my phone. Small consolation, I can run Barclay's Internet Banking again :-/

To add to the frustration I'd only just successfully upgraded my h990-ds up to the latest patch revision, H990ds10i_00_OPEN_TW_DS_OP_1117.kdz, so now I need to revisit the whole process of rooting all over again!
[LG V20 Guides, News, & Discussion] will5:
You need to go back to a dec 16 security patch. Most roms released on jan 17 are dec 16 patch.

Next time you can use kdzwriter to flash stock boot, then magisk and custom kernel will flash fine.

For 990 I recommend supersu and suhide. Magisk is based on that and on 990 introduces some bluetooth problems.
[LG V20 Guides, News, & Discussion] hotcell:
Used both. SuperSu is in a maintanance mode, its development is kind of frozen. Never had BT problems with Magisk on H990ds.
[LG V20 Guides, News, & Discussion] Redline:
Personally never had a single problem with a function on my phone, Bluetooth included, using Magisk and the DOTS kernel since DOTS 1.0 when I switched to Magisk. It's also been stated that Magisk and the creator of SuperSU had a fight and Magisk now uses its own open source version of SuperSU and SUHide.

Anyway, to answer the question, [MENTION=286591]speculatrix[/MENTION] Ihave that exact phone. You'll need the 10c KDZ file for your region/variant from lg-firmwares.com
[LG V20 Guides, News, & Discussion] will5:
There are problems with bt and magisk. And they are already reported and reproduced by 990ds users. It wont afffect normal bt use. Just some specific functions. And only 990ds variant is affected.

It takes 10 seconds to reproduce the problem on every 990ds.

This could be the cause then.
[LG V20 Guides, News, & Discussion] speculatrix:
thanks for the replies. yeah, I recall regressing to 10c-TW when I first unlocked/rooted my 990DS.
[LG V20 Guides, News, & Discussion] albaniax:
We're talking Dec 16, 2016 firmware, right?

Also is it a problem if I take a firmware from any other region?
[LG V20 Guides, News, & Discussion] will5:
Yes. Dec 2016 security patch, the day doesnt matter. Any firmware from jan 2017 will work.

Why would you use another region firmware? It will work but will cause unnecessary problems.
[LG V20 Guides, News, & Discussion] Nebenfluss:
good morning, evening. i now have a H990N Dual sim phone. Is it correct, that after following the rooting procedure in post 1, the phone will still have (if rooted successful) fm radio, hifi quad dac, 2nd screen support, since it is on a rooted stock kernel? Or do i lose functionality when rooting with this procedure. thanks for your patience and the great work! Kind Regards
[LG V20 Guides, News, & Discussion] Redline:
You keep all of this functionality, yes.
[LG V20 Guides, News, & Discussion] missing_brain:
So I made the mistake of clicking runstep3 right after step2. And in my poor attempts to fix it by returning to stock. I now can't even turn it on without seeing a flashing screen everytime. And locked my bootloader (so no more fastboot).

Download mode still works, but only problem is that I am getting a unknown device in LGUP, I tried to Uppercut the problem but that didn't work, and I tried the Flashtool but that isn't working.

Please help me.
[LG V20 Guides, News, & Discussion] Leicxan:
Hi [MENTION=6984210]emdroidle[/MENTION]

I try to build the kernel from your v0.1-branch-WIP.

My phone is H990N dual SIM, it a hongkong version. So i use the elsa_global_com-h990n_defconfig to build kernel.

My toolchain is Stock Google GCC4.9 aarch64, always get this error

LD drivers/media/platform/msm/vidc/built-in.o
LD drivers/media/platform/msm/built-in.o
LD drivers/media/platform/built-in.o
CC drivers/media/v4l2-core/videobuf2-vmalloc.o
LD drivers/media/v4l2-core/videodev.o
LD drivers/media/v4l2-core/built-in.o
LD drivers/media/built-in.o
Makefile:946: recipe for target 'drivers' failed
make: *** [drivers] Error 2
dixon@FusionVM:/home/dickson/android/android_kernel_lge_msm8996$

Then i try to use the build script from USA-RedDragon, get the same error

LD drivers/usb/built-in.o
LD drivers/built-in.o
make[1]: Leaving directory '/home/dickson/android/android_kernel_lge_msm8996/build'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/dickson/android/android_kernel_lge_msm8996'

***** Build Failed *****

I use make mrproper before i build the kernel ever time, so the kernel is clean.

Could you point out where is the problem?

Thanks,
[LG V20 Guides, News, & Discussion] emdroidle:
First one warning: I hope you got this recently since I discovered I'd screwed up the H990N defconfig file (what is currently visible has been fixed, but depending upon when you cloned the source...).

You've quoted insufficiently for me to make any guesses. You'll see messages from GCC for the file which had problems, I'll need to see that before guessing. I've got what I think is a hack to build things, but I was unsure whether it is a hack only I need or whether it others need it.

You will likely want to grab one of the exfat implementations. You will need to ship modules to have the kernel work with stock. Turns out LG's software insists upon loading the Bluetooth module in order to have Bluetooth work (a rather odd decision in my view).
[LG V20 Guides, News, & Discussion] Mikesco3:
Where did you get your kdz from?

Double check the software version of your device?
[LG V20 Guides, News, & Discussion] rubiicon59:
[MENTION=6984210]emdroidle[/MENTION]

Man you've definitely got a sh*t load on your XDA plate.

After reading the above I feel quite humbled. For what it's worth I'm OK if you decide to concentrate on the more important things on your list. I don't mind waiting a while to see if you manage to sort the video playback issue.

I'm still buzzing having root.

Good luck.
[LG V20 Guides, News, & Discussion] TommyStark:
us996 bootloader. grrrrrr

after 13 hours flashing twrp. ended up with msm996 bootloader and no O.S on my h990ds, what worse could happen?. my computer detect hardwear as h990ds. lgup says its a 990p, and fastboot says it's us996. i tried almost all known methods. with no hope. all what i got is LG logo and twrp. any idea which way should i go?
[LG V20 Guides, News, & Discussion] rubiicon59:
I'd start by making absolutely sure you've downloaded the correct files for your device.

Then start the process again. Be aware it's imperative you type every command exactly as indicated in the O/P.
[LG V20 Guides, News, & Discussion] Leicxan:
I think this one may help you.

LD drivers/net/ethernet/micrel/built-in.o
LD drivers/net/ethernet/microchip/built-in.o
CC drivers/net/ethernet/msm/rndis_ipa.o
In file included from drivers/net/ethernet/msm/rndis_ipa_trace.h:81:0,
from drivers/net/ethernet/msm/rndis_ipa.c:32:
include/trace/define_trace.h:83:43: fatal error: ./rndis_ipa_trace.h: No such file or directory
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/net/ethernet/msm/rndis_ipa.o' failed
make[4]: *** [drivers/net/ethernet/msm/rndis_ipa.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/net/ethernet/msm' failed
make[3]: *** [drivers/net/ethernet/msm] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/net/ethernet' failed
make[2]: *** [drivers/net/ethernet] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/net' failed
make[1]: *** [drivers/net] Error 2
make[1]: *** Waiting for unfinished jobs....
CC drivers/of/device.o
LD drivers/mmc/core/mmc_core.o
LD drivers/mmc/core/built-in.o
CC drivers/mmc/host/sdhci.o

I cloned your git on 26 Jun 2017 04:38:50 PM CST.

Thanks,
[LG V20 Guides, News, & Discussion] -laughingman:
How do I set the kernel to enforcing using Kernel Adiutor? I cannot find the option in the app
[LG V20 Guides, News, & Discussion] UL7RA:
Try this in Terminal Emulator:

su

setenforce 1

Then reboot.

Also, I seem to have trouble making the system partition writable. And hints? Terminal Emulator commands don't work, says something like 'partition is busy' and apps that do that say they are incompatible with the phone or the phone has no root.
[LG V20 Guides, News, & Discussion] -laughingman:
I tried that and it works. However, the issue will come back after another reboot.
[LG V20 Guides, News, & Discussion] emdroidle:
Okay, you're after I made the crucial correction. (oh, H990N needs to have a SIM count of 2 not 1, gah getting the devices mixed up)

Most search engines would have given you a clue to this. I'm unsure whether there is supposed to be an extra step before generating tarballs or whether those files are relying on an extra compiler feature which had been added very recently...

The workaround is to go into the effected headers and find the line "#define TRACE_INCLUDE_PATH ." and replace it with "#define TRACE_INCLUDE_PATH ../../<path-to-afflicted-header>". For the header you're citing the full line would be "#define TRACE_INCLUDE_PATH ../../drivers/net/ethernet/msm".

This is a problem with:

drivers/net/ethernet/msm/rndis_ipa_trace.h

drivers/platform/msm/ipa/ipa_v2/ipa_trace.h

drivers/platform/msm/ipa/ipa_v3/ipa_trace.h

drivers/platform/msm/mhi/mhi_trace.h

drivers/soc/qcom/tracer_pkt_private.h

I would really like to know the correct solution, but that should get it to build for you.
[LG V20 Guides, News, & Discussion] Leicxan:
Thanks, I will tried but still failed, I attched the whole log in attchment, you can check.

For now, I built kernel from jcadduono's LG Source, https://github.com/jcadduono/android_kernel_lge_msm8996

With your DirtySanta Hack, but flashed to my h990n, get a kernel panic after reboot.

Use your h990ds kernel, boot without problem and success root by use magisk.
[LG V20 Guides, News, & Discussion] UL7RA:
Strange... mine doesn't... You can try doing something like THIS, but you'll have to modify those things to say enforcing or so.
[LG V20 Guides, News, & Discussion] exadeci:
Try, https://f-droid.org/packages/com.mrbimc.selinux/ it'll take care of it on boot.
[LG V20 Guides, News, & Discussion] emdroidle:
Alas after more checking it looks like this method may be the best option. I think I was confusing things when I thought I could do something about this. Seems the "androidboot.selinux=permissive" is only when booting into recovery mode, so fixing something which isn't there in regular mode doesn't help. :( At this point I'm worried we may have a situation of LG's devices being weird/inconsistent, which I really don't like.

I see two errors occurring in that log. First, the complaint about "No rule to make target 'firmware/analogix/mi1_eeprom_20_8b.img'". You mentioned using `make mrproper`? Could be that build target hasn't been updated in a long time, as such it may tend to delete things it shouldn't. Try running

git checkout -- firmware/analogix/mi1_eeprom_20_8b.img

, that will restore the file from git's DB.

The later error for "drivers/platform/msm/ipa/ipa_v2/ipa_trace.h" is another example of the above fix. Need to replace the one line with "#define TRACE_INCLUDE_PATH ../../drivers/platform/msm/ipa/ipa_v2" (yeah, it varies in similar fashion for each of the 5 files).

Guess this is a bit of CAF/Qualcomm funkiness. I'm unsure what to make of it.
[LG V20 Guides, News, & Discussion] -laughingman:
I'll give this a try. Thanks!

The app says I'm not rooted :confused:
[LG V20 Guides, News, & Discussion] exadeci:
It's a bit odd, I did a clean re install of my os and then used your root with magisk and my selinux is enforced by default, I didn't make any change. I'm wondering if some are not using some root app that changes it to permissive.
[LG V20 Guides, News, & Discussion] UL7RA:
Seems that sometimes video doesn't work even if selinux is set on enforcing... Weeeeeird. Or maybe it's because of magisk?
[LG V20 Guides, News, & Discussion] Chronove:
It's working on H990N

I had some trouble with the static screen and modem / kernel crashes, but solved it through flashing TWRP again. Just forgot what you need to do for fastboot for a sec... ( Unplug, power off. Hold Vol down and plug into Pc )

Cant report any errors using the H990DS-kernel on my H990N ( Using SuperSU and no modifications, simply following the instructions )

Focus worked, recording UHD(4k) in 30fps high bitrate both lenses, aswell as 720p with 120fps high bitrate... no problems ^^
[LG V20 Guides, News, & Discussion] zeguym:
anyone can help me. I try root my H990DS but failed.

Already try 2 firmware, 10g and 10j from 2017 and 10k from 2018 (i think only 2017 firmware work), but on those firmware, when i run step 1, using command run-as con, always get unknown con package.
[LG V20 Guides, News, & Discussion] deadmarch:
im also made the same mistake..any1 can help?
[LG V20 Guides, News, & Discussion] Redline:
You can't use a 2017 firmware. Look at the original post. You need December 2016. For the H990DS this is 10c
[LG V20 Guides, News, & Discussion] zeguym:
thank you for your reply. sorry, at first i think it's fw from 2017, not 2016. For H990DS, 10c there is no fw for my country (indonesia), only taiwan (2016-12-29) and singapore (2017-01-06).

I can only use taiwan firmware or i can use singapore firmware to ? both same version but difference date (sg it on 2017)
[LG V20 Guides, News, & Discussion] Redline:
Go with the v10c TWN firmware to get rooted and setup. Once you're up and running, you can use KDZ Writer to update to the latest KDZ for your region while keeping root and everything.
[LG V20 Guides, News, & Discussion] deadmarch:
Hi, does anyone know what version of US996 use in STEP 3.bat? i try to use LG Flashtool 2016 to make my device recognise by LGUP and not some unknown that hold me to back to stock using LGUP.

I already try US996_10F from USA...failed.

i found i make mistake by installing wrong version of TWRP
[LG V20 Guides, News, & Discussion] zeguym:
OK thank you, already rooted using TWN firmware dan using kdzwriter to flash to my country firmware.

Btw is video recording broken after rooting?
[LG V20 Guides, News, & Discussion] 549029316:
hi, I unlocked by dirtysanta for a long time and i search unlock guide from other website but DONT BACKUP bootbackup.img. HOW can i Go back to stock , is there any way? Flashing kdz again can be? someone can help me , please!!so sad
[LG V20 Guides, News, & Discussion] will5:
Yes. You can flash a kdz of your region. No need for backup.
[LG V20 Guides, News, & Discussion] Redline:
No, video recording is not broken after rooting. I recommend flashing a custom kernel such as DOTS 1.5 in TWRP
[LG V20 Guides, News, & Discussion] Napolee:
Hi

try the attached file and copy the file in commom folder in lgup proper sub directory and replace this file if exist and then run lgup again.