yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] emdroidle:
Hmm, I'm unsure I'd ever tried this. So for the heck of it:

$ fastboot getvar unlocked
unlocked: no
finished. total time: 0.058s
$

So the DirtySanta bootloader always reports as being locked, but doesn't enforce valid signatures. My guess is when you were trying to go back to stock you didn't wait long enough for `fastboot flash aboot abootbackup.img` to complete, as such both you and [MENTION=4008040]Hamodi[/MENTION] still have the debug bootloader in place.

Which way do you want to go right now? Do you want to get back to stock? Do you want to get root?

If you want to go back to stock, method 2 can work. The key point is to be very generous with those waits! The debug bootloader seems to be the most temperamental portion of the entire process, so waiting longer keeps it reliable.

If you're still interested in root then it sounds like you need to start at point 16 in the instructions. Like above, be patient keeping those delays long is crucial to the process being successful.

Previously I'd merely been pointing to the dorimanx exfat when pointing at my source tree. The "texfat.ko" module included with my kernels is not the Tuxera texfat module; it is in fact the dorimax exfat module renamed from "exfat.ko" to "texfat.ko".

If you look at fs/exfat/exfat_super.c there are two spots where it conditionally compiles based on whether CONFIG_MACH_LGE=y. In our case it is pretending to be the Tuxera module. Most of the exfat implementations out there include some support for pretending to be Tuxera module.
[LG V20 Guides, News, & Discussion] Leicxan:
Thanks,

Flashed your latest test kernel on my h990n, tested and confirm working features list below.

fm & bluetooth working,

camera auto focus working

Vedio playback and hw decoding working

Selinux is default enforcing.

For the system update, I wondering if we can use kdzextractor and get the system.img then flash it via twrp, flash IMG file on /system.
[LG V20 Guides, News, & Discussion] dadme:
Just flashed last "universal" kernel on 990DS.Thanks emdroidle!

Video problem is still here!

Now i like to see a custom kernel with:

- Adreno idler

- Adrenoboost

- KCAL

- SafetyNet bootloader workaround

- Exfat Support

- SIO, FIOPS, bfq, cfq, deadline, noop IO scheduler

- ondemand, interactive, performance, conservative,ElementalX,Blu_active....

- bic, cubic, htcp, reno, westwood...

- No Static Screen
[LG V20 Guides, News, & Discussion] emdroidle:
That would likely work; one trick is handling /system/lib/modules since you need to preserve that if you can (reflashing the old kernel zip works, but is inelegant). I'm starting on a tool which can selectively extract a KDZ on the phone itself. One advantage of this approach is it will be able to TRIM unused areas.

That is a different department from me. I'm aiming to stick pretty close to vanilla (perhaps LGE-flavored vanilla). I'm more for UDF and extra security (protecting the system from the modem type, not more user lockdown). I will try to help other's efforts along.
[LG V20 Guides, News, & Discussion] omnimann:
Well this is what i get trying either way ( aboot or twrp):

C:\adb>fastboot flash aboot abootbackup.img
target reported max download size of 536870912 bytes
sending 'aboot' (2048 KB)...
OKAY [ 0.076s]
writing 'aboot'...
FAILED (remote: device is locked. Cannot flash images)
finished. total time: 0.097s

fastboot looks like this https://imghost.io/image/ekurO
[LG V20 Guides, News, & Discussion] kingnose:
[MENTION=6984210]emdroidle[/MENTION]

I just got a kernel crash using the latest kernel (was working fine, then suddenly crashed)

http://imgur.com/a/CWMw1
[LG V20 Guides, News, & Discussion] dadme:
Video freeze is here, with new kernel. Tested few hours after flashing....
[LG V20 Guides, News, & Discussion] agamemnonn:
noob question. I am gonna try on h990tr, but i could not find the 10d kdz which is before 2017:

https://lg-firmwares.com/lg-h990tr-firmwares/

How can i find this 10d kdz?
[LG V20 Guides, News, & Discussion] emdroidle:
Yeah, that does pretty clearly seem to be the genuinely locked bootloader. Question is, what is the full state of your phone and how did your phone manage to get there?

The situation you seem to be in should be impossible to reach. Your phone reporting as a US996 strongly suggests you've got the DirtySanta bootloader. The above meanwhile strongly suggests you've got the regular locked bootloader. About the only way to reach such a state would be to have partially the DirtySanta and partially original bootloader.

