Not sure if general is the place for this but I'd like to start a "formal" discussion of the KDZ files and what they precisely contain.
full disclosure: I'm not a pro with all this stuff, I'm primarily just curious, and know my way around well enough I can do some basic investigating
Here's what I've looked at so far, and what I'd like to do:
So far:
The Telus E973 KDZ file retrieved from LG's servers contains a cab file, which was initially extracted using LGExtract (http://forum.xda-developers.com/showthread.php?t=1566532)
Inside the CAB is a .dz file and a .dll (G_TDR_0141.dll)
The .dz file does not contain any headers for existing "known" .dz file formats. (For example: http://www.frenchcoder.com/dzextract-lg-dz-file-format-and-extract-tool-lg-ks20/)
It would seem that flashing the kdz using the method outlined in potatohead's thread does not 100% recover from a brick, but seems to depend on what the actual problem with the phone is.
What I'd like to determine:
What exactly is in the KDZ? Does it contain all stock partitions for the phone or only selective partitions. (such as /system)
Out of pure curiosity, when I have time, I'd like to compare the hex of the .dz file, to see if it contains any of the known stock partitions such as the aboot, boot, or recovery. I have this sinking feeling that it doesn't include the recovery based on chadouming's experiences with it. to see if the .dz file is compressed in some proprietary fashion, or if it's a simple arrangement of the stock partitions with some standardized headers.
Please feel free to contribute, or criticize me, I'd just like to fuel some interest and discussion.
thracky said:
Not sure if general is the place for this but I'd like to start a "formal" discussion of the KDZ files and what they precisely contain.
full disclosure: I'm not a pro with all this stuff, I'm primarily just curious, and know my way around well enough I can do some basic investigating
Here's what I've looked at so far, and what I'd like to do:
So far:
The Telus E973 KDZ file retrieved from LG's servers contains a cab file, which was initially extracted using LGExtract (http://forum.xda-developers.com/showthread.php?t=1566532)
Inside the CAB is a .dz file and a .dll (G_TDR_0141.dll)
The .dz file does not contain any headers for existing "known" .dz file formats. (For example: http://www.frenchcoder.com/dzextract-lg-dz-file-format-and-extract-tool-lg-ks20/)
It would seem that flashing the kdz using the method outlined in potatohead's thread does not 100% recover from a brick, but seems to depend on what the actual problem with the phone is.
What I'd like to determine:
What exactly is in the KDZ? Does it contain all stock partitions for the phone or only selective partitions. (such as /system)
Out of pure curiosity, when I have time, I'd like to compare the hex of the .dz file, to see if it contains any of the known stock partitions such as the aboot, boot, or recovery. I have this sinking feeling that it doesn't include the recovery based on chadouming's experiences with it.
Please feel free to contribute, or criticize me, I'd just like to fuel some interest and discussion.
Click to expand...
Click to collapse
When I used KDZ I had my bootloader relocked and lost cwm.
Sent from my LG-E971 using xda app-developers app
theMaDHakkeR said:
When I used KDZ I had my bootloader relocked and lost cwm.
Sent from my LG-E971 using xda app-developers app
Click to expand...
Click to collapse
Good to know. I think the one case we've had so far where this didn't work had some "advanced" issues, possibly involving partition table being messed up, which I have a feeling the KDZ flash wouldn't touch.
SmartFlash will be nice to have it completely restore everything to factory default and it is easy to use.
But for SmartFlash we need to convert the KDZ files in to BIN and FLS.
There is a tool for that but works only for P990/P970/P920 firmware's.
http://forum.xda-developers.com/showthread.php?t=1692191
Unfortunately the Rom converter does not work with the firmware's from new phones like Optimus G / Optimus 4x.
d0ct0ru said:
SmartFlash will be nice to have it completely restore everything to factory default and it is easy to use.
But for SmartFlash we need to convert the KDZ files in to BIN and FLS.
There is a tool for that but works only for P990/P970/P920 firmware's.
http://forum.xda-developers.com/showthread.php?t=1692191
Unfortunately the Rom converter does not work with the firmware's from new phones like Optimus G / Optimus 4x.
Click to expand...
Click to collapse
I think this is due to the fact that they've made changes in the actual .dz format as any existing tool I've tried cannot find any known headers in the file. When I have some time I'm going to see if I can narrow down any patterns/headers.
thracky said:
Not sure if general is the place for this but I'd like to start a "formal" discussion of the KDZ files and what they precisely contain.
full disclosure: I'm not a pro with all this stuff, I'm primarily just curious, and know my way around well enough I can do some basic investigating
Here's what I've looked at so far, and what I'd like to do:
So far:
The Telus E973 KDZ file retrieved from LG's servers contains a cab file, which was initially extracted using LGExtract (http://forum.xda-developers.com/showthread.php?t=1566532)
Inside the CAB is a .dz file and a .dll (G_TDR_0141.dll)
The .dz file does not contain any headers for existing "known" .dz file formats. (For example: http://www.frenchcoder.com/dzextract-lg-dz-file-format-and-extract-tool-lg-ks20/)
It would seem that flashing the kdz using the method outlined in potatohead's thread does not 100% recover from a brick, but seems to depend on what the actual problem with the phone is.
What I'd like to determine:
What exactly is in the KDZ? Does it contain all stock partitions for the phone or only selective partitions. (such as /system)
Out of pure curiosity, when I have time, I'd like to compare the hex of the .dz file, to see if it contains any of the known stock partitions such as the aboot, boot, or recovery. I have this sinking feeling that it doesn't include the recovery based on chadouming's experiences with it. to see if the .dz file is compressed in some proprietary fashion, or if it's a simple arrangement of the stock partitions with some standardized headers.
Please feel free to contribute, or criticize me, I'd just like to fuel some interest and discussion.
Click to expand...
Click to collapse
I don't know about DZ files, but the wdb format that my P970 uses can be made into a AP bin file that is essentially all the partitions of the phone and all the partitions with size (size on the file, not size of partition on device) 0 is skipped over.
I say split up into partitions but it's actually data blocks and can cross over partitions since it uses raw write to device and it looks like a convenience that it's set up that way.
Check out this thread.
It's a tool for extracting kdz and wdb files (dz planned).
xonar_ said:
I don't know about DZ files, but the wdb format that my P970 uses can be made into a AP bin file that is essentially all the partitions of the phone and all the partitions with size (size on the file, not size of partition on device) 0 is skipped over.
I say split up into partitions but it's actually data blocks and can cross over partitions since it uses raw write to device and it looks like a convenience that it's set up that way.
Check out this thread.
It's a tool for extracting kdz and wdb files (dz planned).
Click to expand...
Click to collapse
I used the tool it's based on, LGExtract, to pull the .cab containing the .dz and the .dll in the first place, however we can't do anything with the .dz at the moment.
thracky said:
I used the tool it's based on, LGExtract, to pull the .cab containing the .dz and the .dll in the first place, however we can't do anything with the .dz at the moment.
Click to expand...
Click to collapse
Oops. Meant to point to LGExtract.
Sent from my LG-P970
Were you able to get a Sprint KDZ file? And if so, can I get a copy?
Thanks!
waldo36 said:
Were you able to get a Sprint KDZ file? And if so, can I get a copy?
Thanks!
Click to expand...
Click to collapse
http://csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=<yourimei>
t1mman said:
http :// csmg.lgmobile.com:9002/csmg/b2c/client/auth_model_check2.jsp?esn=<yourimei>
Click to expand...
Click to collapse
*Edited*
Ok, I got the website to send me the files, but they are all in .CAB format instead of KDZ. Do I need to alter them, unpack them, or something else, once they get done downloading?
Thanks!
waldo36 said:
Were you able to get a Sprint KDZ file? And if so, can I get a copy?
Thanks!
Click to expand...
Click to collapse
Already covered this with you on IRC but gonna mention it for anyone else interested:
We have .tot files for AT&T and Sprint to be used with LGNPST, which would be preferred.
Read the respective at&t/sprint LGOG forums for more info.
No KDZ download link after I insert E970 IMEI
piyopiyo81 said:
No KDZ download link after I insert E970 IMEI
Click to expand...
Click to collapse
E970 is AT&T isn't it? You should be using the .tot, and this is not the forum for AT&T or Sprint's Optimus G in the first place.
zVB Brick
Hello XDA Devs,
I successfully rooted my phone and unlocked the bootloader. I kept seeing warnings that if I reset my LG Optimus G (Sprint) after rooting, that it would crash and enter a bootloop. PRetty much Bricked. It wont power on, but I can enter download mode and fastboot mode. I tried to put the stock rom but the KDZ files don't appear. Somebody help!
thracky said:
E970 is AT&T isn't it? You should be using the .tot, and this is not the forum for AT&T or Sprint's Optimus G in the first place.
Click to expand...
Click to collapse
True, but the link does work for sprint. It gives cabs, which turn into tots with conversion. Any idea why some use tot and others use kdz?
Sent from my LG-LS970 using xda app-developers app
Need to extract a bin file from kdz? Contact me
Sent from my LG-P990 using xda app-developers app
Related
Hi All
I've searched and not found much info on this.
I've got a dump of an HTC HD7 using the Riff box (JTAG). The file is a 512MB BIN file.
Basically I would like to be able to see the files inside it. Ideally I would like to see the files/folders/structure inside the dump. I don't know how difficult or easy this is, so forgive me if I'm asking for the impossible. But is there a way of converting the bin file to something like a cab/nbh or even the files/folders so that I can view them in explorer or some similar tool?
At the moment I'm viewing the file in a hex editor trying to carve out certain files. But I figure since the file system and structure is known on Windows Phone 7, there may be a way of converting the entire image to a better support format.
So if anyone can suggest any tools or ways of doing this, it would be much appreciated.
Thanks
How do you use the jtag to get a dump of it? I don't know if you can use htcrie or not (search in this forum for the tool)
Sent from my SGH-i917 using XDA Windows Phone 7 App
snickler said:
How do you use the jtag to get a dump of it? I don't know if you can use htcrie or not (search in this forum for the tool)
Click to expand...
Click to collapse
I use the Riff Box which is supposed to a dump of the ROM/NAND, which it did, into a .bin file.
I've tried htcrie, but it doesn't load the bin file. I've tried looking for a tool that converts the .bin to a nbh, but found nothing so far
puunda said:
I use the Riff Box which is supposed to a dump of the ROM/NAND, which it did, into a .bin file.
I've tried htcrie, but it doesn't load the bin file. I've tried looking for a tool that converts the .bin to a nbh, but found nothing so far
Click to expand...
Click to collapse
Where do you get a riff box from? I want to dump my rom. I would look into the Windows Mobile threads and see if there is a tutorial OR pm ansar or xboxmod and see if they can help out. If possible can you provide how to obtain an use the riff box?
Sent from my SGH-i917 using XDA Windows Phone 7 App
nbh or nb it's for bootloader to write to nand, so it will have diff format with nand dump.
ted973 said:
nbh or nb it's for bootloader to write to nand, so it will have diff format with nand dump.
Click to expand...
Click to collapse
I'm not sure. I took a complete dump of the HD7 and it gave me a 512MB file in a .bin format. I believe that includes the bootloader and everything else, but I could be wrong.
I don't mind what kind of file it gets converted to, as long as I can view the files inside. Thanks
puunda said:
I'm not sure. I took a complete dump of the HD7 and it gave me a 512MB file in a .bin format. I believe that includes the bootloader and everything else, but I could be wrong.
I don't mind what kind of file it gets converted to, as long as I can view the files inside. Thanks
Click to expand...
Click to collapse
Try this thread http://forum.xda-developers.com/showthread.php?t=1260757 . There's something on there that speaks about WP7 Binary tools.
snickler said:
Try this thread http://forum.xda-developers.com/showthread.php?t=1260757 . There's something on there that speaks about WP7 Binary tools.
Click to expand...
Click to collapse
I've looked on that thread and have downloaded the tools. I've also messaged the author of the tool, but not got a reply yet. It looks like the tools which does work on the raw dump/bin files are for the logo and bootloader, not the entire image.
I'm still working on it, but there seems to be a lot of info that I need to sort though.
You may use Qualcomm tool from riff plugin. It's view all partitions
Missed this one.
No questions in the development section please!
Thread Closed
my phone somehow ended up from Taiwan to Romania and I'd like to change the baseband from 'LGE975AT-00-V10a-OPEN-TW-JAN-18-2013+0' to a more recent baseband for Romania or Europe without going all the way around and flashing the official kdz and then back to cm10.2. it would mean at least a day lost without learning anything.
I saw someone asking the same thing in the CM10.2 thread and the recommended solution didn't work for me. flashing the modem.img from http://downloads.codefi.re/houstonn/lgog/modem/E975_E977_E976 seems not to change that string displayed by cm (both 10.1 and 10.2).
I spent a couple of days trying several tools to retrieve the other partition images from the official kdz in order to maybe flash some of them with dd from cwm (modem, modemst1,modemst2 at least). I managed to obtain a dz file and a dll file and inside the dz I can see the msdos fat16 header of the modem image, but I'd rather not risk cutting it by myself.
so, does anybody know some tutorial/tool that can split the e975 kdz files or if the houstonn modem.img is ok and it's just the cm display of the baseband version that is broken?
CM 10.1 read baseband version from gsm.version.baseband
It is set on /system/bin/fetch-swv by:
setprop gsm.version.baseband `strings /dev/block/platform/msm_sdcc.1/by-name/misc | grep ^LG | tail -1`
You can set gsm.version.baseband manualy on /system/bin/fetch-swv (after every CM update) or try to modify misc partition.
t.
thanks a lot. I found that version string inside my misc partition. now I just need to find a way to extract that image from the official kdz. since freegee seems to modify it then there must be a way.
sonty said:
thanks a lot. I found that version string inside my misc partition. now I just need to find a way to extract that image from the official kdz. since freegee seems to modify it then there must be a way.
Click to expand...
Click to collapse
Here I posted the modem.img from version 10f.
http://forum.xda-developers.com/showthread.php?t=2459076
There are also instructions for backing up your current baseband.
Also, http://forum.xda-developers.com/showthread.php?t=1566532 .
This has instructions for unpacking kdz files. I didn't try this, so I don't know if it works.
dapaua said:
Here I posted the modem.img from version 10f.
http://forum.xda-developers.com/showthread.php?t=2459076
There are also instructions for backing up your current baseband.
Also, http://forum.xda-developers.com/showthread.php?t=1566532 .
This has instructions for unpacking kdz files. I didn't try this, so I don't know if it works.
Click to expand...
Click to collapse
it doesn't fully work because the kdz for optimus g apparently is not the same as the kdz for the p9*0 devices. it does open the kdz but after that there is no wdb file and it doesn't recognize some magic number.
as stated above the actual version string (and maybe other things also) are on the misc partition. if your phone is onlocked with freegee, could you please upload also your misc partition?
Hey Guys,
I did a stupid, and yes, I should know better, but I did not take a backup of my build.prop of my freshly rooted d852 when I edited it in Root Browser. It truncated, and lost the bottom part of the file before I noticed, and long story short, I'm missing some system sounds, and would like to know if anyone has a working d852 build.prop for a Rogers G3 Stock 4.4.2.
I downloaded the TOT file from a link in the help FAQ, and tried flashing using LG Flash tool, but it would get to a certain point, and Fail, not being able to switch to download mode, so I was not able to reflash to complete stock for whatever reason.
I'm now toying around with LG TOT Extractor, seeing if I can extract the ext4 FS files, and get a build.prop from there,
Any pointers?
Thanks
Everett
Did you try flash tool on windows 8? I Had a issue on windows 8 wich gave me the same error.
Download KDZ (http://lg-firmware-rom.com/)
Extract KDZ using this tool (http://forum.xda-developers.com/showthread.php?t=2600575)
Merge system.bin using the same tool
Extract build.prop by opening system.img using Diskinternals Linux Reader
And next time use this app instead of the stupid stock lg flash tool that requires tot files
http://forum.xda-developers.com/showthread.php?t=2797190
Friends !
I wanted to rip off some LG Software ( eg. Weather, Calender, Health etc) and ALL Google
Software from my KDZ File and flash this modified KDZ then onto my G4.
I´ve tested out some Custom Roms like LineageOS, Resurection and some other, all Google Free but they all drain out my Batterie fast or has some other issues.
The best working Rom for me is the Original V20g.
My G4 is rooted with Magisk. In TWRP i used GKillerExtreme.zip to eliminate all Google Stuff but after cleaning there are some Google Apps still on the Phone and can´t delete them.
So my Idea is to modify my KDZ file before flashing on the Phone.
------------------------------
I followed these Post to extract all Files from the KDZ:
https://forum.xda-developers.com/showthread.php?t=2666967
After extracting the *.dz file also i have a lot of *.bin files now.
So, how to working on with these *.bin Files now, how to open them, delete some Files are contained in the *.bin File and rebuild a flashable File?
Maybe there is a existing workaround here on XDA ?
Thank you all for a little Help.
-Ralf-
Foto-AG said:
Friends !
I wanted to rip off some LG Software ( eg. Weather, Calender, Health etc) and ALL Google
Software from my KDZ File and flash this modified KDZ then onto my G4.
I´ve tested out some Custom Roms like LineageOS, Resurection and some other, all Google Free but they all drain out my Batterie fast or has some other issues.
The best working Rom for me is the Original V20g.
My G4 is rooted with Magisk. In TWRP i used GKillerExtreme.zip to eliminate all Google Stuff but after cleaning there are some Google Apps still on the Phone and can´t delete them.
So my Idea is to modify my KDZ file before flashing on the Phone.
------------------------------
I followed these Post to extract all Files from the KDZ:
https://forum.xda-developers.com/showthread.php?t=2666967
After extracting the *.dz file also i have a lot of *.bin files now.
So, how to working on with these *.bin Files now, how to open them, delete some Files are contained in the *.bin File and rebuild a flashable File?
Maybe there is a existing workaround here on XDA ?
Thank you all for a little Help.
-Ralf-
Click to expand...
Click to collapse
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Code:
mkdir ./extractedSystem
sudo mount ./system.bin ./extractedSystem
Then you can access it through that folder. When you are done...
Code:
sudo umount ./extractedSystem
Extract: SALT
Mount: SALT (Advanced menu)
Flash: SALT (v4)
Ah yea and btw: you can't create your own kdz. Well you can but you can't flash it as it must be signed.
Sent from my LG-H815 using XDA Labs
ThePiGuy said:
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Then you can access it through that folder. When you are done...
Click to expand...
Click to collapse
Thank you very much. To mount a bin file as a Drive in Linux (FWUL ) is the Key. All other steps i will find in the next Days. Thx again.
steadfasterX said:
Extract: SALT
Mount: SALT (Advanced menu)
Flash: SALT (v4)
Ah yea and btw: you can't create your own kdz. Well you can but you can't flash it as it must be signed.
Click to expand...
Click to collapse
Thank you steadfasterx. I was think about to check Salt out too. I was reading about Salt alot and give it a try in the evening. Thx.
Foto-AG said:
Thank you steadfasterx. I was think about to check Salt out too. I was reading about Salt alot and give it a try in the evening. Thx.
Click to expand...
Click to collapse
when you use FWUL SALT is included
the flashing part of SALT is still in beta testing state thats why v4 is not (public) available yet ..
.
ThePiGuy said:
Don't know how you would rebuild it - I guess you would need to use a twrp script to flash them onto the partitions
As for modifying them, depends on the bin file. For system, you can mount it on Linux to a folder
E.g.
Then you can access it through that folder. When you are done...
Click to expand...
Click to collapse
Hey.
Doesnt work for me. Getting error in Terminal.
Mount: /home/android/extractedSystem: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or helper program, or other error.
So, im not so involved into Linux and have no idea whats wrong. Ive test with all .bin files but the error message pops up on every.bin file
My FWUL version is 2.7, the 8GB version on USB Stick.
Im pretty sure i did something wrong :angel:
Greetings
Ralf
steadfasterX said:
when you use FWUL SALT is included
the flashing part of SALT is still in beta testing state thats why v4 is not (public) available yet ..
.
Click to expand...
Click to collapse
Hey....
Hmmm no can not find SALT. No Icon, no Folder, unknown command in Terminal. Search term for salt give me no result.
Using FWUL 2.7 8GB version. FWUL did some little updates but still no SALT.
-Ralf-
Foto-AG said:
Hey....
Hmmm no can not find SALT. No Icon, no Folder, unknown command in Terminal. Search term for salt give me no result.
Using FWUL 2.7 8GB version. FWUL did some little updates but still no SALT.
-Ralf-
Click to expand...
Click to collapse
Consider to read through whats included in FWUL : https://forum.xda-developers.com/showpost.php?p=70272684&postcount=3
.. there are even screenshots..
.
steadfasterX said:
Consider to read through whats included in FWUL : https://forum.xda-developers.com/showpost.php?p=70272684&postcount=3
.. there are even screenshots..
.
Click to expand...
Click to collapse
Many thx. But i dont have the Samsung and LG Folder on the Desktop.
Will download FWUL tomorrow from XDA. My FWUL was dl from an other Website because i have speed issues when dl from XDA or the Androidhosting Service. More then 5 hrs for dl the FWUL image, somewhere in Texas or other US- State.
Thank you btw for your Support me.
Foto-AG said:
Many thx. But i dont have the Samsung and LG Folder on the Desktop.
Will download FWUL tomorrow from XDA. My FWUL was dl from an other Website because i have speed issues when dl from XDA or the Androidhosting Service. More then 5 hrs for dl the FWUL image, somewhere in Texas or other US- State.
Thank you btw for your Support me.
Click to expand...
Click to collapse
yea AFH can be slow..
you can use a nightly or my mirror here:
http://leech.binbash.it:8008/FWUL/
("stable" contains the 2.7)
btw tonight a new nightly is planned (if all goes well)
steadfasterX said:
yea AFH can be slow..
you can use a nightly or my mirror here:
http://leech.binbash.it:8008/FWUL/
("stable" contains the 2.7)
btw tonight a new nightly is planned (if all goes well)
Click to expand...
Click to collapse
Hey. My little response....
I did it and ripped off most of all the Bloatwares. Google is complete out off my Phone now and don't wont it back. It was a very hard and long process to eliminate all the Stuff. Alot of failures was coming up, alot of new image installings and start again over because i delered some Mainfeatures or essential Routines etc. OMG i don't want do this again in my life lol.
So its better to flash a google free Rom.
Okay, only my little response for this thread and Big Thanks to Steadyfast for the last Supports !
Good day,
Bricked my G710VM a few weeks ago and trying to get back. I know the process to get back to stock but a lot of fails extracting etc. To make it easy, lets just say I deleted all my partitions one by one and loaded new ones from the KDZ extract getting me to this point
- Latest KDZ file from lgfirmwares.com will extract with LG Firmware Extract
- DZ Extract with LG Firmware Extract WILL NOT produce good .bin files
- Hovatech extract program seems to produce DZ files with data
- LGUP will not recognize phone, even using UPPERCUT
- NO DL Mode, only EDL
- Can't find XML Files to DL online. Plan to make my own but even if I succeed, no LGUP access.
Any help is greatly appreciated. My mom has the same phone on stock I could use to pull whatever I need assuming it connects to LGUP. I have scoured this site and most that use english, I find others with the same issues but only a few seem to resolve
i have lg g710vm only this files can use, then crossflash to verizon kdz. i lost imei but i can keep using my phone only whit kdz verizo..
you need add apn for 4g....