yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] ogie14:
Thank you for your response, i will try it and give feedback after.

UPDATE:

Thank you very much i finally update from 10b to 10g to 10k ASE but in software info it shows 10e AME for 10g ASE and 10h AME for 10k ASE. Is this normal?
[LG V20 Guides, News, & Discussion] Bonz:
Can anyone kindly help me? After running the kdzwriter -a <kdz_file> command. terminal shows "Failed Mounting system for kmod saving: Device or resource busy" followed by "kdzwriter: Failed while reading kernel module".

When I type the command again, it says kdzwriter: not found.

Btw Im using TWRP v3.2.2-1
[LG V20 Guides, News, & Discussion] Phoenix591:
Add the M flag so it wont try to look for modules since you're reflashing the stock kernel anyway.

kdzwriter -aM kdzfile.
[LG V20 Guides, News, & Discussion] maveric cheng:
I really need help....

can't update to the lastest security patch of H990N. currently on 10b. Always stuck at bootanimation when updating from 10b to 10e :'(
[LG V20 Guides, News, & Discussion] Redline:
Only thing I could think of is going to a version other than 10e. For example, it's suggested not to do huge updates at once, e.g 10b -> 10I. In your case, maybe there's a 10c/d you could try before 10e?

It can take a little while to boot sometimes, I've waited 20 minutes sometimes.

If all else on that front fails, LineageOS has the latest security patches :P
[LG V20 Guides, News, & Discussion] maveric cheng:
Glad to hear from you!

Tried 10b to 10d and waited for 45 mins. Sadly still in the boot animation. Anyways is LineageOS compatible with my phone's version (H990N)?
[LG V20 Guides, News, & Discussion] Redline:
Sure is. Follow the steps in the first post in the thread, you want the H990 download as it's for all H990 variants. Be sure to backup anything you don't want to lose, format /system in TWRP, update TWRP and just generally follow the instructions. It's pretty straightforward, and is a much better, much faster experience over stock in every way.

I also recommend Gamma Kernel.
[LG V20 Guides, News, & Discussion] maveric cheng:
Rocking Lineage 15.1!! Really enjoying the stock android experience...

Again, thank you very much!
[LG V20 Guides, News, & Discussion] karkand:
how long exactly this process taking? About 40 mins now I think.

update:

just stuck on

y

y

y

y

y

then I force reboot to system and it is working & updated.

hope no issue.

thanks
[LG V20 Guides, News, & Discussion] kersian:
anybody tested the tool on v30 yet?
[LG V20 Guides, News, & Discussion] karkand:
H990DS OREO is out now...can I use this method to flash from current nougat to oreo? or i need to clean flash with LGUP?

Could someone please advise?

Thank you.

Just download the TW version which I am currently using is IDN and I got an error below
[LG V20 Guides, News, & Discussion] Kiwironic:
I am having an issue here:

I have used LGUP to refurbish a H990DS using the following kdz:

H990ds10c_00_OPEN_TW_DS_OP_1214

Then used this guide to root and unlock bootloader installing TWRP as well.

Now on TWRP 3.0.2-1 I get this error when trying to run this command:

I tried it with

kdzwriter-20180419.gz

kdzwriter-1.3.gz

and even

kdzwriter-1.2.gz

On TWRP 3.0.2-1 and TWRP 3.2.3-2: 2018-10-06

No luck. Any ideas??
[LG V20 Guides, News, & Discussion] cikenkari:
:cool: try this https://xdaforums.com/v20/how-to/guide-patch-lgup-to-unlock-features-t3652222
[LG V20 Guides, News, & Discussion] mrsdbskn:
I have a LG V30( Firmware v20d, TWRP 3.2.1.0) I want to upgrade to Firmware: v21h and TWRP 3.2.3.0) if I upgrade TWRP and flash the newest kdz with kdzwriter does the phone encrypts his data again and i have to wipe everything? Because when I upgrade the phone first via LG UP and the reflash TWRP 3.2.3.0 it does right?
[LG V20 Guides, News, & Discussion] desireless:
I have the same problem with the SEA version... I'm on 10i and got that "This KDZ file does not appear to be applicable to this device, abandoning operation!" error at the last step :(

Maybe the kdzwriter needs update for it to work? I'm on the 20180419 version
[LG V20 Guides, News, & Discussion] Kiwironic:
I have used the patched LGUP, works well for me
[LG V20 Guides, News, & Discussion] luuhungit:
can not write new oreo kdz file
[LG V20 Guides, News, & Discussion] Migush:
Same problem here. Also can't flash the new Oreo kdz on my H990DS
[LG V20 Guides, News, & Discussion] desireless:
You will lose root if you use LGUP method. You need kdzwriter to update patch and keeping root at the same time
[LG V20 Guides, News, & Discussion] Kiwironic:
Patched LGUP is different as you can select which images to write. Just select the "safe" images: /system, /firmware and /cust.

