yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] Ironman1965:
Glad to hear someone is having success. :good: I, however, am not. Spent the better part of a day trying different scenarios to see if I could make this work. Here is the specs, H990N, Rooted (Magisk), TWRP 3.0.2-1, FW 10b.

Here is what I have tried with kdzwriter 1.2 and 1.3.

Both in Linux and Windows 7 (Completely different computers)

Update fully installed system FW 10b > 10o ... stuck at bootanimation > Req battery pull > Restore nandroid

Update fully installed system FW 10b > 10e ... stuck at bootanimation > Req battery pull > Restore nandroid

Update fully installed system FW 10b > 10d ... stuck at bootanimation > Req battery pull > Restore nandroid

Update factory reset system FW 10b > 10o ... stuck at bootanimation > Req battery pull > Restore nandroid

Update factory reset system FW 10b > 10e ... stuck at bootanimation > Req battery pull > Restore nandroid

Update factory reset system FW 10b > 10d ... stuck at bootanimation sometimes window blanked > Req battery pull > Restore nandroid

Also tried above with SuperSU root and alternate kernels with same results

These are the commands (have renamed kdzwriter.gz to kw13.gz and my .kdz's to update-X.kdz with X being the letter of the ver)

Just remove ./ for windows

./adb devices

./adb push kw13.gz /

./adb shell

gunzip -c /kw13.gz >/sbin/kdzwriter

chmod 755 /sbin/kdzwriter

umount /system

ln -s /sbin /system/bin

kdzwriter -a /external_sd/update-X.kdz

Unplug and reboot system

Have I missed anything?

Oh yeah, one thing of note: When I do a nandroid restore I have to restore Boot and Recovery together first, then individually restore, System, System Image, then Data, followed by Cache and EFS together. Any other way seems to fail. :silly:

Gotta admit I am getting pretty frustrated with this. :mad: Would like to get this figured out. Any help would be appreciated.

Just tried writing with -s -m and no luck.
[LG V20 Guides, News, & Discussion] alldine345:
anybody has KDZ for 10j ? some unroot people already got update this morning
[LG V20 Guides, News, & Discussion] xdav20:
Keep your eyes on this page. The page is for H990DS only. 10j already is listed for certain regions.
[LG V20 Guides, News, & Discussion] alldine345:
i've been checking those page since this morning but none available. as soon as you mentioned it those firmware appears :eek: sadly only india/indonesia/filipina available this time while my devices were Singapore. guess i'll wait till next morning
[LG V20 Guides, News, & Discussion] ahmedyar91:
Hi [MENTION=6984210]emdroidle[/MENTION]

I was updating Magisk,

During uninstall process, the internal storage has been encrypted.. and sadly i lost all the data.

after performing reset the OS is also erased.

but the twrp is there..

how can I install the OS with KDZ writer, with what option to chose.
[LG V20 Guides, News, & Discussion] xdav20:
[MENTION=3980243]ahmedyar91[/MENTION]

After a major change to the firmware that you wish to restore to either a previously TWRP backup or to use kdzwriter to start clean again you must do a Factory Reset and Format Data. Then reboot the recovery before do anything else.

I highly recommend to do it properly once, so you can always recover from any bad circumstances.

1. After installing the recovery for the first time and performing Factory reset and Format Data, before anything else, you must backup the Firmware and keep it safe on your external SD. This is your lifeline if don't wish to repeat the tedious work to install recovery again.

2. run kdzwriter -a -k

3. Flash your choice of kernel, followed by SuperSU/Magisk

4. Reboot

The -k flag in your case would fail if you have a custom kernel installed at the time. This is why restoring the untouched 10c, in step 1, would make life much easier.

Try a Factory reset, Format Data, reboot recovery, and then kdzwriter -a. If still you have problem then you will need to restart by flashing 10c by LGUP again. Follow my instructions in this link and do it properly once to avoid headaches in the future. Read the entire post, including the update part. Follow my instructions in this thread to install kdzwriter.

When you have a 10c backup, with no 10f or 10g bacakups, then the steps are:

1. Factory Reset, Format Data, Reboot Recovery

2. Restore 10c backup

3. kdzwriter -a -k

4. Install kernel, install SuperSU

5. Reboot system

When you have a 10c backup, and a good working 10f or 10g then the steps are:

1. Factory Reset, Format Data, Reboot Recovery

2. Restore 10c backup

3. Reboot Recovery

4. Restore your good 10f/10g backup

5. Reboot system

Important Note:

When you are backing up any firmware higher than 10c make sure no security option was setup i.e. Password, Pin, Fingerprint, and etc. I have had a bad experience where I could not log back and decided I'm not going to risk it again. However, you can protect your backup by means of encryption option of TWRP. Good Luck.
[LG V20 Guides, News, & Discussion] alldine345:
succesfully installing Indonesia 10j on top of my 10g singapore. only flashing /system and /modem. now my phone booted up with 10j SEA ( which is actually didnt exist until now )
[LG V20 Guides, News, & Discussion] shouk_1987:
Worked for me as the OP instructions failed for me and dunno why, Brilliant dude :)

