yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] LastStarDust:
Hello.

I have rooted my LG V20 H990DS using this method. So far so good. Then I have upgraded Android using the procedure here. The problem is that now I am experiencing some problems at startup:

sometimes (actually 9 times out of 10) I experience a major crash of many apps at startup. Something like "App XYZ keeps stopping" ... After many reboots, everything goes back to normal and I the system runs smooth as butter ... until the next reboot.

I would like to pinpoint the source of the crashes ... if it is an app, the kernel or something else. I attached a logcat and the output of dmesg . If others/better log files were needed, please let me know. Right now I have no idea who I could report this problem to. I have already tried wiping dalvik and cache multiple times.

Other info:

Device: LG v20 H990DS

Android version: Nougat 7.0

Build Number: NRD90M

Kernel: 3.18.90-DOTS_H990_kernel-leicxan_jahlex-v1.4

Rooted: Yes (with this method)

Xposed: Yes (version 89)
[LG V20 Guides, News, & Discussion] TKPL:
Hi everyone!

Awesome post!

I'm trying to root my H990DS right now :)

---------- Post added at 11:04 AM ---------- Previous post was at 10:12 AM ----------

I have problem at point 8:

I get:

but my security patch is dated 1st September 2017!

So I shouldn't have this problem of unkown package. :confused: Maybe emdroidle means 31 December 2016?
[LG V20 Guides, News, & Discussion] MajorChioHazard187:
Yes it is 2016
[LG V20 Guides, News, & Discussion] TKPL:
Thanks. I didn't see Electrolite_XYZ that wrote something about.

May I ask you if I can restore current backup with the LG Backup&Restore on a previous firmware?
[LG V20 Guides, News, & Discussion] MajorChioHazard187:
I have no clue about that,Im new to this and trying to learn as much as possible before I attempt rooting my device
[LG V20 Guides, News, & Discussion] TKPL:
So the first of us who tries will write here if it works :)
[LG V20 Guides, News, & Discussion] oscarmaldonado:
Hey bud, I'm using viper and I don't have any issues with it, are you using a custom kernel? I'm using D.O.T.S. V1.4, you might want to give it try. Good luck.
[LG V20 Guides, News, & Discussion] stirfrybubbles:
thanks for your help but I tried both DOTS and the h990 0.2.4 one, neither combination with any particular viper4android I flashed worked. I gave up after 5 or 6 complete re-roots cause I had to keep flashing it back to stock when the nand backups weren't working. i might revisit another time, but thanks anyways
[LG V20 Guides, News, & Discussion] Madbullben:
Hello everyone. I've decided to root my device after a while but I'm stuck on on step 6. When I run "RUNMEFIRST.bat" the command prompt only last tenth of a second then closes again, I'm unable to get it to run properly.

I hope I haven't done something silly, but haven't been able to work out what to do. I've searched the thread but haven't found anything as well.

Also is the ADB directory at "C:\Users\Users\AppData\Local\Android\sdk\platform-tools"? As I wasn't 100% sure.

Thanks Ben
[LG V20 Guides, News, & Discussion] nymikey:
Hey guys it's most likely the wrong thread but I'll give a try. I'm considering buying a H990 that's sold here in PR by Claro. I want to buy it so i can root it using this method but not entirely sure if I can use it on T-Mobile network if I have it unlocked. Does anyone here know if it's fully compatible with TMO? I've searched but cannot find a straight answer. Thanks and i apologize if it's off topic....
[LG V20 Guides, News, & Discussion] lyrical1278:
I use my 990DS on Tmo in the States... Works fine for me.
[LG V20 Guides, News, & Discussion] joaovrsouza:
How to remove magisk?
[LG V20 Guides, News, & Discussion] will5:
Flash magiskuninstaller from magisk thread.
[LG V20 Guides, News, & Discussion] amirhosseinakb:
i tried to root the h990ds according presented steps , but after step 16 and restarting , Error report page (in blue one time and second time in green color) displayed. and after manual restarting all of LCD stuck in noisy screen. please help .
[LG V20 Guides, News, & Discussion] will5:
Take out the battery for a second. Start in fastboot mode (hold vol- while plugging usb? Cant remember exactly right now) and repeat step 16.