Link: https://xdaforums.com/v20/how-to/guide-patch-lgup-to-unlock-features-t3652222
[LG V20 Guides, News, & Discussion] Phoenix591:
Actually, they're all fine except aboot (except H918 rooted through lafsploit and US996 unlocked through LG, as in it IS safe for only these two models and circumstances: a special aboot is what keeps DirtySanta root intact), recovery, and optionally laf.

The other important thing about LG UP is it delivers a fully intact stock /system including recovery-from-boot.p which as soon as its booted (unless into twrp) will replace twrp with stock recovery unless booted into twrp and that file is renamed or deleted.
[LG V20 Guides, News, & Discussion] kersian:
Are those partitions sufficient for a firmware upgrade?
[LG V20 Guides, News, & Discussion] Kiwironic:
For security updates for the same version android, theoretically yes.
[LG V20 Guides, News, & Discussion] Migush:
I flashed the oreo modem over the previous nogat modem for my h990ds running Lineage OS 15.1, but it straight up crashes. A full green screen with a partial log (like a kernel crash, but then green) and the last line says "non-fatal". Flashing the nougat modem fixed it.
[LG V20 Guides, News, & Discussion] kersian:
I was looking at the partition list. Only system is the same name but which ones are cust and firmware?
[LG V20 Guides, News, & Discussion] Kiwironic:
Firmware is called "modem"
[LG V20 Guides, News, & Discussion] kersian:
How about cust?

---------- Post added at 01:55 PM ---------- Previous post was at 01:49 PM ----------

Actually, what I'm interested is to be able to dirty flash and keep user data.
[LG V20 Guides, News, & Discussion] Redline:
Cust should just be called "Bloat" since that's all you find there.

You can dirty flash everything. The KDZs don't touch the user data partition, unless you wipe it it'll never be modified, even on a custom ROM update.
[LG V20 Guides, News, & Discussion] kersian:
Hmm, ok.

In this case, I should ask what should I not flash in order to upgrade, maintain root/recovery and keep user data? :confused:
[LG V20 Guides, News, & Discussion] Redline:
You can flash everything. If you read the OP, KDZWriter is designed to update, not overwrite. You can't write to user data so don't worry about that.

By default, you should follow the instructions in the OP and do -a when flashing. Alternatively, as I did when I was using this and was on a stock ROM, do it firstly with -s then again with -m.

This will update your system and firmware/modem. You can also do -c to update the /cust partition which can help with VoLTE for different regions.

As for -k only use it if you're using the stock kernel from the ROM. If you have a custom kernel installed like DOTS, mk2000, etc. then don't do this.

If you read and follow the OP, you'll have no issues at all.
[LG V20 Guides, News, & Discussion] Vortell:
You really seem to know krz writer I want fingerprint reader to work again after installing Oreo hybrid AO, do you know what parts/ commands I would need to restore the functionality? Or maybe even a full 10p us996 rom that's flashable in twrp. I'm anxious to use writer because I have not used it and am not sure how it might mess with the dirty Santa patch. Also I'm on 10p but have not tripped arb1 if op of rooms are to be believed.
[LG V20 Guides, News, & Discussion] Redline:
It doesn't affect the Dirty Santa patch. It won't write to the area where the DS exploit is done from (bootloader).

I don't know for us996, but you need to fully restore a stock Nougat 7.0 ROM and then clean flash to a stock or AOSP (Lineage/ResurrectionRemix) ROM to get the fingerprint working again. The Stock 8.0 bootstack causes the fingerprint to stop working, so you have to fully wipe to get rid of it and then start from scratch.

IMO you should clean flash everything from a Nougat KDZ.
[LG V20 Guides, News, & Discussion] Vortell:
Wouldn't that cause arb1 to happen? Or just use an older kdz? Not sure when it went to arb1. I mean if something goes to bad I need to be able to took back to last brightpoint kdz to unlock bootloader again. Thank you for forming this lg v20 noob.
[LG V20 Guides, News, & Discussion] Redline:
I don't know when it went to ARB1 either. Your safest bet would be to find the oldest KDZ you can for your variant and use that. I've got a H990 so I'm not entirely sure.
[LG V20 Guides, News, & Discussion] sniper9911:
question

i have h990DS rooted dirty santa (since version B) and using mk2000 kernel, twrp latest 3.2.1 , rom version is latest now nougat v7.0

