[LG V20 ROMs, Kernels, Recoveries, & Other Developm] Team DevDigitel:
Okay so this is the Flow of how the KDZ is put together

KDZ is a FINAL PRODUCT (A)

The KDZ breaks down into 3 parts

This will be called part (B)

VS99513A04.dz ; LGUPc.dll ; LGUPc.dylib ;

This is the read out of the kdz and how it located these files:

found file VS99513A04.dz
byte read position 825
byte read position 826
found file LGUPc.dylib
found file LGUPc.dll
byte read position 280
byte read position 284
byte read position 280
byte read position 281
found file VS99513A04.dz

At this point the tool needs to have the .dz file loaded up to break it down further.

below will be considered part (C)

The .dz is the gold mine, its everything we need, the kdz just has the dll files to allow LGUP to push the files back to the phone and verify its creds. The ultimate scope of work is at this point C further and getting things back to this point at the end to zip it back up and flash it! Keeping up still? Okay lets look at the .dz broken down now.

.
BackupGPT_20436.bin
PrimaryGPT_6.bin
BackupGPT_20435.bin
PrimaryGPT_5.bin
BackupGPT_593874.bin
msadp_58950.bin
apdp_58822.bin
cmnlib64bak_58694.bin
cmnlib64_58566.bin
cmnlibbak_58438.bin
cmnlib_58310.bin
keymasterbak_58182.bin
keymaster_58054.bin
sec_57926.bin
modem_35910.bin
devcfgbak_35878.bin
devcfg_35846.bin
pmicbak_35718.bin
pmic_35590.bin
hypbak_35462.bin
hyp_35334.bin
rpmbak_35206.bin
rpm_35078.bin
raw_resourcesbak_34054.bin
raw_resources_33030.bin
abootbak_32518.bin
aboot_32006.bin
tzbak_31494.bin
tz_30982.bin
recoverybak_20614.bin
recovery_10246.bin
boot_6.bin
PrimaryGPT_4.bin
BackupGPT_20433.bin
PrimaryGPT_3.bin
BackupGPT_20432.bin
xbl2bak_774.bin
xbl2_6.bin
PrimaryGPT_2.bin
BackupGPT_40911.bin
xblbak_774.bin
xbl_6.bin
PrimaryGPT_1.bin
BackupGPT_155463630.bin
system_1644161.bin
system_1643654.bin
system_1610886.bin
system_1578118.bin
system_1545350.bin
system_1512582.bin
system_1479814.bin
system_1447553.bin
system_1414785.bin
system_1382017.bin
system_1349249.bin
system_1316481.bin
system_1283713.bin
system_1250945.bin
system_1218177.bin
system_1185409.bin
system_1152641.bin
system_1119873.bin
system_1087105.bin
system_1054337.bin
system_1021569.bin
system_989186.bin
system_988679.bin
system_956033.bin
system_923650.bin
system_923143.bin
system_890497.bin
system_857729.bin
system_824961.bin
system_792193.bin
system_759425.bin
system_726657.bin
system_693889.bin
system_661121.bin
system_628353.bin
system_627846.bin
system_595585.bin
system_595078.bin
system_562817.bin
system_530049.bin
system_497281.bin
system_464513.bin
system_464006.bin
system_431745.bin
system_399362.bin
system_398855.bin
system_366209.bin
system_333826.bin
system_333319.bin
system_300673.bin
system_268290.bin
system_267783.bin
system_235137.bin
system_202754.bin
system_202247.bin
system_169601.bin
system_137218.bin
system_136711.bin
system_103558.bin
lafbak_91270.bin
persist_83078.bin
rct_66310.bin
factory_49158.bin
laf_6.bin
PrimaryGPT_0.bin
byte read position 4
header 32-96-18-74
byte read position 0

So looking at the .dz its the system spread out over multiple.bin files.

The .bin files are all labeled system.bin so that's easy enough, they also combine at certain points to become one, and ill post that below here in a second to show what bins match up to each-other. I do have each files OFFSET as well as its length, checksum, and idx for each if needed as well.

