yashsingh1/xdaforums huggingface dataset:
[LG V20 Guides, News, & Discussion] Rubi Tran:
hi, guys,

I follow this instruction to upgrade by kdzwriter but to sep 10, I type: in -s /bin /system/bin

The result, In: not found

Anybody can help me how can I use kdzwriter to upgrade firmware.

thank for your helping,
[LG V20 Guides, News, & Discussion] jl10101:
Rather upgrade to the latest TWRP that has KDZwriter included. Then you can skip straight to running KDZwriter in terminal in TWRP.
[LG V20 Guides, News, & Discussion] Rubi Tran:
I tried with the latest TWRP (3.3.0-0) but it didn't work,

pls, help me
[LG V20 Guides, News, & Discussion] jl10101:
when you type kdzwriter in recovery terminal and hit "enter", what happens? Do you get a list of commands? Or does it say kdzwriter is not found?
[LG V20 Guides, News, & Discussion] Rubi Tran:
when I type kdzwriter in recovery terminal and hit "enter", List of command show: not found "In"
[LG V20 Guides, News, & Discussion] stvc:
1.98a woks on my Oreo H990ds(TWN). I followed the procedure and successfully upgraded from TWN_20a to TWN_20b with no issue.

TWRP version is 3234 , I used ''-a'' to flash kdz.
[LG V20 Guides, News, & Discussion] stingbandel:
so we don't need to download KDZWriter anymore since it's already included on TWRP? What version of TWRP that has it included?

and we just basically go to the terminal and type in the command on the first page?

thanks...

sorry I am so new with this. been reading for the last 3 days but still afraid to give it a go....

thanks once again...
[LG V20 Guides, News, & Discussion] mac.2013:
There seems to be a problem with kdzwriter (or to be exact TWRP) when /data is encrypted. TWRP seems to be no longer able to mount/ umount /system partition.

I don't know what enabled encryption, and i didn't knew the key, so the solution for me was to format /data and reboot into recovery again. I just did a factory reset anyway, so it was okay for me. Then i could select and unselect /system in the "MOUNT" area again and kdzwriter did not throw the device busy error and panic any more
[LG V20 Guides, News, & Discussion] chrishanelloyd:
Hi All,

I was able to successfully root my H990N phone using the dirty santa method.

I used the firmware H990N10b_00_OPEN_HK_DS_OP_1017.kdz to root my H990N. After rooting, i tried to upgrade the system to "H990N20h_00_OPEN_HK_DS_OP_0225.kdz". I used the command "kdzwriter -a <somekdz>.kdz" to upgrade my firmware to Oreo. But after updating i get stuck in the LG logo. So i tried it for the second time by using "kdzwriter -s <somekdz>.kdz" command and then installed the kernel "H990DS_v2.1-mk2000.zip" on top. But still it gets stuck at the LG logo. Can someone please tell me how can i upgrade it to "H990N20h_00_OPEN_HK_DS_OP_0225.kdz" after rooting. I'm currently on twrp-3.0.2-1.

_____________________________________________________________________________________

Found the answer guys. Simply KDZWriter doesnt support oreo kdz. :) thanks

Thanks
[LG V20 Guides, News, & Discussion] xoose:
I've used kdzwriter to flash Oreo kdz's many times. It might be the partitioning is different between Nougat and Oreo and you need to do a factory Oreo install first, followed by an immediate downgrade to Nougat and root, then you should be able to use kdzwriter -a. Make sure you back up your efs and modem partitions at every step, you may need to restore one or the other to connect.
[LG V20 Guides, News, & Discussion] samkottler:
I have a US996 and I'm trying to install the 10n modem but it gives me the not applicable error. I'm on 10f and using the newest twrp. I tried redownloading the kdz and am still getting the same error. What can I do to install the 10n version.
[LG V20 Guides, News, & Discussion] Vortell:
I would probably use this instead

https://xdaforums.com/v20/how-to/guide-downgrade-8-0-firmware-to-7-0-t3882290 just flash the one for your model it should be newest one before Oreo. Based on your side versions I assume you have us996 and the newest nougat for it is actually 10p.

The other thing is you can find full firmware update ROM.

I think both Alpha Omega and super both do that in the last version. As long as you don't add mods you should get stock nougat. Rctd is active though so either get the reviver from xda labs or use the one with Alpha Omega