GCC	H990ds10h_00_OPEN_AME_DS_OP_0117.kdz	Android 7.x Nougat	3008153751	2018-03-01

i want to upgrade to oreo stock rom + mk2000 oreo kernel

SEA	H990ds20a_00_OPEN_SG_DS_OP_0920.kdz	Android 8.x Oreo	3011668036	2018-10-09

will this be safe using the kdz method ? will arb change to 1 ?
[LG V20 Guides, News, & Discussion] Redline:
No, ARB will not change. ARB isn't on the H990, if you searched for it you'd know this.

No, you can't use the KDZ Method. You need to flash the Oreo ROM from TWRP.

I don't know if you need to wipe before doing it. Been over a year since I was on a stock ROM.
[LG V20 Guides, News, & Discussion] sniper9911:
thanks i just upgraded twrp and wiped all then installed oreo zip for h990ds and mk2000 1.3 kernel magisk 17.1 ... its working fine here for now
[LG V20 Guides, News, & Discussion] Electrolite_XYZ:
When you say fully restore a stock Nougat 7.0 you mean using KDZ writer for some partitions or using LGUP to go stock and rooting again? I'm having the same fingerprint issue after a failed Oreo flash, even wiping everything using TWRP and installing the Super V20 Nougat ROM didn't help fix my issue (boots fine now but fingerprint is dead).

I tried using KDZ writer but after 5 different KDZ's I just can't make it work, says the file is not compatible with my device (maybe because I'm now using the Super ROM).

I'm afraid that unless I manage to install Oreo I'll be forced to go stock and root again, looking at after a full wipe + data and intalling Super rom didn't help I think even trying yet another ROM won't change anything because this process isn't rewriting what Oreo messed up. Is there any other way to save my fingerprint? Would even updating using kdz writer do the trick? (I don't know if KDZ writer would update the fingerprint part that Oreo messed).

I just want to make sure that there's no other trick I can do before doing the scary process (at least for me) that is ROOTING this phone.
[LG V20 Guides, News, & Discussion] Redline:
If fully wiping the phone and flashing KDZs isn't working, LGUP is the only other option, sadly. It accesses partitions on the phone that KDZ Writer and TWRP don't have access to.
[LG V20 Guides, News, & Discussion] Electrolite_XYZ:
Hahahah I just noticed how you are everywhere in LG V20 forums, thank you so much for helping noobs like me.

Since I'm stubborn I tried one more time, now with some custom roms for the Oreo, we have the RR and Lineage. I'm new and I have no idea which one I should use but I like my second screen so I went with RR and your version of Gamma Kernel after reading you post on the Unnoficial Lineage forum I think (I dont like how the SS crops for example the settings page near camera and crops my notifications so maybe I'll flash Lineage instead)

So I boot past LG and yes! We have full boot. I'm so happy, well now I lost FM radio and my SS isnt the same a fair trade for the fingerprint until I notice that fingerprint still doesn't work, which means I'll have to root my phone tomorrow or wait for a stock Oreo rom to work for me... At least I know that RR is working fine on my phone and I can update directly to it.
[LG V20 Guides, News, & Discussion] Redline:
You're welcome :)

The V20 can be moody, and the best thing for the long-run is going to be a full, LGUP restore to stock and then going through the whole process of getting ResurrectionRemix on your phone.

There IS LineageOS 16.0, WITH second screen support, but there's so far only been a single build and is considered a beta, so I wouldn't mess around with that after all the issues you've had.
[LG V20 Guides, News, & Discussion] Dodgy_Bob:
Good morning folks,

First up, as always, thanking all you devs so very, very much for all the effort and time you put in for the community. I, we, do really appreciate it.

The purpose of my post is just to seek clarification and confirmation before moving forward.

The phone is a V20 H990N currently on stock 10b.

I have followed "[ROOT] DirtySanta comes for the H990" by [MENTION=6984210]emdroidle[/MENTION] (and "Restore v20 to 100% Stock (!!even for bricked devices!!)" by [MENTION=273964]ahlok_hk[/MENTION] as that was needed after I got the static screen first time around!) and thus currently have an unlocked bootloader and ROOT with stock 10b.

I am looking at staying stock - as this is my wife's daily that I need to "support" - so, need everything working but also want to keep the unlocked bootloader and ROOT.

Thus, is the purpose of KDZ Writer to flash back to the latest Software / KDZ without losing unlocked bootloader and ROOT?

Also, if yes, rather than just going to the latest Nougat (10q), will I be able to go to Oreo (20d) and still keep unlocked bootloader and ROOT?

Thank you for your patience and help.

Kind regards,

Dodgy Bob
[LG V20 Guides, News, & Discussion] Redline:
Yes, that's the purpose of KDZ Writer. You use it to update to newer software versions by downloading the KDZs, putting them on your phone and using the phone or PC via adb to update /system and other partitions while keeping root and the unlocked bootloader.

It's designed to update, not overwrite, so root isn't lost by doing this. I personally used it (almost a year ago now) when I was on stock to upgrade from the initial 10c KDZ I needed to use for Dirty Santa, and I think I ended up at 10k eventually, before switching to LineageOS.

As for Oreo, you'll need to flash it from one of the available pre-rooted Oreo ROM threads.

KDZ Writer doesn't work with Oreo KDZs, presumably because they have a different format.

My suggested safest path to take would be to use KDZWriter to update the phone to the latest stock KDZ available for your variant, taking care not to do major jumps in versions (for example not going straight to 10q, you'd want to do it for every couple versions incrementally) and make sure that's all working correctly.

Once you're happy with that, use the updated TWRP you should be using from Phoenix591 (this includes KDZWriter which you can run direct from the TWRP terminal) to make a backup of everything, offload it to say an SD Card (by backing up to it) or PC, and then flashing one of the above mentioned stock Oreo ROMs that come pre-rooted.

Everything you need is in the ROM/Kernel development section :)
[LG V20 Guides, News, & Discussion] Dodgy_Bob:
Excellent!

Thank you very much for the information and your help [MENTION=5988026]Redline[/MENTION]
[LG V20 Guides, News, & Discussion] emdroidle:
I'll need to check on this... When originally implemented only the version 10* KDZ files were available. The error message you're getting is the safety check is failing. This could be a corrupt KDZ file, or it could be version 20a KDZ files differ enough for the safety check to fail. As you're the second report (that I've spotted) there may well be an issue here.