I am now writing KDZ for 10g for AME region with options -aM and then will flash Kernel werewolf with no rtcd then flash SuperSu

Hope everyhting goes well
[LG V20 Guides, News, & Discussion] shouk_1987:
Hello All

I have susscesfully rooted and updated to 10g AME via kdzwriter

One thing i was not aware about was the difference between supersu and magisk where magisk hides root while supeau do not and makes my very important banking app seeing root and not working

I want now to convert root from supersu to magisk but afraid to mess up and afraid to get to a bootloop or wipe data

I want to know the correct instructions and their correct order so i can convert to magisk

Note : i havenot flashed xposed zip yet on my current setup

Thanks a lot for efforts
[LG V20 Guides, News, & Discussion] hotcell:
Kernels crash on KMZ copy

This worked fine with argument -a to update from 10d to 10g.

All the steps were:

1. LGUP 10d from download mode (press UP button after attaching battery then plugging USB-C )

2. DirtySanta

3. Right to TWRP and installing kernel and SuperSU (looks like still more compatible than Magisk with Titanium Backup)

4. Then Android Terminal apk in and KDZ writer to update 10d to 10g.

I've no idea why that can't be an apk with simple KDZ file picker and a few options to choose though...

Anyway, the latest kernels (tested on H990ds 10d with kernels DirtySanta-h990-1.2-u721-v10g and LGH990-stock-jahlex-0.1) are showing Kernel Crash when simply trying to copy a KDZ file from external_sd subdir to its root!

They are crashing also when coping happens in TWRP 3.0.2.1 (TWRP 3.1.1.0 not tested as it fails when used in DirtySanta procedure, had not responsible to touch screen after it shows password prompt when starting, when doing virgin 10d root), so it's not because of outdated LG File Manger. External SD is Samsung 128 GB rather speedy UHS-1 and used as is without extra formatting.
[LG V20 Guides, News, & Discussion] Redline:
The current kernels all have various problems with external storage, both with the phone and when plugged into a PC. I remember looking through a GitHub of someone that was working on updating our Kernel and seeing it fixed, but it hasn't been released yet.

You should try the new kernels released by [MENTION=1657835]jahlex[/MENTION] in the Root comes for the H990DS thread on page 124/125 I think. I'm using his latest fix one and haven't got any problems. That, or his stock one might work for you. I've never personally had any problem other than the phone formatting my SD Card as FAT32.
[LG V20 Guides, News, & Discussion] hotcell:
one of two kernels has -jahlex name in its file, the other one is newest DirtySanta's 7.2.1 (which I keeping for now). As to errors, just try to copy some over 2 GB files around your external SD and see what happens :eek:
[LG V20 Guides, News, & Discussion] Choppers.py:
downgrade

Hello, can downgrade mi lg V20DS with this tool?
[LG V20 Guides, News, & Discussion] xdav20:
[MENTION=6984210]emdroidle[/MENTION]

I hope this post finds you well.

I have spent sometime figuring out how I can make using kdzwriter easier to use. At the time of writing this, kdzwriter required installation per usage from TWRP recovery. With my installation method, I removed the requirement of a Windows machine. Then still, copying, setting the file permission, and executing the ln command is too tedious when a user is in experiment phase with the firmwares.