Problem is, this should be impossible. In order to fully secure the phone, the bootloader would have to be verified by signature. Yet mixing the two bootloaders together would invalidate any signature. This seems to leave the explanation that the bootloader (aboot) is not verified at all! Yet if this is the situation, then it should be possible to simply replace a few bytes of the bootloader and force it to unlock. Problem is confirming this requires several V20s we can freely brick.

I guess I have to ask for the heck of it. Have you tried completely turning off your phone, all the way to pulling the battery? Have you tried rebooting your computer? Have you done both at the same time? Does it really still show up as a US996?

That gets us some partial information on what happened.

ipa_q6_pre_shutdown_cleanup()
ssr_notifier_callback()

That means something happened with the modem. I'm unsure what exactly "SSR" stands for, but it is something along the lines of a reset mechanism for the modem. I sincerely hope it doesn't recur. I hope this isn't a precursor of another LG bootloop. :(

I do not know. :( This may mean you're not going to get into a H990TR before another kernel exploit comes out. :( I would have liked to find out whether this process worked for you.
[LG V20 Guides, News, & Discussion] dadme:
Leicxan, could you confirm that video recorded with camera can be played without static image at start, but not in a short time after reboot, after a while, let say, one hour?
[LG V20 Guides, News, & Discussion] AlfaM03:
Hi guys. Anybody having problems with the auto-rotate or any of the sensors? Mine aren't working.
[LG V20 Guides, News, & Discussion] Leicxan:
The video can be played immediately after phone start. Didn't try this when the phone has booted a while. Will check video record and playback when I touch the phone. Cuz my wife use this v20 as a daily use phone. Now she notice a fast battery drain with dirtysanta hacked kernel.:silly:
[LG V20 Guides, News, & Discussion] UL7RA:
Eagerly waiting for an update, too. So the new update drains the battery? Maybe she's using a Facebook app thing, or maybe the Google Services went haywire again.
[LG V20 Guides, News, & Discussion] Leicxan:
Update, I tested vedio playback, the phone has 5 hours uptime. Got a static image when play video, used stock video player, then I tried MX Player, used both HW and HW+ mode in MX Player, same result.

For the battery drain, I will continue test it. I installed brevent this software has similar feature as greenify, let's see how's the battery going.:rolleyes:
[LG V20 Guides, News, & Discussion] eladeb:
I understand from the thered that the exploint doest work on 990 ss right?
[LG V20 Guides, News, & Discussion] darkstorm99:
How safe is reverting back to stock using method 1? I am rooted with the dirtysanta bootloader on 990ds but i do need a working video camera. I've read of 2 people who have bricked phones in this thread from trying to go to stock, any successes?
[LG V20 Guides, News, & Discussion] faeterov:
I've gone from root to stock 2 times now, no problem.
[LG V20 Guides, News, & Discussion] emdroidle:
There seem to be a few reports of problems, but nothing consistent enough to pin down yet. The theory of needing newer firmware if phone ever had newer firmware has some merit. I am targeting this, but don't have a time-frame for completion right now.

I've done it a few times. Appears the most unreliable portion of all in this thread is doing flash writes via the bootloader. The reason I recommend method 1 is it bypasses that. I believe the two brick reports were using method 2, which has that at its core.

I'm pondering recommending 1b over 1a. They amount to the same thing, but 1b may be handier due to relying on the on-device backup, rather than the backup generated during root process.

I didn't know the device H990SS existed.

Depends upon which variant you have. The earliest known H990TR firmware is 10e, by which time the exploit was fixed. If you've got one of the H990 variants, then there is a very good chance an early one is available, if you've got one of the H990x variants your odds aren't so great.

You should likely state exactly which device you have and what the firmware date is. If you've remained with the original firmware and haven't allowed your phone to update, it is possible you've got a firmware earlier than anyone else and finding the KDZ will benefit everyone else with your variant.
[LG V20 Guides, News, & Discussion] malifact:
Firstly, thanks for developing the root for the H990. I would like to warn others who have the Taiwan dual-sim model. My security patch level was post Dec 2016 and so I attempted to downgrade my firmware as per the instructions on the first page. Unfortunately, I either get the error code 0x2000 or the refurbish process starts and then crashes. I was really lucky not to brick my phone.

I should add that my phone did not ship with a security patch level post Dec 2016; it only changed after I upgraded the firmware a while ago. Anyway, I have still paid the bounty I pledged in the other thread, as it seems this is working for other people.
[LG V20 Guides, News, & Discussion] eladeb:
SS foe h990 singe sim (:

---------- Post added at 09:19 AM ---------- Previous post was at 09:18 AM ----------

SS for h990 single sim.
[LG V20 Guides, News, & Discussion] theleftykid:
Today my phone just got into GREEN SCREEN error/crash. It talks about something wrong with RAM. Just wandering if this is related to kernel error? But I just rebooted it and works fine again.
[LG V20 Guides, News, & Discussion] whc.faith:
I own H990DS SEA version. I've followed the procedures, but at this step:

Type "run-as con" <-- If you get unknown package error, means your latest security patch patched it out; go back to step 3. LGUP should be able to downgrade you to an earlier firmware update.

I got the unknown package error, although I've flash it to v10c-SEA (before 2016-12). Any idea?

Note: I choose 'upgrade mode' at LGUP, since 'refurbished' given me an error. After that, I did a factory reset.
[LG V20 Guides, News, & Discussion] emdroidle:
Most of the green screens I encountered during development were watchdog timeouts. I'm fearing my starting branch point was noticeably suboptimal. Problem is this needs beating the kernel tree into submission. :(

Try going into "About phone", what security patch level is mentioned? This behavior suggests you're past the DirtyCOW patch, despite being on a version which shouldn't be past the DirtyCOW patch. This is rather odd.

Better to type "H990 single-SIM". I'm pretty sure all devices with the designation "H990" and no additional letters are single-SIM, but please keep to the actual phone designation. Referring to "H990SS" reads like there is an "SS" variant of the H990, whereas "single-SIM" is clearly indicating the phone designation is "H990" and "single-SIM" is self-explanatory.

It is quite likely the kernel zip on the opener of this thread is compatible with the H990 single-SIM, but so far there no one has reported complete success. Until someone reports a definite success or failure, we don't know. The big question is whether a December 2016 KDZ is available for you.
[LG V20 Guides, News, & Discussion] dadme:
Emdroidle, it is possible to flash (crossflash...) on H990DS, by following the example here http://xdaforums.com/showpost.php?p=71084475&postcount=2326 a rom for H918, for example WETA 5.0.7 followed by kernel h990-kernel.zip?

No news about video recording that no longer works after a while? ...
[LG V20 Guides, News, & Discussion] stirfrybubbles:
is it possible to copy necessary files to the device itself instead of an SD card? first time rooting an LG since my f320k G2 way back, previously had a OnePlus one which was easy af and didn't even have expandable storage so I don't have a SD card handy. TIA
[LG V20 Guides, News, & Discussion] emdroidle:
Depends upon how aggressive they were about removing unneeded extra bits, and how many extra bits were present in the first place. There is a good chance the H918/US996 images never had dual-SIM support, or those pieces were removed. If so you'll definitely lack the dual-SIM support.

If you're only using a single SIM, I'd give 50/50 odds of success. Ultimately I don't know. You might ask the WETA author to make a dual-SIM device version of the software.
[LG V20 Guides, News, & Discussion] kingnose:
Strange seeing how so many people got camera focusing problems and I never had the problem (went back and forth from stock to custom kernel), while no one had screen freezes while I always had the issue...

I sadly had to restore back to stock due to unpredictable freezes that could only be solved by pulling the battery :/

Mad props to [MENTION=6984210]emdroidle[/MENTION] and the devs that helped him along the way (dirty santa, etc.), I really did enjoy a few weeks with no ads on my phone :)

Method 1a worked well for me restoring back to stock.
[LG V20 Guides, News, & Discussion] maciozo:
Does anyone think it would be possible to return to the unrooted stock ROM whilst keeping TWRP? I considered extracting the system partition from the H990DS kdz file, and just flashing it with TWRP.

I'm also having camera focus issues, hence why I want to return to stock.
[LG V20 Guides, News, & Discussion] faeterov:
[MENTION=6984210]emdroidle[/MENTION] has stated he is tryibg to get just that.
[LG V20 Guides, News, & Discussion] AlfaM03:
Has anyone tried updating while rooted. Will it unroot my device? Thanks! And reaaally great work!
[LG V20 Guides, News, & Discussion] emdroidle:
If it worked, I would expect it to remove root functionality.

Define "return to the unrooted stock ROM whilst keeping TWRP".

Depending on what you're thinking the answer could be yes or no. Having TWRP available requires the DirtySanta bootloader, at which point you really want the replacement kernel to get rid of the static, at which point root is pretty well already there.

Using one of the many tools to extract an image of /system from a KDZ file and flashing that over /system, though is entirely reasonable. One issue though is you will either need to flash h990-kernel.zip again after flashing the new /system image; or else you will need to preserve the contents of /system/lib/modules (the kernel modules won't be compatible between kernels).

I'm working on a tool to accomplish this task on the phone, but it is complicated to automate (mine will also include the feature of TRIMing free space).

My only fear is about compatibility between the data on /system and the various other partitions. (does OP_T need to match? what of apdp and msadp? what of cust and sec?)
[LG V20 Guides, News, & Discussion] CM-Tester:
Hello and thanks for the great work...

IF we update via OTA AFTER rooting,- can we root simply again with your method ?

BTW. Does it make sense, which software version is on the phone, BEFORE rooting ?
[LG V20 Guides, News, & Discussion] dadme:
If you update via OTA after root is almost sure that you lost root, TWRP and almost sure you softbrick the phone. OTA write stock recovery, and probable stock aboot.img who may conflict with unlocked bootloader... So, if you have root, block OTA.
[LG V20 Guides, News, & Discussion] darkstorm99:
I am in the process of reverting to stock. Ran the commands in 1a. I'm now in LGUP. It recognises the device as a h990d (phew, but no mention of a DS). Trying to reflash firmware and I get the message:

Error 0x2000 h990ds10d file does not support refurbish process

I was on 10d rooted. Trying to use the same 10d file that I used to downgrade firmware.

I've read above that someone in this thread had reverted to a lower firmware whilst trying to downgrade, that they chose the Upgrade option. For my situation, should I try the upgrade again, or should I try downloading and waiting forever for the 10e to finish downloading.
[LG V20 Guides, News, & Discussion] dadme:
Just check "Upgrade" not "Refurbish" on LGUP.
[LG V20 Guides, News, & Discussion] darkstorm99:
Perfect, thanks. Works well. Some nervous moments as it sat forever at the LG screen. Good news is also that all data is still intact. As I've gone from 10d rooted to 10d non rooted, I will test the camera freezing issue when on stock, just to test emdroidle's theory that newer firmwares correct the freezing issue. I had the issue under 10d rooted.
[LG V20 Guides, News, & Discussion] MR.EXCEPTIONAL:
Please prepare this method for phones with after December 31 Builds ...

I don't want to downgrade my phone

The previous build had a lot of problems and bugs !

Thanks
[LG V20 Guides, News, & Discussion] darkstorm99:
Further to this post, I have no issues with freezing on 10d unrooted even hours after a reboot. My phone also came with 10d. Not sure if this helps.
[LG V20 Guides, News, & Discussion] me2151:
Cant.
[LG V20 Guides, News, & Discussion] shivaagarwal1:
No custom ROMs yet?
[LG V20 Guides, News, & Discussion] BarryMe:
Current bugs in this DirtySanta version?

Are there any significant features not working - like FM radio - or other major bugs in this application of the DS root on the LG V20 H990?
[LG V20 Guides, News, & Discussion] -laughingman:
Video recording
[LG V20 Guides, News, & Discussion] BarryMe:
No Video recording?!

That's a MAJOR BUG. Glad I asked. I think the hacker. whom we are grateful to in any case, had best mention this AT THE TOP of the instructions ;)
[LG V20 Guides, News, & Discussion] AlfaM03:
Hi. I've been using my rooted h990ds for a while now and I noticed two problems:

1. Video cam problems-- takes stills with audio no instead of an actual video

2. My phone resets to recovery every night. Every time I wake up in the morning to check my phone, it's on TWRP. Every night. I'm not sure if it's a scheduled boot to recovery and how to fix it. :/
[LG V20 Guides, News, & Discussion] kingnose:
No, that is not an issue that is for everyone. I myself had NO ISSUES WITH VIDEO RECORDING and anything else except I had this problem where the whole device would freeze and become really hot draining the battery (which was the reason I returned to stock).

So no, it is a matter of luck whether video works or not, so you have to try it out for yourself.
[LG V20 Guides, News, & Discussion] emdroidle:
According to [MENTION=4591212]me2151[/MENTION] there is an effort to crack Download Mode, at which point we would need very minor adjustments to the procedure to root a later version. Alternatively work is being done on upgrading the on-phone image via KDZ file which would allow upgrading the phone afterwords.

(if Download mode gets successfully cracked, this should also solve the problem for the H990TR)

Depends upon the definition of "helps". This suggests the freezing problem you were seeing is an issue with the kernel. This increases the importance of updating towards the head of LineageOS's tree.

Naturally I hate you since this means this is my problem, but don't let that get to you (I'm exaggerating here, don't worry :)).
[LG V20 Guides, News, & Discussion] PinkOstrich:
Video recording breaks for me when my device is rooted. After flashing unSU it works fine and dandy.

Really wish I can keep this device rooted and enjoy video recording. Methinks this should be prioritized until custom ROMs and the like become available for the device. Ya know, just to tide some of us over until then.

Over and out, captain.
[LG V20 Guides, News, & Discussion] darkstorm99:
That's interesting. Twrp still intact and working? This the app you are using: https://xdaforums.com/showpost.php?p=63615067 ?

May be a decent half way point for us to keep video recording working, and only activate root when needed. Saves the need to run the potentially hazardous return to stock instructions every time.
[LG V20 Guides, News, & Discussion] PinkOstrich:
Edit: It seems this doesn't work

So in a bout of frustration over having to decide between video and root-eo, I have decided to experiment. No handlebars!

I flash unSU, then I wiped cache/dalvik, then I flashed Magisk 13, but Magisk was like "no no you can't do that your boot.img shows signs of modification", so I flashed my boot.img backup, then I wiped cache/dalvik, then I flashed the kernel zip found in this thread's tutorial, then I wiped cache/dalvik, then I flashed Magisk and Magisk went about its business without a fuss, then I wiped cache/dalvik, then I rebooted, then I waited for my phone to tidy its business or whatever it does after you fiddle with its internals.

Then what a delight, it made my night! Root and video, both working just right!

Note that I don't condone that anyone follow these steps or anything, because I'm an amateur and I probably violated several intergalactic Android modding laws in the process. You will probably break your phone. I take no responsibility please don't do this god

Now if you'll excuse me, I'm going to see if the town circus has any openings, what with all the hoops I've been jumping through all night.
[LG V20 Guides, News, & Discussion] dadme:
Please verify video recording after phone settle few hours. And please post your backup of boot.img, I just want to make a try with Magisk 13.2, but I don't have made a backup.
[LG V20 Guides, News, & Discussion] PinkOstrich:
Settle? My tele-computer is perfectly relaxed, it is! Besides, I noticed the root-eo issue immediately after rooting using the traditional SuperSU method; it didn't need time to spontaneously manifest. As of right now, everything is functional, yes sir.

Also, aren't the boot backups like phone-specific? Or are they like blood types? Because if so, my blood type is H990DS, and I'm not sure if that's yours as well. Even if it is, I am not comfortable with sharing my cherished phone's boot image. I asked it, and it wasn't quite up to the idea, and I'd rather not violate its sense of privacy. I hope you understand.
[LG V20 Guides, News, & Discussion] dadme:
Too much sarcasm. However, blood groups are 4, and LG v20 are 9 different types. This thread is about DirtySanta on 990, and yes i have 990DS. You could specifuy what magisk version, and if you can, upload boot.img?
[LG V20 Guides, News, & Discussion] PinkOstrich:
Welp, it seems that my camera has decided to die regardless. Phooey.
[LG V20 Guides, News, & Discussion] dadme:
Your sarcasm probably killed her.....With magisk i make some tests, video recording is working 20-30 minutes after reboot.

When i open static video in mx player it play but with slow motion speed with software codec, so it's a hardware acceleration bug....
[LG V20 Guides, News, & Discussion] Hamodi:
I just got my phone back from repair under warranty after i brick it .

Will wait for stable root method so i dont brick it again
[LG V20 Guides, News, & Discussion] PinkOstrich:
Hey, cut the sass, buddy. I wasn't being sarcastic er nothing, ya hear?!

And yeah, [MENTION=6984210]emdroidle[/MENTION] person, the hardware accelerating is a bug thing! Please fix.

But no seriously, for us unlucky H990 owners this is all we have to tide us over, so if you can at least get this root method stabilized for us before venturing off to complete other projects I would truly appreciate it <3
[LG V20 Guides, News, & Discussion] UL7RA:
Anyone knows how to update to Magisk 13.3 with this? Do I just restore the boot image it created when I installed 12.0 and then flash 13.3? On the official thread it says that I need to remove any other root methods, but I'm not certain on what I should do. I would also appreciate a fix for the video recording. Thank you in advance for your answers!

Edit: I forgot to mention that a few days ago, when I tried updating to 13.2 with the Manager, it failed and would get stuck in a bootloop when I restarted.