You may also want to get onto a version of TWRP later than 3.0.2-1.

In other news, v1.98 has been released! Due to finally solving a problem I'd been aware of, usage is now simpler! Merely two commands on the device instead of four.

Since there are plans by the LineageOS developers to grab a portion of /system for use as /vendor, v1.98 also features a GPT restoration mode. See notes in the opening.
[LG V20 Guides, News, & Discussion] Redline:
Holy moly. Emdroidle is alive! :D
[LG V20 Guides, News, & Discussion] emdroidle:
I've been being distracted by things, but also quietly taking care of others. LineageOS has been getting patches from me.

My server grew another VM which means I've now got 6TB of space with high redundancy; instead of 500GB with backups, but no redundancy. Turns out a number of NewEgg's third-party sellers aren't selling what they claimed; disks which have been sitting on a shelf for 3 years can be called "new", disks which had been in active use for 3 months certainly can't be called "new".

cust isn't bloat. It has a genuine effect on operation of the device. From experimentation it appears cust can even effects operation of a H990 when running LineageOS (whether it displays "LTE" versus "4G" on the status bar). Though now that you've mentioned that, I need to try booting mine with /cust unmounted and see whether things work better or worse.

Meanwhile /OP really IS pure bloatware.

The GPT restoration modes ("-P" and "-R") CAN effect the size/placement of userdata and will need data restored.

The idea behind -R is it tries to place userdata at lower numbered blocks so if OP or cust is nuked and the space merged with userdata, userdata could be resized larger (filesystems generally support expansion at the end, not at the begining).

Both modes try to honor /cust/official_op_resize.cfg for how large /OP is. Note, taking advantage of this functionality WILL require backup and restoration of /data.

The bad news is the 20a modem firmware is incompatible with some of the 10* firmware. After installing 20a modem firmware, I was seeing modem crashes (green crash screen) with LineageOS 15.1. Do we have anyone with expertise in safely upgrading the others areas, or have knowledge of which direction compatibility tends to run?