As you, probably, know I'm a fan of kdzwriter (Taylor Swift, who?) and found it extremely useful. In my opinion, it should be an integral part of the current rooting method, DirtySanta. As soon as I realised osm0sis's AIK tool unpacks recovery images too, I had the idea to add kdzwriter to the recovery making installation per usage totally redundant. This was super easy by AIK, matter of unpacking, copy kadwriter binary to the /sbin, and call repackimg.bat. That's all to it. By reflashing the new recovery from existing recovery, I have immediate access to kdzwriter after executing:

ln /sbin /system/bin

Most of my time was spent figuring out how to remove the need of above code without a success, for now. I discussed the matter with [MENTION=4544860]osm0sis[/MENTION] and he might have a solution in AIK's next release.

I cannot upload the patched version of recovery to share it with everyone.

- Didn't want to do it without your permission first

- I cannot upload more than 8MB for now

- I do not want to upload it to the third-party sources as the file, at one point, will eventually be removed

Any new user rooting their phone will have access to kdzwriter out-of-box and existing users can reflash the recovery to make kdzwriter stick perpetually.

The decision is yours.

As part of my experiments and something I'm working on, I also made kdzwriter part of system's /sbin too. Since /cust partition is very small, is there any way kdzwriter can be enabled to write the files to an user-specified location instead? Obviously when is used with valid flags only (i.e., -c, -O) option. Example:

/sbin/kdzwriter -c -F /storage/emulated/0/cust

If I may imply the following example:

/sbin/kdzwriter -O -F /storage/emulated/0/OP

The goal is, not booting to TWRP for small jobs. With long boot time of a rooted LG V20, anything helpful will count. Thank you.
[LG V20 Guides, News, & Discussion] xdav20:
Late reply but here it is.

I wouldn't recommend it. When your boot image version is higher than the system version you might encounter unpredictable results.
[LG V20 Guides, News, & Discussion] hotcell:
Thinking further, why not to make '@KdzManager.apk'?
[LG V20 Guides, News, & Discussion] lyrical1278:
Just want to say thank you for this tool. I recently got the V20 through Amazon, they sent me a 990DS, and I am loving the phone thus far. Rooted 10d and now I am on 10g rooted.
[LG V20 Guides, News, & Discussion] bond32:
So, on the Verizon variant, the latest KDZ is available. How would one go about upgrading to that 17A system and potentially kernel if stuck on an older version of software but with root access having done the exploit?

In using KDZ tools, I see many different "system.bin" files when I extract the KDZ. Using the "Merge System-bin" doesn't seem to work, fails to output the file. I select all the system files, however it fails to merge them (unless it takes a while).

Is the alternative to use the KDZ Writer tool? It would be great if I could potentially have the system image for the latest 17A so I could simply flash that in TWRP and maintain root access.

Edit: I'm dumb. I did not extract the DZ file.

I was able to extract the KDZ. Now that I have the files, what is involved with flashing the modem/firmware or is it even worth doing? Just rename the "modem.bin" to "radio.img"? Sorry for the dumb questions...
[LG V20 Guides, News, & Discussion] xdav20:
What kdzwriter does is very different than kdz extractor tool which is a windows tool.

You would use kdzwriter to directly write to the /system partition (upgrade), by reading the specified kdz file, while maintaining all other critical partitions unmodified. This makes kdzwriter a very valuable tool for us.

You can find my post about an easier installation method which currently is per usage.

https://xdaforums.com/showpost.php?p=74023124&postcount=43

The -a flag writes to safe partitions, includes /system /firmware (modem that you need), and /cust.

After using the -a flag, it is safe to reinstall both a custom kernel and SU. If for any reasons you lost SU, i.e. a factory reset, as long as you have TWRP you can renable SU by flashing it again. No need to be worried about losing root.
[LG V20 Guides, News, & Discussion] bond32:
Thank you. This is very helpful. Since we don't have huge development, this basically allows us to keep root access and update to the latest releases provided the KDZ is available.
[LG V20 Guides, News, & Discussion] Redline:
Just wanted to post this.

