KDZZ - Zip Package Creation Tool
For Building Flashable Zip Packages from KDZ Files
This tool is still in development!
This is an Alpha release and there may be bugs.
UPDATE 3/31/2019
Due to a recent KDZ format change, I've hit a wall in the development of this tool.
I started implementing native KDZ and DZ extraction using IronPython.
However, IronPython does not support Python3 which is required in order to properly extract the new KDZs.
With this being said, I am going to start development of a new cross-platform utility, and development of KDZZ will be discontinued.
I apologize for any inconvenience. This tool will still work as designed for old-format KDZs, and I will leave the repo online.
But I will not be working on this utility any longer.
-weakNPCdotCom
Supported Devices
- H872
- H930ds
- H932
Not Supported
- LG Aristo 3
*Unfortunately, some models like those listed above are not going to be compatible with this program using the procedure documented below.
The KDZ for these models contains persist and/or vendor images that are split into multiple chunks like the system image. The firmware extraction tool used only has the ability to merge system chunks.
If you are able to find a way to merge the persist/vendor binaries into one bin file, then it will work using the merged bin. However, that is above my skill level.
Requirements
- Windows PC
- H872 or H932 KDZ File you wish to create a package from
- Windows LG Firmware Extract Tool
- Extract the contents of the KDZZ zip file to the directory of your choice.
In Development
- Native KDZ/DZ Extraction
- System.img extract/repack
Usage Instructions
- Extract KDZ Using Windows LG Firmware Extract
- Set your working directory (i.e. C:UsersJDOEDesktopKDZFiles)
- Extract the DZ file from the KDZ
- Extract the bins from the extracted DZ file
- Merge the extracted System bins
- Run KDZZ
- Open CMD in Windows
- cd to KDZZ.exe directory or type
[path to KDZZ.exe] -p "[destination project directory path]" -b "[path to extracted kdz files]" - Example: C:UsersJDOEKDZZKDZZ.exe -p "C:UsersJDOEDesktopH87220f" -b "C:UsersJDOEDesktopKDZFiles"
- Hit enter and follow the prompts
Download
View Source
Additional Information
- KDZZ uses a JSON file "firmware.json" in order to dynamically build an updater-script and Zip package.
- Ideally, data can be added to the JSON file to allow support for additional devices.
- The JSON breaks down the primary file groups such as: bootloader, modem, dlmode/recovery, etc.
- It also specifies which of them do not have a "bak" partition.
- To add support for an LG device not listed, you can add another JSON object for your model to this file.
Code:
{
"devices": [
{
"model": "h872",
"bootloader": [
"aboot",
"apdp",
"cmnlib",
"cmnlib64",
"devcfg",
"factory",
"hyp",
"keymaster",
"msadp",
"pmic",
"raw_resources",
"rpm",
"sec",
"tz",
"xbl",
"xbl2"
],
"modem": [
"modem",
"persist",
"rct"
],
"primary": [
"boot",
"system"
],
"dlmode_recov": [
"laf",
"recovery"
],
"nobak": [
"apdp",
"factory",
"sec",
"boot",
"system"
]
}
}
I hope you find this tool helpful. If anybody has any issues with it, please contact me by PM or open a new issue in GitHub.
XDA:DevDB Information
KDZZ, Tool/Utility for the T-Mobile LG G6
Contributors
weakNPCdotCom
Source Code: https://github.com/adanvdo/KDZZ
Version Information
Status: Alpha
Created 2019-02-20
Last Updated 2019-03-31