("laf" is simply an Android boot image, damage won't cause problems; xbl and xbl2 are bootloader stages before aboot, upgrades are extremely dangerous)

What of cmnlib and cmnlib64? Another poster had stated these were common libraries (plausible given their names), is upgrading them safe?

"hyp" would be the hypervisor and "tz" TrustZone. Would damage to these still allow you to get to recovery or download modes?

I'm working on the next revision of kdzwriter. I may end up releasing a 1.98a which merely knocks out the one safety check, rather than the 1.99 with substantial work towards my goals (the last commit for 1.98 works around a major issue that safety check was concerned with).

Plan is for v2.0 to save a copies of "cust_path_mapping.cfg", "op_list.cfg" and "open_path_mapping.cfg" when writing /cust (to make updates easier to handle).
[LG V20 Guides, News, & Discussion] Redline:
OP is what I was meaning, not cust, my bad.

Been a while since I ran stock. I knew one of them was useless, I remember trying things with it at one stage when I was first experimenting after rooting.

I've been keeping up with the LineageOS gerrit and github, so I've seen however much of your work that goes on there behind the scenes.

I'm glad you're still with us, for the H990 anyway, you were instrumental in allowing us to have what we do today on the V20.

It seems that all that's keeping us from having LineageOS 16.x working properly is again the H990s moody modem (much like when 15.1 first came to the H990).

I sent the requested logs to x86 but I know he's been busy too, and hasn't had time to check the PM I don't think, so let me know if I can fire them over to you as well (he posted in the LOS 16.0 thread a while back asking us to pull files from somewhere in TWRP which would have the reason why we get force shut-downs on the H990 as soon as a SIM connects) but there's evidence and what you could call "solutions" all over that thread, I posted a fairly large result of my own trial and error, the TLDR is that with a SIM in, it shuts down.

I'm aware you're probably handling many different things at once right now though, so no stress :)

Anyway I'm rambling haha. I was previously iDefalt.

Ah, so you're not the only one. I had a similar situation with some drives from Newegg, ended up building a 12TB redundant NAS which worked out well, it's what I do the second screen enabled Gamma Kernel builds from.

Let me know if you need anything or need a Guinea Pig for testing stuff that could break things on AOSP, more than happy to help :)
[LG V20 Guides, News, & Discussion] emdroidle:
Well, 1.98a is now out. The safety check has been cut back a bit so 20a should install fine with `kdzwriter` now. There is also a force option, but please beware that is potentially rather hazardous...

The instructions don't make it obvious, but there are several verbosity levels. "-v" only results in minor increases in messages. Using "-vvvvvvvvvvvv" will likely get you megabytes of output merely from simple operations.

Was a case of grabbing source for LineageOS 15.1 meant needing around 50GB more space. When your main system only has 500GB that much more space was an issue. Then that upgrade took a while.

Now I've got a list of things to add to `kdzwriter` before declaring v2.0. My main goal is preserving files in /cust when writing cust. This should simplify things for using out of region KDZ files.

Then I've got a rough guess as to how to create rescue SD cards. These will need preparation before disaster hits, but should function as a lifeline if you're prepared. (this is tenatively named "sandwich" as in "hero")
[LG V20 Guides, News, & Discussion] babihutan99:
Im using kdzwriter 1.98a.tar.gz

From twrp 3.1.1

Gunzip done

Chmod 755 done

kdzwriter -a /external_sd/10g.kdz

Theres no feedback.......

Is this normal?

I flash kernel dots and clear dalvik chache and then reboot system

On my software info its still 10d sea

Edit..

Nevermind, im usinf adb commands on my pc and all went well..thanks
[LG V20 Guides, News, & Discussion] sptw:
Hi there emdroidle.

First of all thanks very much for all your efforts on it.

Second, i need a clarification on your statement above.

Using 1.98a means that i can upgrade from nougat 10g to 20a Oreo using kdzwriter, or i still need to do a fresh install Oreo firmware?

Thanks in advance.

In time: I am on nougat 10g with root and jahlex kernel v1.4 .
[LG V20 Guides, News, & Discussion] :
did anyone try to upgade to 10h with kdzwriter, if yes i'd like to know if it worked without any problem. I'm currently using 10g and i'd like to upgrade to 10h.
[LG V20 Guides, News, & Discussion] Redline:
Do a full TWRP backup first, beforehand, and you'll have nothing to lose if something doesn't seem right. You can simply restore to your backup.

Looking at the KDZs I have downloaded from when I updated way back when I was on stock, I went from v10g to v10k (different regions) and that worked fine.

Remember that KDZWriter is designed to update, not over-write, so it's pretty low-risk overall.

A backup like I mentioned for good measure never hurts.
[LG V20 Guides, News, & Discussion] :
my h990ds is rooted and while i had the 10c as required by the root tutorial on xda, i upgraded to 10f and 10g with kdzwriter. I noticed recently that booting to recovery opens the "factory reset" prompt, and there is no way to boot twrp, so i'm wondering whether kdzwriter will have not overwritten the boot load area of the memory when i used it to upgrade to 10g. Someone in another thread told that kdzwriter does not have the capability to write to recovery. So, what wiped twrp from recovery on my device is still unknown.
[LG V20 Guides, News, & Discussion] :
since i upgraded from H990ds10g to H990ds10h FM radio is not working any more. After upgrading i did a data dalvik cache wipe. Did i need to do a customised wipe including any other folder?