I've successfully used KDZ Writer to upgrade from V10F-TWN to V10J-ESA (Software version now shows as V11i-GLOBAL-COM) which as you can see, involved a region change. This was done without any issues after a full TWRP backup. After the KDZ Writer process I re-flashed my Magisk, Xposed, Adreno Mods, Kernel and wiped dalvik/cache and rebooted. Sat on the LG screen for about 20 minutes before going to "Android is upgrading" before finally going into the home screen. Another reboot 2 minutes later to confirm everything was working and everything is a-ok.

Only thing I've had to do is use Root Uninstaller to disable some of the Claro apps that come with this firmware (which I'm already familiar with from my G-Flex 2 days ;) ), otherwise we're smooth as gold. Looks to me like region-switching during an upgrade is supported, but it'd be best to use -at as in the OP to confirm the process would complete successfully.
[LG V20 Guides, News, & Discussion] zinou213:
Can someone please explain the diffrences between all the kdz regions in all details, and wich one is the best for performance and battery usage or space economic or something else, thank you in advance.
[LG V20 Guides, News, & Discussion] Redline:
That'd take way too much time. Use the relevant region for where you are. Different regions come with slightly different things like pre-installed apps, different 4G bands supported, etc.
[LG V20 Guides, News, & Discussion] zinou213:
I know that it takes too much time but if it can be someone else that tested all of these firmwares, so can he make an detailed answer please ?
[LG V20 Guides, News, & Discussion] Redline:
No, we can't get you a detailed answer. Unless someone installs every KDZ available, puts down everything that comes pre-installed in a table and then puts it here. Which would take literally a day straight. It'd be easier to tell us which exact model you have, which variant, and where you are in the world. If in doubt, try the TWN or the one in my signature. If they work then no harm done.
[LG V20 Guides, News, & Discussion] zhadj030:
Thank you very much, updated to 10e and then to 10f, no problems so far.
[LG V20 Guides, News, & Discussion] zinou213:
All i want is having a completely bloat-free version with volte working fine that's all...thank you for the answers.
[LG V20 Guides, News, & Discussion] zhadj030:
So now that I have the TWN 10f update what would happen if I use kdz writer to *update* to the same version but this time instead of TWN I would go with the Australian or Singapore versions. I don't seem to get LTE- advanced here in Canada and phone keeps returning to wcdma after every restart despite setting it up to LTE Before .

Edit: I would like to see if those problems are specific to the TWN region . But I am not sure if that will work or not and if kdz writer changes the area responsible for this behaviour
[LG V20 Guides, News, & Discussion] AVIMPEG:
a question

If my device is H990 single Sim With 10B rom

And I want to upgrade to 10 Q

What should I do exactly In maximum detail

I have the kdz file

I have the KDZ Writer file

I have twrp

What's next?
[LG V20 Guides, News, & Discussion] Redline:
Your device will just change regions, and you'll get whatever software comes pre installed with the new ROM. I'm using the 10J-ESA firmware because it's like a super firmware that works for most regions and gives all settings so you could try that. KDZ Writer has options for updating the /modem partition (the one responsible for WiFi, Data and Bluetooth, etc.) just not by default so try that with the new one. Instructions on how to invoke different updates using it are in the OP :)

---------- Post added at 11:59 PM ---------- Previous post was at 11:56 PM ----------

Well OP said you shouldn't do major updates such as 10B -> 10Q. I'd try going from 10B to a version in the middle, then 10Q (with both the middle update and 10Q being from the same region of course) to make sure compatibility is correct. You can check lg-firmwares.com for the available firmware for your device.

Just use the instructions in OP, except update it twice instead of once :)
[LG V20 Guides, News, & Discussion] xdav20:
If you haven't found the answer to your question yet, I would like to point out this thread that has your region specific answer. If you choose 10j-ESA, which also supports AU that was mentioned in your post, you can flash it to TWN model. Everything you need to know is in that thread.

Just a small note though. The -a flag of kdzwriter writes to cust partition too. You need to revoke it for the second time with -c flag only supplying the V10f-TWN kdz file this time. In the above thread, I have written an article explaining why that is not a good idea and provided a full tutorial to an alternative solution that requires one time work and re-apply it many times.
[LG V20 Guides, News, & Discussion] zhadj030:
[MENTION=8589922]xdav20[/MENTION] first let me say thank you for the extensive informations that you have put there, it was a joy to read after I saw it this afternoon . There are some parts that I dont understand (I am just a regular user who just likes to read) but on the other hand it is simplefied and made in a very easy way that no one can complain about it .

