kdztools
kdztools copied to clipboard
[!] Error: pad is not empty
I'm trying to get the .img files out of a KDZ archive in hopes of being able to flash them to my tablet (which has TWRP which can flash img files). So I extracted the kdz and got these files:
kdz_extras.bin LGUP_c.dll LGUP_c.dylib V52120f_00.dz
But I can't extract the V52120f_00.dz
file with - i OR -x
gradyn@gradyn-laptop:~/Downloads/LGTools/kdztools/kdzextracted$ ls
kdz_extras.bin LGUP_c.dll LGUP_c.dylib V52120f_00.dz
gradyn@gradyn-laptop:~/Downloads/LGTools/kdztools/kdzextracted$ ../undz -xf V52120f_00.dz
[!] Error: pad is not empty
gradyn@gradyn-laptop:~/Downloads/LGTools/kdztools/kdzextracted$ ../undz -if V52120f_00.dz
[!] Error: pad is not empty
For your immediate need, commenting out lines 87-89 will disable that check and get the data out.
undz.py
was written to check the data pretty heavily so as avoid errors and ensure all fields were understood so as to allow recreating new KDZ files. This indicates LG has changed their format again and thus a previously true assertion is suddenly untrue. If you could point towards where you got that file I could aim to provide a real fix.
Just for your information, I ran into this error as well. Since the guy before did not post a link to the actual image, the one I ran into it on is found there.
https://lg-firmwares.com/download-file/?fileId=10105
And is file VS98812B_02_0720_ARB00.kdz
Obviously, this is after extracting the dz from the kdz using your tool.
Hopefully this will help in solving the bug.