After that you need to start twrp and flash proper kernel or phone wont work correctly.
[LG V20 Guides, News, & Discussion] amirhosseinakb:
thanks , i repeated step 16 by more attention on times between running commands (more than 30 secs) but same situation happens. after restart noisy screen appears.:(:(
[LG V20 Guides, News, & Discussion] will5:
Noisy screen is normal. Boot to twrp and flash proper kernel. Check how to enter twrp. You have to press buttons in order.
[LG V20 Guides, News, & Discussion] Madbullben:
Can anybody help me please?

Thanks Ben
[LG V20 Guides, News, & Discussion] will5:
Check you have proper adb server running. Type adb and check if server starts. If dont, install minimal abd and fastboot https://xdaforums.com/showthread.php?t=2317790

Also make sure you check developer options, usb debugging.
[LG V20 Guides, News, & Discussion] :
plane mode and fm radio

the h990DS has fm radio but with the rom the device is shipped with from factory the use of fm radio requires disabling plane mode. I'd like to know if rooting will allow disabling this behaviour.
[LG V20 Guides, News, & Discussion] xex360:
Just rooted my H990DS and want to create a rom using the LG Firmware Extract, did everything one thing though is how to create a meta-inf, because I can't find a custom rom for this phone and due my noobiness I lack the knowledge to create one myself, so anyone can help?
[LG V20 Guides, News, & Discussion] geney:
There's almost none for custom ROM to begin with (for H990DS at least), except AOSP based.

BTW, anyone know how to at least upgrade to the latest official ROM from LG after rooted? The latest version won't pass through that "run-as con" for sure hence you gotta downgrade it.

TIA.
[LG V20 Guides, News, & Discussion] xex360:
Heres' the thing we have unlocked our bootloader, so I suppose we are able to install custom build roms, which can be created using KDZ files (which I managed to do), but I'm left with system.img and few other .bin files (similar to those found on a custom rom for other V20 version), problem is I don't know how to create the scripts found on Meta-Inf to be able to make it flashable.
[LG V20 Guides, News, & Discussion] geney:
I'm not much a cook or a developer. Can't really help either. Since G3 era, LG ROMs are simply miserable anyway.
[LG V20 Guides, News, & Discussion] Redline:
Grab the latest available KDZ files for your phone from lg-firmwares.com and then use KDZ Writer in its thread in the development section to update.
[LG V20 Guides, News, & Discussion] geney:
Thanks a lot. Will take a look.
[LG V20 Guides, News, & Discussion] xex360:
The same here, haven't done any programming in ages to be able to follow the incomprehensible tutorials I managed to find.
[LG V20 Guides, News, & Discussion] shomi1417:
Hi,

i have done root, twrp and kernel and install lot of apks... now i want to start over and set up v20 from clean start

First time i try to factory reset phone thru twrp it went to twrp bootloop and i have to start all process again...

How to do factory reset (without losing twrp and not going into bootlop)?

Thanks in advance
[LG V20 Guides, News, & Discussion] White18:
Hi. Sorry if this is not the correct thread to ask question. I have lg h990ds, android security patch level Oct 1, 2016. I haven't updated my phone since the day I bought it. I'm not new to rooting and installing custom roms. The last phone I rooted is lg g2. It seems rooting v20 is more complicated than before. For those who already rooted did it break anything? I read some people have experienced camera issue and a lot got static. What else didn't work? If I plan to revert to stock no root does lg rootchecker still get tripped? Does factory reset unroot phones? The main reason I want to root is to be able to use those root apps. I don't need any android pay or banking. And I plan to stay in stock rom rooted. Sorry for asking, I want to at least make sure all is well before rooting. Thank you to emdroidle and everyone for sharing and helping! :o

Does lg backup and restore work from stock non root to stock rooted?
[LG V20 Guides, News, & Discussion] lallolu:
Hi,

This is not a reply to your root question but for the android updates.

You know you can flash a stock firmware without rooting the phone?
[LG V20 Guides, News, & Discussion] Trustlover™:
After rooting it,i have been facing with wierd noise from speakers while playing game,i installed the vulkan drivers after rooting.But i dont know either its rooting process or the vulkan drivers that messed it up.Please Help.My device is H990DS
[LG V20 Guides, News, & Discussion] White18:
Yes. But I'm not asking about updates. I'm asking if I revert back from rooted stock to nonrooted will it come back all to the first day I bought it or there's a permanent change in lg root checker and can they tell I rooted it? I'm not familiar with rooting now. The last phone I rooted was g2 3 years ago and the start of implementation of lg root checker if I'm not mistaken. Also, I read somewhere if I update I can't downgrade anymore. Good thing I haven't updated for a year.
[LG V20 Guides, News, & Discussion] 19manu91:
dear all,

I really know that you're not a visionary, but I need to ask: do you think it will be possible to have a simplified/more stable root method on H990DS TWN?
[LG V20 Guides, News, & Discussion] will5:
No, there wont be any simpler or more stable version.

This is completely stable. The stability problem with fastboot cant be solved.
[LG V20 Guides, News, & Discussion] Nightshadow931:
Happened to me, just upgrade to a newer firmware and it'll be fixed.

You can do it with kdz writer.
[LG V20 Guides, News, & Discussion] :
is it possible to put the files in the internal memory instead of an sdcard? you mention magisk and superSU, would magisk be enough? supersu is a proprietary thing and not downloadable anywhere else, at least for versions >= 2.81 than play store. Just for clarity, dirtysanta is the binary that will patch /system/bin/atd, then the stock rom kernel will be replaced by one like h990-kernel-vx.y.z.zip and the rest of the stock rom will stay. is it? Also why running twice "fastboot flash recovery twrp-3.0.2-1-h990.img"? In another post on the v20 i read that the FM radio will no more work and some other features will lack, is it still the case here? Last, are sources somewhere of dirtysanta?
[LG V20 Guides, News, & Discussion] faeterov:
Fm works on v10g SEA with dirtysanta and magisk.
[LG V20 Guides, News, & Discussion] :
this thread is about the v20, isn't it?
[LG V20 Guides, News, & Discussion] faeterov:
V10g-SEA is the name of the firmware of the V20.

I have a V20 H990DS, the software version is V10g-SEA (security patch 1 of july of 2017), that is, android 7.0
[LG V20 Guides, News, & Discussion] Redline:
Magisk is enough yes, it has built in superuser. You run the fastboot command twice, after waiting a few MINUTES between each command, to make sure it worked. FM radio works on stock ROMs, but not custom ones (you don't have to worry about this JUST yet as there's no custom ROMs for the H990/DS. Soon.)
[LG V20 Guides, News, & Discussion] :
i see, i though you were talking of the lg v10
[LG V20 Guides, News, & Discussion] :
by the way, where did you find these firmware?
[LG V20 Guides, News, & Discussion] faeterov:
To use dirtysanta on the H990DS you need to be on firmware from december 2016 or older. Then you apply dirtysanta and the kernel that you want (i'm using DOTS). Then you can use KDZ writer to install a more recent firmware.

you can find an entire collection of firmwares here

http://lg-firmwares.com/category/lg-series/lg-v20-dual/
[LG V20 Guides, News, & Discussion] :
ok. i was asking because no one is named V10g SEA there.

---------- Post added at 05:35 AM ---------- Previous post was at 05:10 AM ----------

the file dirtysanta is a patch that will be applied to /system/bin/atd, but is there some more information available somewhere to know more about what's it actually being changed in the device? also I have termux already installed, is it suitable? i checked it has the command "id" but not sure whether it is the same as the one in terminal emulator. It's output currently with the stock rom and unmodified device is listing the uid, gid, and groups. Is "applypatch" a command of terminal emulator? it's not in termux.
[LG V20 Guides, News, & Discussion] jay_ind:
Hello...

I have LG-H990DS (India)...it is possible to root this phone and install TWRP...???
[LG V20 Guides, News, & Discussion] Nightshadow931:
Obviously, just head to the first post.
[LG V20 Guides, News, & Discussion] jay_ind:
Thank You Friend...!!!
[LG V20 Guides, News, & Discussion] :
so guys, can i do this using only the internal memory instead of an sd?
[LG V20 Guides, News, & Discussion] :
for testing purposes i tried the applypatch command from terminal emulator like this : "applypatch src-file.txt patch.txt" similar to the command in this rooting procedure with dirtysanta file and i got the following:

usage: applypatch [-b <bonus-file>] <src-file> <tgt-file> <tgt-sha1> <tgt-size> [<src-sha1>:<patch> ...]

or applypatch -c <file> [<sha1> ...]

or applypatch -s <bytes>

or applypatch -l

Filenames may be of the form

MTD:<partition>:<len_1>:<sha1_1>:<len_2>:<sha1_2>:...

to specify reading from or writing to an MTD partition.
[LG V20 Guides, News, & Discussion] Redline:
There are no custom ROMs for this model yet. Work is being done in the LineageOS 14.1 thread, mostly behind the scenes. We're all waiting.
[LG V20 Guides, News, & Discussion] TRCAnim:
I have successfully rooted some time ago, but i just noticed that i cant boot into recovery using the key combination

Can anyone help me?
[LG V20 Guides, News, & Discussion] Redline:
If you can connect it to a PC that has ADB installed and USB Debugging enabled in developer options, open a CMD window, CD to the folder you have the ADB files in and type "adb reboot recovery".

Or do what I've done, and install Quick Reboot Pro from the play store. Once that's done, simply hit recovery and it'll reboot to recovery. I've found key-combinations can be hit and miss so these work best.
[LG V20 Guides, News, & Discussion] TRCAnim:
But what if I can't even boot into the OS? E.g. Xposed install failed, cant boot into system and I have to flash the disabler to fix it.
[LG V20 Guides, News, & Discussion] will5:
It must do something when you try to enter recovery.

If not, which I doubt, you could start download mode, lg up and kdz file and start all over again.
[LG V20 Guides, News, & Discussion] :
i tried this root procedure and while everything was going fine i unplugged for some reason the phone just before i had to run the fastboot flash command to flash twrp. When i reconnected it, while the phone was showing a black screen with "FASTBOOT MODE" in red at the top left it said

[123456] usb_read() transaction failed, txn_status = -1
[123456] usb_read(): DONE: ERROR: len = 64
[123456] fastboot: oops!
[123456] fastboot: processing commands

I can get back to the same mode by pressing Vol+ and plugging in the usb cord to the phone while the other end already attached to the computer.

I think refurbishing with LGUP should work but i prefer waiting for some advice from here before moving on. Since dirtysanta is already installed i'm not sure running LGUP is the right solution.

When starting normally the phone i get a blue screen saying there's a problem and some text. It says a reset can be done by pressing vol- and power button. When trying the phone seems to boot into the OS but the screen is scrambled except that the second screen show time.
[LG V20 Guides, News, & Discussion] :
actually running fastboot as root user allowed flashing twrp. I did it as required, twice with at leat 30 sec. waiting in between the commands and wait again before running "fastboot reboot". Then doing the described combo i got the prompt for "Delete all user data ..." which i accepted the two times i got the prompt. Thus, by the way the answer to my previous question as for whether without an sdcard i could do this.

Unfortunately when starting the phone i get to a scrambled screen with the LG welcome music. I restarted the procedure of re-flashing twrp and deleting all user data but still i get to a scrambled screen.

For the moment the unrecommended way to go back to stock using fastboot seems to be my last resort since fastboot is the only interface that still seems to be working normally.
[LG V20 Guides, News, & Discussion] will5:
If you get scrambled screen on download mode it could still work for lg up. I did many times with scrambled screen and went fine.

If you are getting scrambled after button combo to get twrp, probably twrp didnt flash fine. Try other adb drivers on pc and flash again. Also check if your phone model needs flash only twrp on fastboot. When I had the 910h I think we had to flash twrp and boot in twrp.
[LG V20 Guides, News, & Discussion] :
but i don't need to reflash abootbackup.img first before using LGUP?

I'm using linux with :

Android Debug Bridge version 1.0.39

Version 8.0.0_r24

I didn't know we could choose the driver.

my model is the h990ds which is one of the models this thread is about, and i followed all the steps as described here.
[LG V20 Guides, News, & Discussion] will5:
Oh, i see. Dont know about linux. Maybe you could try other pc if you have.

When i got scrambled screen when entering twrp, just flashed a couple of times twrp with fastboot until it enter fine.

On 910h i just killed the system trying to root, many many times and ended with scrambled screen. And I always just used lg up with kdz file only to start clean.

Your case seems like you did some ota update? Dont think there are other ways to kill twrp if you had a working one.

Were you using a proper android build to do the dirty santa patch? It has to be a dec '16 build.
[LG V20 Guides, News, & Discussion] :
well... if the a driver from lg is involved in using adb in windows then yes i think it's worth the try, otherwise i don't think adb in windows would differ from linux.

I did two attempts. When doing some info is displayed on the phone screen, i don't know if it could help to see what's wrong. It could indeed be related to failing flashing of twrp because before i trying flashing the first time i rebooted the phone and that's when i first saw the scrambled screen and all the various observations along with have not changed at all after flashing twrp.

Right now, i'm not even sure what is an ota update. My phone was just a new one with a stock rom. I reflashed an older rom with lgup as required by this root procedure just before moving on. It was working normally. The latest security patch had to be before 31st dec. 2016, which was indeed the case with the rom i flashed with lgup for this root.
[LG V20 Guides, News, & Discussion] :
i did probably ten times the "fastboot flash recovery twrp...img" with about a minute rest in between continuously and it's not working.
[LG V20 Guides, News, & Discussion] will5:
Well, maybe going back to stock with lg up and starting again is the way to go.

Did you get some text on screen when doing fastboot flash?
[LG V20 Guides, News, & Discussion] :
but the procedure is mentioning something about flashing an image file backed up during this procedure to return the device to stock, so i'm waiting for some answer about this. I have already applied the dirtysanta patch and it seems it's the key point in rooting this device. The back-to-stock procedure described is telling that it's not as simple as reflashing with lgup to return to stock.

yeah it outputs six or more lines:

[1234] Fastboot mode started
[23456] fastboot: getvar:slot-count
[23456] fastboot: getvar:slot-suffixes
[23456] fastboot: getvar:has-slot:recovery
[23456] fastboot: getvar:partition-type:recovery
[23456] fastboot: getvar:max-download-size
[23456] fastboot: download:019cc000
[23456] fastboot: flash:recovery
[LG V20 Guides, News, & Discussion] will5:
I think the back up file was for when we didnt have kdz files available. Or for phones that still doesnt have kdz files available. But dont take it as 100% true.

I didnt use any files for lg up with h910 more than a kdz file.
[LG V20 Guides, News, & Discussion] :
i did the back to stock process using lgup and it worked. The phone is now working as initially.
[LG V20 Guides, News, & Discussion] will5:
So, no need for backup files?
[LG V20 Guides, News, & Discussion] :
it seems no. The phone seems now to be all the same as previously.
[LG V20 Guides, News, & Discussion] Chucknorris1975:
Tried installing dirtysanta yesterday but i keep getting the "unknown con" error. My security patch is 6 November 2017. I rolled back to a earlier firmware, and still the same thing. Any ideas?
[LG V20 Guides, News, & Discussion] will5:
To which one? You need dec 16 security patch.
[LG V20 Guides, News, & Discussion] Chucknorris1975:
So I need the Dec 2016 security patch? Is that correct?

And how would you go about getting the latest security patch AFTER root?
[LG V20 Guides, News, & Discussion] will5:
Yes. You need a dec16 security patch rom. Find a dec16 kdz for your model and downgrade to that. Most jan17 releases are dec16 patch.

Then you do the dirty santa stuff.

Then you update to latest rom using kdzwriter.
[LG V20 Guides, News, & Discussion] p7810456:
Can I flash every partition of the US996 firmware except for boot and then flash the H990ds kernel (mk2000 perhaps?) and Magisk over it without bricking my phone?
[LG V20 Guides, News, & Discussion] will5:
It could work, dont know. Guess is too risky.

Not sure what model you have. But using a kernel for a different model is a bad idea.

The safe way is to use kdzwriter to update a rooted phone.

There are no kernels for your model? Why you want to use different models roms and kernels?
[LG V20 Guides, News, & Discussion] Redline:
No. You cannot. Each model is individually unique, even H990DS phones sold in different regions have a different partition layout. Don't mix and match from other models.
[LG V20 Guides, News, & Discussion] will5:
You can crossflash h990ds different region kdz. But will give you some problems.

I think there is a proper root for us996, not sure what is trying to do. If he has a 990, no point flashing a us996 rom, it will brick. If he has a us996, there is a mk2000 us996 kernel.
[LG V20 Guides, News, & Discussion] geney:
I downgraded all the way to v10c to root. It worked just fine. After that use kdzwriter to upgrade to version H.

BTW, anyone here successfully do a backup from TWRP? 3.0.1.2 particularly. Mine always failed. Need at least a copy of backup. Few days ago systemui FC repeatedly and can't even f@$%king enter into system properly. Ended up LGUP to v10c (directly, with none working recovery of course) and did everything all over. Direct install from LGUP first time my message FC like nobody's tomorrow, until I finally did factory reset from phone settings....
[LG V20 Guides, News, & Discussion] Redline:
Do a backup in TWRP and select everything except system image. Everything else is enough to restore your device to a working state with your data, but I get backup errors when trying system image.
[LG V20 Guides, News, & Discussion] uxairmalik:
have a Lg v20 h990n dual sim.

it is updated to latest security patch.

i want to root it.

can i roll back to older version for rooting?

are there any roms for h990n?
[LG V20 Guides, News, & Discussion] zxcvnmb:
Bounty for ROM

I'm offering a $150 bounty for a Lineage/another open-source port of the H990.
[LG V20 Guides, News, & Discussion] p7810456:
Sorry for not clarifying. I have an H990DS, live in the US and want the US features like VoLTE, which my H990DS does not have, so I want to flash the US firmware somehow so that I can use those. I don't use the second SIM slot or the FM radio.