I believe you were refering to this part :

Which will be my case here, invoke the -a flag without doing any factory resets from TWN to ESA

and what follows is the solution of the problem that will happen when switching regions:

So once I am on ESA or global here , invoke the -c flag but of the original and not the new one. I will make a nano backup and try this and see what happens. Should I mess with the kernals or anything else? I have not had issues with the camere focus but had with the occasional video freeze but lately after getting the 10f-TWN it seems to have been gone .
[LG V20 Guides, News, & Discussion] Redline:
Join the DOTS side of the kernels.
[LG V20 Guides, News, & Discussion] xdav20:
I prefer when using kdzwriter to upgrade the system to be on a stock boot image so I can safely use kdzwriter -ak which writes /system, /cust, /modem, and inevitably the stock kernel which happens to be installed anyway, in my case. At this point, all partitions are from the same compiled firmware. Next, depends on what I have I either flash /cust partition with a merged cust of TWN with ESA or invoke kdzwriter -c flag to write cust partition from a v10f-TWN kdz file. Then install custom kernel and SU before booting to the system.

I have covered 7 or 8 scenarios under post #14 but nothing beats a clean installation, specially now that we have a stable kernel. If you don't wish to do it, you need to pick a method and use your own judgement how to complete the task. The reason I'm hesitating not to give you direct steps to complete the upgrade is because I don't know what you did beforehand and what custom kernels and in what orders you installed them. You maybe one flash away from making your phone unbootable. I don't want to be that guy broke your phone.
[LG V20 Guides, News, & Discussion] AVIMPEG:
Okay I understood more steps

But what to do exactly?

Steps

commands

what to write
[LG V20 Guides, News, & Discussion] Redline:
Literally all instructions you need are in the OP of this thread.
[LG V20 Guides, News, & Discussion] AVIMPEG:
No

He said we needed options

With all kinds of letters

That everyone is doing something

I did not understand that
[LG V20 Guides, News, & Discussion] zhadj030:
Yes I am aware that clean install is always the best.

But just to mention this I didn't install any other kernel from the start, I have been always running the original stock from the root process since I did not have issues with camera focus, just had some annoyances with occasional Video freeze which didn't bother me yet at the time. And then just lately I updated using kdz writer to update just using the -a flag from 10cTWN to the 10eTWN and then 10fTWN . Which for some reasons the Video freeze stopped so far and I have not experienced it in the last 72 hours . So what do you think ? I am trying to switch regions to see wether this is a problem with this version or just something LGE doesn't want to work on it . My carrier supports up to 4 CA so I don't see why I can't at least get 2CA or the 3 CA it is supposed to support.
[LG V20 Guides, News, & Discussion] Sachiru:
What KDZ files from other versions are fully compatible with the Korean variants (F800K)?
[LG V20 Guides, News, & Discussion] thirdzcee:
Sorry my bad, found the answer i needed within the thread.. successfully updated my h990ds to 10g
[LG V20 Guides, News, & Discussion] wooher:
Hi. Why the manual didn't complite? What to do after adb shell says "yes". I pushed Enter and now can see only the "y" letter in every code line.
[LG V20 Guides, News, & Discussion] sim590:
line 1: syntax error: unexpected ")"

I did all of the steps described in the OP and I end up with this error message when trying to run

kdzwriter -at <myrom>

.

/sbin/kdzwriter: line 1: syntax error: unexpected ")"

This message surprises me since kdzwriter seems to be an ELF binary. I guess that there is some literal shell script in the code? Otherwise, there's an obscure thing happening leading to a shell error message. I haven't seen any post about this in the thread, so I suspect I have done something wrong. In order to have root privileges, I ran `adb shell` while my phone was in recovery mode. Is that a problem? If not, then what could it be?.
[LG V20 Guides, News, & Discussion] thangnov:
Can I use this tool to flash other variants kdz to my K800F? I'm rooted.
[LG V20 Guides, News, & Discussion] Redline:
This was written for the V20, specifically the models stated in the OP. I wouldn't try. It's hard enough with different regions of the same phone having different partition layouts.