Otherwise there are some of issues that can happen. The thing is if you are sure if everything there is a way to ignored all the safety checks but you would need to search for the commands as I have never used kdz writer just read up on it heavily.
[LG V20 Guides, News, & Discussion] desireless:
Wonder if anyone can help here.

I was rooted on ROM version 10i for a very long time until I saw emdroidle's update on kdzwriter to 1.98a recently. So I attempted on upgrading my phone to Oreo (with ROM 20b) but was stuck at the LG logo.

As I did with the previous upgrades, I used the TWRP Terminal method to write the kdz file with the following commands:

Was able to see the "Oooo...O...O" process complete successfully. Then install with TWRP the kernel.zip and SuperSU.zip, as I did with previous upgrades. Did a Reboot System but got stuck at the LG logo. Any advice from the seniors here (maybe I need to change the Terminal commands)? Anyone successfully upgraded to 20a/b with the new kdzwriter 1.98a and stay rooted?
[LG V20 Guides, News, & Discussion] omega552003:
Any way to make this just extract files? Or do i need to flash a phone then dump the contents?
[LG V20 Guides, News, & Discussion] Landloord:
Check this thread out https://xdaforums.com/showthread.php?t=2600575

If u want to only extract the kdz. V 1.2.6.1 works perfectly for me
[LG V20 Guides, News, & Discussion] VelosterM14:
Am on LOS17.1 currently with H918's, needing to go back to stock nougat I can root due to need to use VoLTE and VoWIFI calling. Not sure if the -P option is intended for this type of scenario or not, but could this possibly help me get back to a stock-ish ROM without having to go ALL the way back to stock 10P KDZ with LGUP and start over, rerooting from scratch? I already have TWRP on the phone. :)

Thanks for any confirmation or ideas.
[LG V20 Guides, News, & Discussion] Redline:
I noticed that problem with mine a couple times. It's LGs MLT process, a widely known battery drainer and resource hog because it logs almost everything you're doing on your phone. I remember putting my phone down on my desk and picking it up a short time later and the battery was almost gone, it was hot, and that process was the most intensive one running as per my Cool Tool monitor. Immediately disabled it with Titanium Root, rebooted and haven't had a problem since.
[LG V20 Guides, News, & Discussion] kuachi00:
thanks so much . i freeze that now . also i notice that my gpu frequency is dropping when playing games i cant get it to lock at high frequency using kernel auditor and other apps. do you have any suggestions ? thank you
[LG V20 Guides, News, & Discussion] Redline:
Depends on the governor (controller) you're using for the GPU. I don't know much about GPU ones so I generally just leave mine on the default. Could search up the names and see which one you think works best. Might also be a thermal throttling problem, or the game might not be demanding enough to warrant full frequency. LG has always been quite conservative in the thermal department, their phones tend to prefer low temperature over performance.
[LG V20 Guides, News, & Discussion] emdroidle:
Hrmm, that is unexpected. I can think of one cause and I've changed one setting (grr, that mailserver is down right now), so hopefully it works now. :eek:

That sounds like LG messed up with their update. Could be v10g is misreports itself as v10e. Since the security patch level has changed, that is a pretty darn strong indicator it did succeed at updating.

Then there is the fun of restarting after the update. Hrmm, taking a while to restart there... Then look at `dmesg` afterwords and see it took roughly 30 seconds to update the firmware of the ANX7688 (USB-C) chip. Just to be fun this was on the second restart after I'd updated.
[LG V20 Guides, News, & Discussion] kuachi00:
is it safe to downgrade using kdzwriter?
[LG V20 Guides, News, & Discussion] johanneswilm:
failure

Hey,

I tried upgrading from v10c-TWN-XX using H990ds10f_00_OPEN_TW_DS_OP_0622.kdz

I first ran

and that seemed to work, so then I ran

And that's when this error came after it wrote the system section (and before writing the modem section):

Edit: In the end I simply ran kdzwriter again without the kernel options:

Then I flashed the kernel again from the menus on the phone (which still was in TWRP). Rebooted and it all worked fine.
[LG V20 Guides, News, & Discussion] emdroidle:
That gives me a pretty good clue what happened. Trying to be a little clever with part of the restore process and it failed. Updated kdzwriter.gz with a fix.

There wasn't a need to rerun with -aM, simply needed to reinstall whichever kernel (modules) and that was it.
[LG V20 Guides, News, & Discussion] ronaldyeo:
I had the same error with the new kdzwriter for my file H99010f_00_OPEN_SG_DS_OP_0630.kdz

did a reinstall of your kernal and su.

