EXE版 KDZTools (无需安装Python)

gress 2020-1-30 68158

下载:

这个版本的优势: 不需要安装配置Python。

编译自源码:Github kdztools

编译及测试平台:Windows 10 x64。

修改内容: 按照酷安@爱是崇高大佬的方法修改了undz.py以支持解包Android 10固件。

支持KDZ版本: LG V20到LG V50(Android 7.0到Android 10)均亲测通过。

已知问题: 不能正确解包出OP分区(有临时解决办法)。

使用方法与源码一致:

  1. 看Github上的说明文档
  2. 参考@爱是崇高在机锋的教程
  3. 继续看下面

V500N20b_00_LGU_KR_OP_1223.kdz为例:

解压下载的KDZTools,将要解压的kdz文件放到同一目录下(其他目录解包时需要输入文件路径)。 双击Command Prompt打开命令提示符,输入命令unkdz -f V500N20b_00_LGU_KR_OP_1223.kdz -x -d .解包kdz 将会在当前目录得到.dz文件V500N20b_00_LGU_KR_OP_1223.dz。 继续输入命令undz -f V500N20b_00_LGU_KR_OP_1223.dz -l将会得到分区信息:

=========================================
 0/ 0 : gpt_main0.bin_0 (1563 bytes)
 0/ 1 : gpt_main1.bin_0 (277 bytes)
 0/ 2 : gpt_main2.bin_0 (277 bytes)
 0/ 3 : gpt_main3.bin_0 (386 bytes)
 0/ 4 : gpt_main4.bin_0 (2882 bytes)
 0/ 5 : gpt_main5.bin_0 (553 bytes)
 0/ 6 : gpt_main6.bin_0 (212 bytes)
 1/?? : mpt (<empty>)
 2/?? : drm (<empty>)
 3/?? : p_persist_lg (<empty>)
 4/?? : sns (<empty>)
 5/?? : ssd (<empty>)
 6/ 7 : persist.img_15368 (3420 bytes)
 7/?? : misc (<empty>)
 8/ 8 : ftm.img_23816 (70 bytes)
 9/?? : power (<empty>)