The rest is your aboot, your boot.img , recovery, efs, cfg files, and some other stuff im not to sure about, possible pit info and partition info.

never the less, the bin files combine together, and become a system.img

Im able to create my own system.img based of my own files ive received, so in "theory" the system img i have, the backups of the stock boot-loader, the stock boot.img the stock recovery etc should be able to be put in their place and neatly packed back up for re-use.

okay so now back on to the last part. Part (D)

Part D consists of taking the bin files and combining them to make a system.img , the below is the process that combines the files together and their matches.

Complete on merging system files
[+] partial 58 file 1644161 offset 12324824 || seek 6310309888
[+] partial 57 file 1643654 offset 12320768 || seek 6308233216
[+] partial 56 file 1610886 offset 12058624 || seek 6174015488
[+] partial 55 file 1578118 offset 11796480 || seek 6039797760
[+] partial 54 file 1545350 offset 11534336 || seek 5905580032
[+] partial 53 file 1512582 offset 11272192 || seek 5771362304
[+] partial 52 file 1479814 offset 11010048 || seek 5637144576
[+] partial 51 file 1447553 offset 10751960 || seek 5505003520
[+] partial 50 file 1414785 offset 10489816 || seek 5370785792
[+] partial 49 file 1382017 offset 10227672 || seek 5236568064
[+] partial 48 file 1349249 offset 9965528 || seek 5102350336
[+] partial 47 file 1316481 offset 9703384 || seek 4968132608
[+] partial 46 file 1283713 offset 9441240 || seek 4833914880
[+] partial 45 file 1250945 offset 9179096 || seek 4699697152
[+] partial 44 file 1218177 offset 8916952 || seek 4565479424
[+] partial 43 file 1185409 offset 8654808 || seek 4431261696
[+] partial 42 file 1152641 offset 8392664 || seek 4297043968
[+] partial 41 file 1119873 offset 8130520 || seek 4162826240
[+] partial 40 file 1087105 offset 7868376 || seek 4028608512
[+] partial 39 file 1054337 offset 7606232 || seek 3894390784
[+] partial 38 file 1021569 offset 7344088 || seek 3760173056
[+] partial 37 file 989186 offset 7085024 || seek 3627532288
[+] partial 36 file 988679 offset 7080968 || seek 3625455616
[+] partial 35 file 956033 offset 6819800 || seek 3491737600
[+] partial 34 file 923650 offset 6560736 || seek 3359096832
[+] partial 33 file 923143 offset 6556680 || seek 3357020160
[+] partial 32 file 890497 offset 6295512 || seek 3223302144
[+] partial 31 file 857729 offset 6033368 || seek 3089084416
[+] partial 30 file 824961 offset 5771224 || seek 2954866688
[+] partial 29 file 792193 offset 5509080 || seek 2820648960
[+] partial 28 file 759425 offset 5246936 || seek 2686431232
[+] partial 27 file 726657 offset 4984792 || seek 2552213504
[+] partial 26 file 693889 offset 4722648 || seek 2417995776
[+] partial 25 file 661121 offset 4460504 || seek 2283778048
[+] partial 24 file 628353 offset 4198360 || seek 2149560320
[+] partial 23 file 627846 offset 4194304 || seek 2147483648
[+] partial 22 file 595585 offset 3936216 || seek 2015342592
[+] partial 21 file 595078 offset 3932160 || seek 2013265920
[+] partial 20 file 562817 offset 3674072 || seek 1881124864
[+] partial 19 file 530049 offset 3411928 || seek 1746907136
[+] partial 18 file 497281 offset 3149784 || seek 1612689408
[+] partial 17 file 464513 offset 2887640 || seek 1478471680
[+] partial 16 file 464006 offset 2883584 || seek 1476395008
[+] partial 15 file 431745 offset 2625496 || seek 1344253952
[+] partial 14 file 399362 offset 2366432 || seek 1211613184
[+] partial 13 file 398855 offset 2362376 || seek 1209536512
[+] partial 12 file 366209 offset 2101208 || seek 1075818496
[+] partial 11 file 333826 offset 1842144 || seek 943177728
[+] partial 10 file 333319 offset 1838088 || seek 941101056
[+] partial 9 file 300673 offset 1576920 || seek 807383040
[+] partial 8 file 268290 offset 1317856 || seek 674742272
[+] partial 7 file 267783 offset 1313800 || seek 672665600
[+] partial 6 file 235137 offset 1052632 || seek 538947584
[+] partial 5 file 202754 offset 793568 || seek 406306816
[+] partial 4 file 202247 offset 789512 || seek 404230144
[+] partial 3 file 169601 offset 528344 || seek 270512128
[+] partial 2 file 137218 offset 269280 || seek 137871360
[+] partial 1 file 136711 offset 265224 || seek 135794688
[+] partial 0 file 103558 offset 0 || seek 0
count 59
files ||--> system_1644161.bin || 1644161
files ||--> system_1643654.bin || 1643654
files ||--> system_1610886.bin || 1610886
files ||--> system_1578118.bin || 1578118
files ||--> system_1545350.bin || 1545350
files ||--> system_1512582.bin || 1512582
files ||--> system_1479814.bin || 1479814
files ||--> system_1447553.bin || 1447553
files ||--> system_1414785.bin || 1414785
files ||--> system_1382017.bin || 1382017
files ||--> system_1349249.bin || 1349249
files ||--> system_1316481.bin || 1316481
files ||--> system_1283713.bin || 1283713
files ||--> system_1250945.bin || 1250945
files ||--> system_1218177.bin || 1218177
files ||--> system_1185409.bin || 1185409
files ||--> system_1152641.bin || 1152641
files ||--> system_1119873.bin || 1119873
files ||--> system_1087105.bin || 1087105
files ||--> system_1054337.bin || 1054337
files ||--> system_1021569.bin || 1021569
files ||--> system_989186.bin || 989186
files ||--> system_988679.bin || 988679
files ||--> system_956033.bin || 956033
files ||--> system_923650.bin || 923650
files ||--> system_923143.bin || 923143
files ||--> system_890497.bin || 890497
files ||--> system_857729.bin || 857729
files ||--> system_824961.bin || 824961
files ||--> system_792193.bin || 792193
files ||--> system_759425.bin || 759425
files ||--> system_726657.bin || 726657
files ||--> system_693889.bin || 693889
files ||--> system_661121.bin || 661121
files ||--> system_628353.bin || 628353
files ||--> system_627846.bin || 627846
files ||--> system_595585.bin || 595585
files ||--> system_595078.bin || 595078
files ||--> system_562817.bin || 562817
files ||--> system_530049.bin || 530049
files ||--> system_497281.bin || 497281
files ||--> system_464513.bin || 464513
files ||--> system_464006.bin || 464006
files ||--> system_431745.bin || 431745
files ||--> system_399362.bin || 399362
files ||--> system_398855.bin || 398855
files ||--> system_366209.bin || 366209
files ||--> system_333826.bin || 333826
files ||--> system_333319.bin || 333319
files ||--> system_300673.bin || 300673
files ||--> system_268290.bin || 268290
files ||--> system_267783.bin || 267783
files ||--> system_235137.bin || 235137
files ||--> system_202754.bin || 202754
files ||--> system_202247.bin || 202247
files ||--> system_169601.bin || 169601
files ||--> system_137218.bin || 137218
files ||--> system_136711.bin || 136711
files ||--> system_103558.bin || 103558

And there's the system.img creation in progress and completed.

At this point i'm stuck on how i would start to take on this project and do everything in reverse, or somwhat similar to achieve my own custom kdz / .dz file

Gonna take a break from the info part now and actually work on the project but wanted to at-least explain to everyone where my head is at and what i'm trying to work on myself personally. This is a DEV-B project and ANYONE who has a skill can bring it to the table and help. All i ask is please show your work neatly and cleanly as this will have to become source for the project as time moves on, and this is part of our issue in the 1st place. We need to document our work as best we can so others can improve and build upon it also, without providing your work it makes it nearly impossible for others to supply any help!

And off to the races we go!