rebooting now with my fingers crossed!
[LG V20 Guides, News, & Discussion] Salvaparalyzer:
[MENTION=6984210]emdroidle[/MENTION]

I have bought a h990ds and I intend to root it, I have read your guide of how to root and you said you can install updates with this tool. I'm sorry for the noob question, but I don't get it clear.

With a rooted h990ds, what's the last update I can install without messing with root?

Thanks in advance :) :)
[LG V20 Guides, News, & Discussion] Redline:
Depends on your specific region. You can find this out by checking your software version in settings, it should say something like V10C-TWN-XX or something. C10c has an Android security patch date of 1st December, so install that initially (Or if I'm wrong, find a version from LG Firmwares that has a patch date of December 1st). Once that's done and you have the phone setup and apps installed and such, use the KDZ Writer to update to the latest available version for your region on LG Firmwares. E.g. My H990DS had TWN region software on it, so I updated to the latest V10F-TWN software.
[LG V20 Guides, News, & Discussion] Salvaparalyzer:
Mine is from TWN too. So I can root if security patch date is 1st Dec. And then I can update to the last version without losing root right?

Thanks for your answer :) :good:
[LG V20 Guides, News, & Discussion] emdroidle:
That is the point of `kdzwriter`. Upgrade the bits that really need to be upgraded, while leaving the crucial bits alone.

Note for users of other V20 variants: This was designed and tested on a H990DS, but it should work fine on any V20 which has KDZ files available. Meaning you can root Verizon or T-Mobile devices and then only update /system. This should avoid the difficulty of the anti-rollback eFuse...
[LG V20 Guides, News, & Discussion] sniper9911:
thank you

i successfully upgraded my h990ds GCC from November 2016 patch to April 2017 patch now

rooted super su systemlessly and ready to rock :)

kdzwriter -a /external_sd/Firmware/KDZ/H990ds10e_00_OPEN_AME_DS_OP_0417.kdz

after operation completed the adb shell command instructed me to reflash kernel so i reflashed dirtysanta h990ds kernel and rerooted ... all is gold now :)

thank you dev
[LG V20 Guides, News, & Discussion] Salvaparalyzer:
Thanks to [MENTION=6984210]emdroidle[/MENTION] for this awesome tool. I wish the instructions to be a little more clear for people like me that hesistate to make changes, being afraid of fuc**** it up.

Any way, nice job. :good::good::good:

Also thanks to [MENTION=3181022]johanneswilm[/MENTION]. Your instructions made the update definetely easier.

Greetings :D:D:D
[LG V20 Guides, News, & Discussion] Oblemay:
Thank you !!!

update easy via KDZWriter it's very good

H990ds10c_00_OPEN_TW_DS_OP_1214.kdz to H990ds10f_00_OPEN_TW_DS_OP_0622.kdz

rename h990dsxxx by update.kdz

and

kdzwriter -a /external_sd/update.kdz

it's okay I love :)
[LG V20 Guides, News, & Discussion] reza_xdv:
/DELETED/

Edit: Never mind, problem solved.
[LG V20 Guides, News, & Discussion] MosesCT:
Can someone post a step-by-step guide?

I'm noob and I don't know how to start!

My phone is in twrp and plugged into pc.

How can I start kdzwriter? Please, help me!
[LG V20 Guides, News, & Discussion] brunochka:
[MENTION=6984210]emdroidle[/MENTION] can you kindly explain step by step how to use this tool? I'm rooted, i've TWRP and i want to use kdzwriter to apply 10g firmware , now to get root i've 10c. I've read carefully all instructions but it's unclear where to type, i thank you in advance for yr help!
[LG V20 Guides, News, & Discussion] emdroidle:
Uhm, I'm unsure I can make it much clearer. First you load "kdzwriter-1.3.gz" onto your phone, then second is running the commands in the second box inside `adb shell` (which runs those commands on your phone).

Once done with that generally you run `kdzwriter -at <some-KDZ>` to test installing the KDZ. Assuming that succeeds you run `kdzwriter -a <some-KDZ>` to do the actual install.

Finally got the kernel module saving implemented. This should eliminate the need to reinstall the kernel after KDZ installation. Found and fixed a really simple problem.
[LG V20 Guides, News, & Discussion] Ironman1965:
Tried this numerous times with no success. Have the H990N running 10d. Everything seems to work as expected with no errors other than the kernel error. Re-flashed kernel and root (magisk), again, no errors. Reboot and phone gets to bootanimation and that is as far as it goes. Any ideas, or is kdzwriter just not compatible with the H990N?
[LG V20 Guides, News, & Discussion] emdroidle:
How long did you wait at the boot animation? Depending on what your phone's status was beforehand you may need to wait a while at the boot animation.