10/?? : encrypt (<empty>)
11/?? : eksst (<empty>)
12/?? : rct (<empty>)
13/?? : fota (<empty>)
14/?? : srtc (<empty>)
15/?? : pstore (<empty>)
16/?? : els (<empty>)
17/?? : operatorlogging (<empty>)
18/?? : eri (<empty>)
19/?? : carrier (<empty>)
20/?? : persdata (<empty>)
21/?? : metadata (<empty>)
22/ 9 : vendor_0.img_91784 (34976 bytes)
22/10 : vendor_587.img_92371 (58291244 bytes)
22/11 : vendor_32874.img_124658 (19 bytes)
22/12 : vendor_33355.img_125139 (73321373 bytes)
22/13 : vendor_66017.img_157801 (20376313 bytes)
22/14 : vendor_98410.img_190194 (19 bytes)
22/15 : vendor_98891.img_190675 (50079494 bytes)
22/16 : vendor_131553.img_223337 (52355068 bytes)
22/17 : vendor_163946.img_255730 (19 bytes)
22/18 : vendor_164427.img_256211 (48420565 bytes)
22/19 : vendor_197089.img_288873 (7360060 bytes)
22/20 : vendor_229482.img_321266 (19 bytes)
22/21 : vendor_229963.img_321747 (71498017 bytes)
22/22 : vendor_262625.img_354409 (42825049 bytes)
22/23 : vendor_295018.img_386802 (19 bytes)
22/24 : vendor_295499.img_387283 (43194810 bytes)
22/25 : vendor_328161.img_419945 (9266857 bytes)
22/26 : vendor_425984.img_517768 (26 bytes)
22/27 : vendor_428312.img_520096 (20443579 bytes)
22/28 : vendor_435199.img_526983 (45 bytes)
23/29 : factory_cache.img_526984 (22 bytes)
24/30 : system_0.img_962184 (44348 bytes)
24/31 : system_767.img_962951 (49487807 bytes)
24/32 : system_33024.img_995208 (19 bytes)
24/33 : system_33535.img_995719 (67873168 bytes)
24/34 : system_66047.img_1028231 (72878827 bytes)
24/35 : system_98560.img_1060744 (19 bytes)
24/36 : system_99071.img_1061255 (85154880 bytes)
24/37 : system_131583.img_1093767 (74090733 bytes)
24/38 : system_164096.img_1126280 (19 bytes)
24/39 : system_164607.img_1126791 (66705403 bytes)
24/40 : system_197119.img_1159303 (67101387 bytes)
24/41 : system_229632.img_1191816 (19 bytes)
24/42 : system_230143.img_1192327 (61374099 bytes)
24/43 : system_262655.img_1224839 (53515797 bytes)
24/44 : system_295168.img_1257352 (19 bytes)
24/45 : system_295679.img_1257863 (53291273 bytes)
24/46 : system_328191.img_1290375 (40106037 bytes)
24/47 : system_360959.img_1323143 (48058276 bytes)
24/48 : system_393727.img_1355911 (42587430 bytes)
24/49 : system_426495.img_1388679 (59264375 bytes)
24/50 : system_459263.img_1421447 (88356717 bytes)
24/51 : system_492031.img_1454215 (86316929 bytes)
24/52 : system_524799.img_1486983 (103655567 bytes)
24/53 : system_557567.img_1519751 (114683242 bytes)
24/54 : system_590335.img_1552519 (75195593 bytes)
24/55 : system_623103.img_1585287 (53695590 bytes)
24/56 : system_655871.img_1618055 (36614959 bytes)
24/57 : system_819200.img_1781384 (524 bytes)
24/58 : system_819456.img_1781640 (24 bytes)
24/59 : system_884736.img_1846920 (524 bytes)
24/60 : system_884992.img_1847176 (24 bytes)
24/61 : system_1015808.img_1977992 (27 bytes)
24/62 : system_1042088.img_2004272 (47116048 bytes)
24/63 : system_1058815.img_2020999 (47 bytes)
25/64 : system_other_LGU_KR_0.img_2021000 (10032 bytes)
25/65 : system_other_LGU_KR_767.img_2021767 (53788912 bytes)
25/66 : system_other_LGU_KR_33024.img_2054024 (19 bytes)
25/67 : system_other_LGU_KR_33535.img_2054535 (56855597 bytes)
25/68 : system_other_LGU_KR_66047.img_2087047 (80482599 bytes)
25/69 : system_other_LGU_KR_98560.img_2119560 (19 bytes)
25/70 : system_other_LGU_KR_99071.img_2120071 (93817440 bytes)
25/71 : system_other_LGU_KR_131583.img_2152583 (120508128 bytes)
25/72 : system_other_LGU_KR_164096.img_2185096 (19 bytes)
25/73 : system_other_LGU_KR_164607.img_2185607 (119938376 bytes)
25/74 : system_other_LGU_KR_197119.img_2218119 (126024379 bytes)
25/75 : system_other_LGU_KR_229632.img_2250632 (19 bytes)
25/76 : system_other_LGU_KR_230143.img_2251143 (95056341 bytes)
25/77 : system_other_LGU_KR_262655.img_2283655 (114995058 bytes)
25/78 : system_other_LGU_KR_295168.img_2316168 (19 bytes)
25/79 : system_other_LGU_KR_295679.img_2316679 (113450870 bytes)
25/80 : system_other_LGU_KR_328191.img_2349191 (66815557 bytes)
25/81 : system_other_LGU_KR_819200.img_2840200 (531 bytes)
25/82 : system_other_LGU_KR_819456.img_2840456 (24 bytes)
25/83 : system_other_LGU_KR_884736.img_2905736 (532 bytes)
25/84 : system_other_LGU_KR_884992.img_2905992 (24 bytes)
25/85 : system_other_LGU_KR_1015808.img_3036808 (27 bytes)
25/86 : system_other_LGU_KR_1042088.img_3063088 (40860856 bytes)
25/87 : system_other_LGU_KR_1058815.img_3079815 (47 bytes)
26/88 : product_0.img_3079816 (28914 bytes)
26/89 : product_633.img_3080449 (57675067 bytes)
26/90 : product_32895.img_3112711 (19 bytes)
26/91 : product_33401.img_3113217 (32624342 bytes)
26/92 : product_66042.img_3145858 (101699000 bytes)
26/93 : product_98431.img_3178247 (19 bytes)
26/94 : product_98937.img_3178753 (123440014 bytes)
26/95 : product_131578.img_3211394 (105785035 bytes)
26/96 : product_163967.img_3243783 (19 bytes)
26/97 : product_164473.img_3244289 (90100041 bytes)
26/98 : product_197114.img_3276930 (106598033 bytes)
26/99 : product_229503.img_3309319 (19 bytes)
26/100 : product_230009.img_3309825 (72705115 bytes)
26/101 : product_262650.img_3342466 (94005954 bytes)
26/102 : product_295039.img_3374855 (19 bytes)
26/103 : product_295545.img_3375361 (87625347 bytes)
26/104 : product_328186.img_3408002 (67337407 bytes)
26/105 : product_360954.img_3440770 (77656054 bytes)
26/106 : product_393722.img_3473538 (99982884 bytes)
26/107 : product_426490.img_3506306 (123014584 bytes)
26/108 : product_459258.img_3539074 (67062126 bytes)
26/109 : product_491520.img_3571336 (27 bytes)
26/110 : product_515995.img_3595811 (26389298 bytes)
26/111 : product_524287.img_3604103 (45 bytes)
27/?? : product_b (<empty>)
28/?? : OP_a (<empty>)
29/?? : OP_b (<empty>)
30/112 : userdata_0.img_5439240 (2185 bytes)
30/113 : userdata_643.img_5439883 (58453 bytes)
30/114 : userdata_32768.img_5472008 (377 bytes)
30/115 : userdata_32897.img_5472137 (24 bytes)
30/116 : userdata_98304.img_5537544 (377 bytes)
30/117 : userdata_98433.img_5537673 (24 bytes)
30/118 : userdata_163840.img_5603080 (376 bytes)
30/119 : userdata_163969.img_5603209 (24 bytes)
30/120 : userdata_229376.img_5668616 (376 bytes)
30/121 : userdata_229505.img_5668745 (24 bytes)
30/122 : userdata_262144.img_5701384 (24 bytes)
30/123 : userdata_262658.img_5701898 (59 bytes)
30/124 : userdata_294912.img_5734152 (375 bytes)
30/125 : userdata_295041.img_5734281 (24 bytes)
30/126 : userdata_491520.img_5930760 (23 bytes)
31/?? : grow (<empty>)
32/127 : gpt_backup0.bin_7103995 (1528 bytes)
32/128 : gpt_backup1.bin_2043 (250 bytes)
32/129 : gpt_backup2.bin_2043 (250 bytes)
32/130 : gpt_backup3.bin_2043 (357 bytes)
32/131 : gpt_backup4.bin_453115 (2851 bytes)
32/132 : gpt_backup5.bin_3067 (525 bytes)
32/133 : gpt_backup6.bin_1019 (183 bytes)
33/134 : OP_LGU_KR.img_4128392 (192973915 bytes)
33/135 : OP_LGU_KR.img_4193928 (25607065 bytes)
33/136 : OP_LGU_KR.img_4259464 (7174157 bytes)
34/137 : xbl.elf_6 (2555260 bytes)
35/138 : xbl_config.elf_902 (19907 bytes)
36/139 : xbl.elf_6 (2555260 bytes)
37/140 : xbl_config.elf_902 (19907 bytes)
38/141 : mdmddr.mbn_320 (29 bytes)
39/142 : aop.mbn_6 (87623 bytes)
40/143 : tz.mbn_134 (1060242 bytes)
41/144 : hyp.mbn_1158 (145874 bytes)
42/145 : NON-HLOS.bin_1290 (84953192 bytes)
43/146 : abl.elf_101642 (205882 bytes)
44/147 : dspso.bin_101898 (9761765 bytes)
45/148 : km4.mbn_118282 (114965 bytes)
46/149 : akmu.mbn_118410 (8500 bytes)
47/150 : boot.img_118538 (25796729 bytes)
48/151 : cmnlib.mbn_143114 (245691 bytes)
49/152 : cmnlib64.mbn_143242 (274322 bytes)
50/153 : devcfg.mbn_143370 (22275 bytes)
51/154 : qupv3fw.elf_143402 (16849 bytes)
52/155 : laf.img_143422 (26209293 bytes)
53/156 : vbmeta_LGU_KR.img_155710 (2611 bytes)
54/157 : dtbo.img_155726 (103912 bytes)
55/158 : uefi_sec.mbn_161870 (57340 bytes)
56/159 : imagefv.elf_162382 (10000 bytes)
57/160 : raw_resources.img_162894 (393049 bytes)
58/161 : imeiprot.mbn_208462 (21889 bytes)
59/162 : aop.mbn_208590 (87623 bytes)
60/163 : tz.mbn_208718 (1060242 bytes)
61/164 : hyp.mbn_209742 (145874 bytes)
62/165 : NON-HLOS.bin_209874 (84953192 bytes)
63/166 : abl.elf_310226 (205882 bytes)
64/167 : dspso.bin_310482 (9761765 bytes)
65/168 : km4.mbn_326866 (114965 bytes)
66/169 : akmu.mbn_326994 (8500 bytes)
67/170 : boot.img_327122 (25796729 bytes)
68/171 : cmnlib.mbn_351698 (245691 bytes)
69/172 : cmnlib64.mbn_351826 (274322 bytes)
70/173 : devcfg.mbn_351954 (22275 bytes)
71/174 : qupv3fw.elf_351986 (16849 bytes)
72/175 : laf.img_352006 (26209293 bytes)
73/176 : vbmeta_LGU_KR.img_364294 (2611 bytes)
74/177 : dtbo.img_364310 (103912 bytes)
75/178 : uefi_sec.mbn_370454 (57340 bytes)
76/179 : imagefv.elf_370966 (10000 bytes)
77/180 : raw_resources.img_371478 (393049 bytes)
78/181 : imeiprot.mbn_417046 (21889 bytes)
79/182 : sec.elf_417174 (2980 bytes)
80/183 : apdp.mbn_417438 (2803 bytes)
81/184 : msadp.mbn_417502 (2803 bytes)
82/185 : logfs_ufs_8mb.bin_428227 (554 bytes)
83/186 : storsec.mbn_447171 (8114 bytes)
84/187 : multi_image.mbn_447203 (3662 bytes)