If your phone was on a 2016 version of Android before, one of the first things it will be doing is updating the firmware for the ANX7688 (USB-C) chip. Had to wait about 35 seconds for that process on first boot after update. Then Android updates other bits of the OS which can also take a while. I'm now on the H990N10o KDZ and it took around 5-15 minutes on first boot after the update.
[LG V20 Guides, News, & Discussion] Ironman1965:
Thought I waited about 10 minutes, however I didn't actually check the time. Will try again and post my results with actual time. Thanks for the feedback.
[LG V20 Guides, News, & Discussion] xdav20:
Kdzwriter installation, 100% Android

1. Extract kdzwriter binary from kdzwriter-1.3.gz with your preferred file manager. Ensure you will copy the .gz file to internal storage to avoid the write permission with the external storage in nougat

2. Copy kdzwriter binary to your external SD card

3. Copy your .kdz file to the root of your external_sd card and then rename it lg.kdz

4. Reboot to recovery

5. Tap on Advanced button, then File Manager

6. Point the file manager to where you copied kdzwriter binary in step 2

7. Tap the name once and you will be taken to another window. One of the operations/options presented to you is Copy File. Tap Copy File button. The file manager would then redirect the path to the root of your device. Find sbin directory and open it by taping it once. On the very right bottom corner of the screen there is button with folder icon with a check symbol in the center of it. Tap it to paste the file. Don't worry about the sbin directory being shown blank. Swipe to confirm.

8. Navigate back to sbin directory and find kdzwriter and tap it. You will be presented with the operations you can perform. One of which being to set the right permission to make kdzwriter to become executable. Tab on chmod, then in next screen type 0755 the tap on Enter button followed by a swipe to confirm.

9. Go back to Advanced screen and tap on Terminal and type and run the following:

ln -s /sbin /system/bin

10. You are ready to execute kdzwriter as however you wish. This is how you would point to lg.kdz in the root of your external SD Card in terminal,

kdzwriter -[options] /external_sd/lg.kdz

Good Luck!
[LG V20 Guides, News, & Discussion] Ironman1965:
Tried again and same thing. Sitting at bootanimation a full 24 minutes and counting. Any ideas? kdzwriter-1.3, H990N 10b (my bad said was 10d), updating to 10o. Had to pull battery. Do updates need to be incremental or can I just update from 10b to 10o?
[LG V20 Guides, News, & Discussion] reqingdeyu:
My H990N ,10b, update to 10o,

I have already waited for 30minutes, it still show the animation, what can I do now?
[LG V20 Guides, News, & Discussion] reqingdeyu:
H990N

10b upto 10o cannot succeed!

10e to 10o is OK!

Thank emdroidle very much.

Hope kdzwriter can also used in Android 8.0 soon!
[LG V20 Guides, News, & Discussion] xdav20:
Suggestion

[MENTION=6984210]emdroidle[/MENTION]

Since kdzwriter can write to cust partition and I just found out there is at least one file, op_list.cfg, that reference to OP partition and there will be a scenario where the referenced path don't exist, I thought it would be great/wise to add OP partition to the safe partition list and as a rule -- if cust partition is overwritten then OP will be too.

For those who would want to correct the region settings "only" after flashing a wrong .kdz from different region a new designated flag just for cust and OP partitions would be very useful too. What are your thoughts on this please?

Just for the record, as I was trying to fix something I dumped persist partition and flashed it in another phone from TWRP without any apparent issues.
[LG V20 Guides, News, & Discussion] emdroidle:
That is interesting. I hadn't known about such a limitation before now. Apparently there is some subtle extra thing going on here.

I've considered the potential of writing /OP (notice `kdzwriter -h` mentions -O is allocated for this). Problem is /OP has some distinct extra challenges over the other areas. One issue is it appears the KDZ format apparently expects to be able to resize userdata and OP (appears the Singapore H990DS grabs a large chunk off userdata, attaches it to OP and puts more bloatware there).

I'm unsure of whether to attack /OP or not.
[LG V20 Guides, News, & Discussion] xdav20:
[MENTION=6984210]emdroidle[/MENTION]