接着输入命令undz -f V500N20b_00_LGU_KR_OP_1223.dz -s 24即可得到system_a分区,可以用7-Zip右键打开查看文件。 提取其他分区更换-s后面的数字就行了。后面不加数字可提取所有分区,但是会将没有数据的userdata也提取了,会占用很大的磁盘空间。

新增一键脚本


上一篇:已root韩版V50升级Android 10
下一篇:如何从kdz中提取OP分区
最新回复 (18)
  • 1 引用 2
    厉害 爱了
    2020-1-30 回复
  • 0 引用 3
    厉害,可是20b的kdz在哪能下载
    2020-2-4 回复
  • 0 引用 4
    谢谢兄弟,有解到。
    2020-2-4 回复
  • 0 引用 5
    请问如何提取分区表文件? kdz解压
    0/ 0 : gpt_main0.bin_0 (1563 bytes)
     0/ 1 : gpt_main1.bin_0 (277 bytes)
     0/ 2 : gpt_main2.bin_0 (277 bytes)
     0/ 3 : gpt_main3.bin_0 (386 bytes)
     0/ 4 : gpt_main4.bin_0 (2882 bytes)
     0/ 5 : gpt_main5.bin_0 (553 bytes)
     0/ 6 : gpt_main6.bin_0 (212 bytes)
    出来PrimaryGPT.image 这个文件打不开得不到这6个bin文件, 我想制作分区表文件恢复v50分区表
    2020-2-22 收起回复
    freetaurus: https://bbs.lge.fun/thread-75.htm看这里提取OP时的删除描述字节,我也是解不开GPT这个文件,估计删除多余的数据后,再整合后应该可以。 另外,我也在研究这个ROOT,能不能相互沟通一下。
    2020-3-8回复
  • 0 引用 6
    再问下楼主基带在哪个分区?谢谢了
    2020-2-23 收起回复
    heizi: modem
    2020-2-23回复
    pcduron: 谢谢了
    2020-2-24回复
  • 0 引用 7
    楼主问一下,想提取kdz里面的boot.img,要怎么操作啊?
    2020-2-23 收起回复
    gress: 解dz的时候用“-s”可提取所有分区,里面就有boot_a和boot_b。或者先用“-l”查看列表,在用“-s”命令时加上相应编号
    2020-2-23回复
    离漠狂忆: 这俩都有了,要怎么取得boot.img呢?看教程要合成,这一步不会
    2020-2-23回复
    gress: 回复 离漠狂忆: boot_a和boot_b是一样的,任一都可以当成原版boot来用。用”-s“命令提取的不需要什么合成,大小是64 MB就是没问题的。
    2020-2-23回复
    离漠狂忆: 回复 gress: 爱你
    2020-2-23回复
    coolapk: 提取出来boot的文件名是image是什么鬼,直接改文件名可以吗,大小65M
    2020-2-29回复
    还有2条回复,查看
  • 0 引用 8
    有个问题,KDZ可以解包,然后ROOT后重新能打包吗?刷机就方便了
    2020-3-17 收起回复
    gress: 其实是有mkdz和mkkdz来实现这个功能的,但是我没有编译这两个组件,因为用这个方法打包出来的kdz通不过刷机工具的验证,是不能往手机刷的。
    2020-3-17回复
    pla66141: 回复 gress: 能不能换个思路。解包后删除不想要的APK,然后封包。把它当作第三方ROM,用刷第三方ROM的方式刷进去?唯一要解决的就是封包工具。
    2021-2-8回复
  • 0 引用 9
    感谢大佬,把我的机子救回来了,想问下我解出来的grow文件有3G多,这个文件有什么用的,集成了什么在里面这么大。
    2020-4-4 收起回复
    gress: 似乎只是个空分区
    2020-4-4回复
  • 0 引用 10

    大佬你看下,这是解包出来的文件,很多文件比如boot laf不知道集成去哪了,我昨晚救砖是用qfil替换了一遍,然后dl模式重刷一遍,什么文件是没用的,下次不用刷进去

    2020-4-5 收起回复
    gress: 我的测试结果是没有问题的,结果看楼下。 你检查一下硬盘空间是否足够,工具在提取时会提取所有分区,而userdata这样的空分区可能会很占空间,可能程序还未执行完就硬盘空间不足而停止提取,继续执行后面的命令了。 你再试试看,还是不行把屏幕输出的log贴出来看看。
    2020-4-5回复
    gress: 回复 summer: 要说有没有用,其实所有分区文件都有用,至少空分区刷进去也相当于格式化了一遍相应分区。你可以执行命令“undz -f G710N20k_00_KT_KR_1220.dz -l”查看有哪些分区,后面带有(<empty>)就是空分区,还有一些例如userdata、product_b等也实际上是空分区。一般刷a分区和system_b应该就够了。另外要注意这个工具提取的OP分区全是错的,不要刷入,最好是恢复了laf刷KDZ。
    2020-4-5回复
    summer: 回复 gress: 好的,我再试下,因为昨晚我用lg up刷kdz开不了机,就想着解包在分区一个个刷入看看,这个grow解压出来是3G多,我替换了提示数据溢出按了yes,替换完后分区表突然分区空白一遍,然后我重新载入又可以显示,所有文件替换完后用lg up第一个模式重刷了一遍可以开机了,刷完后我进9008备份了grow出来的几K,应该是被lg up替换掉了,现在进9008也没发现问题,这样会对字库有什么影响吗?经常看有人说动9008容易损坏字库。
    2020-4-5回复
    gress: 为什么那么说是因为9008操作权限太大,一旦手贱……
    2020-4-6回复
    0777769: 回复 gress: 请问 我现在丢了laf。想解包个laf刷回去。请问解包出来的laf是得用9008刷进去呢?还是可以直接在fastboot或镧·系统工具箱下刷?
    2020-4-10回复
    还有2条回复,查看
  • 0 引用 11

    我测试了同一个KDZ文件,完全OK啊。

    2020-4-5 收起回复
    summer: 你这个grow解包出来也是4g多,是空分区吗?正常好像是几K,是软件问题还是,这样解出来4G的话应该不要刷入这个文件吧,刷进去容易损坏分区。
    2020-4-5回复
    frantdr: grow分区用澜工具箱备份出来就400kb而已
    2020-5-18回复
  • 0 引用 12
    我想提取vbmate 提取结果是3个文件 里边有一个vbmeta_a.image ,命令都没有问题,kdz包也重下了,问题出在哪呢?
    2020-5-16 收起回复
    gress: 什么意思??? vbmeta有两个,vbmeta_a和vbmeta_b,两个完全一样,扩展名不重要。
    2020-5-16回复
  • 0 引用 13
    问一下,用什么工具能把7-zip解压出来的,重新封包成Img文件
    2020-10-27 收起回复
    pla66141: 同问
    2021-2-14回复
    pla66141: 同问
    2021-2-14回复
  • 0 引用 14
    LG K61解包kdz后,dz却不能解包
    LG K61 (联发科P35)
    2021-1-31 回复
  • 0 引用 15
    请教一下刷回官方系统后送话器没有声音,录音是静音,吹mic孔能录到哒哒声!是刷的官方V500N20x_00_KT_KR_OP1027.kdz这个之后出现的怪事
    2021-2-3 回复
  • 0 引用 16
    dtbo分区无法用7zip打开,我备份的也打不开,但能用,怎么保证分区都是好的,G8V版想刷个ca,找了好久了
    2021-5-23 回复
  • 0 引用 17
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position 128: invalid continuation byte 提取boot时报错 是python的问题吗
    2021-11-2 回复
  • 0 引用 18
    楼主工具无法下载,期待修复
    2022-1-13 回复
  • 0 引用 19
    楼主工具无法下载,期待修复
    2022-2-15 回复
返回