Thank you for your recent communication. As part of my experiments, used kdzwriter -a -k and booted twice and crashed the kernel, I didn't expect to boot but wanted to see what happens. I took a snapshot of each crash. The black one is after first boot, and blue one after 2nd. The data doesn't mean anything to me but I thought you might find it useful.

After reading your replies I did a quick research and find a file called official_op-resize.cfg with a value in it under the /cust partition. Is that something you need to handle the OP partition?

I dumped the OP partition, it is 480MB in size. Also found out misc partition, /dev/block/sda5, is pretty much to do with region settings. After reading your post today also realised my 2nd H990DS that I bought from the same online retailer is actually ARE (middle-eastern) variant. I'm going to try make it to TWN variant properly. In ARE the OP partition is empty but in my TWN there are some files and I thought it was because I flashed the SIG 10g on it which also did on TWN variant and never got region error messages. I will let you know if I found anything useful that can be added to kdzwriter which I'm very fan of.

I posted, on DirtySanta thread, a new order to root and upgrade the firmware. When you have the time, please take a look in case I missed something important in the order I do it. Thank you.
[LG V20 Guides, News, & Discussion] dadme:
Flashed 10g SEA on TWN 990DS and got error messages. Solved flashing 10f cust with kdzwriter -c /external_sd/10f.kdz over 10g SEA version. Now i have at software version V10g-TWN-XX. Unreleased software version....Nice!
[LG V20 Guides, News, & Discussion] xdav20:
[MENTION=6984210]emdroidle[/MENTION]

I flashed the following partitions from TWN variant to AME:

misc OK

persit OK

persistent OK

cust OK

OP Error: image is too big (I know what you meant now)

factory Error: not a boot image

I did expect disastrous results, booted to the system successfully and after tried to navigate to About screen the system restarted itself. When it got restarted, one of the home pages was disappeared. I finally decided to flash an AME firmware for the second phone to avoid any unpredictable behaviours in the future.

I am now certain werewolf kernels suffer from disk storage issues too. I took the SD Card out to transfer the boot.img that I removed rctd from and as usual prompted to scan it by Win7. Once scan was completed it warned about any files that was recovered would be under Found directory. Refreshed the Windows Explorer and didn't spot it. When I inserted the SD Card back to the phone, the Found folder showed up with 2GB of junk files in it.

When I was copying the factory partition by USB OTG it corrupted the very same one that I wanted to flash and because the partition was 0 bytes in size nothing bad happened. I hope this highlights the seriousness of the problem with all custom kernels that have been released for H990DS.

I am hoping your new attempt to address this issue is going to rectify it perpetually. Now that, I have backed up everything again I'm going back to 100% 10f stock and do another test with SD Card and USB to leave no doubts to myself both DirtySantas and werewolf kernels are infested with this issue. I will try different SD Card brands too.

I have attached two screenshots of the Found folder. Thank you for your efforts. Please let me know what else I can do.
[LG V20 Guides, News, & Discussion] xdav20:
Check your software version again, impossible to get V10g-TWN-XX. For one, 10g wasn't released for TWN variant that I own too. All H990DS variants are flashable with firmwares from different regions but if one flashes from a different region the software version always ends with GLOBAL-COM. I'm confident your software version would be V10g-GLOBAL-COM, something like that. SIG variant has the 10g therefore they get software version V10g-SIG-XX.

I realised flashing cust partition is overdone. Just modifying the open_path_mapping.cfg and cust_path_mapping.cfg is good enough to stop the errors. In service Menu your true NT-Code remains the same. I tried hard to change it without a sucess.

Edit: I'm sorry, I didn't mean flashing cust partition by kdzwriter is overdone, I meant by fastboot afterwords. Using -c flag 100% is error free with NT-Code. That is why I like kdzwriter.
[LG V20 Guides, News, & Discussion] dadme:
I know that seem impossible, but that is. Flashed 10c with LGUP, root and twrp with dirtysanta, nandroid backup of 10c, kdzwriter directly from twrp to 10f, make nandroid backup of 10f, nandroid restore 10c, kdzwriter to 10g SEA, nandroid backup of 10g SEA. Boot 10g give error of region... reboot to twrp, kdzwriter -c /external_sd/10f.kdz reboot and voila.... V10g-SIG-XX.

Can't make screenshoot now, i get one error of camera on this, no videorecording if stabilisation is checked, so i need to try 10f with magisk 14 to find what is the problem. But i have a backup made and later i can post a screen.