[DEV] *.wbd, what you know? - LG Optimus Black

Hello!
I'm trying get some information about the .wdb format, if anyone know something I really like to know about.
For example, the kdb is a crypted cab file, who have inside some other files.
Maybe a .dz and a .dll or a .dll and a .wdb, is there a "third option"?
I heard about CDMA and 3GQTC, it's how this files are "packed"? (in kdz)
I see that KP500 got a .wbd extractor, then, if we extract it, we got 5 different files *.dfat, *.fls and others...
So, what can we do with that files extracted from .wdb, what we won with this?
Can we create custom roms or something like that?
I think this concept work for all the LGE cellphones or almost everyone, right?
Thanks.
[]'s

You could use [1]TrID to see if it can tell something
[1]http://mark0.net/soft-trid-e.html

Probably inside the wdb there's the files that compose the rom, like the dz which contains the recovery.img, boot.img and so on. LG seems to have changed the decompress process as the KP500 lg utils cant decompress the wdb files. Maybe with the files we could create a new kdz and flash it, just like this tutorial
http://code.google.com/p/arenoid/wiki/KDZExtractPack

It's an encrypted archive that stores the fls file and bin files in multiple parts. It seems the decrypting function is inside the dll that's extracted from the kdz.

Answering my own question.
WDB is a container format, with several pieces of zlib streams, each representing a file, but encrypted.
Like a zip file

Related

Extract files from RUU Rom

Hi,
I searched around some here, but I'm stuck now... I have a Vodafone ROM Update where I want to extract some information/file from. So far I have managed to split it somehow with typhoonnbfdecode.pl, so I have some files that contain the different parts, as .nb files.
Where would I go from here, to get deeper into the image? Inside those files must be the cabs and stuff I think, how can I access them?
Lars
I'm not an expert on editing ROMs, but I also wanted to get the individual files out of a ROM upgrade, and this method worked for me.
I think you're looking for the utilities which were discussed and posted in this thread:
http://forum.xda-developers.com/viewtopic.php?t=34171
I used typhoonnbfdecode_v5 (only the v5 worked for me, not the other versions) then tools from the WM5 ROM Tools. The included tools.txt explains what you need to know, but basically prepare_imgfs.exe converts the nk.nb into imgfs_raw_data.bin, then viewimgfs.exe will dump the imgfs_raw_data.bin into the individual files from the ROM.
maybe I'm doing something wrong here...
typhoonnbfdecode.pl -x nk.nbf
!!! storedcrc=8f39f50f calculatedcrc=9cdb95a0
extracted OS_0
extracted Extension ROM_0
extracted GSM_0
extracted SPL_1
extracted IPL_1
extracted SPL_2
extracted IPL_2
extracted HTC Logo_0
extracted Splash Screen_0
prepare_imgfs.exe 9b000000-Extension.nb
Searching for IMGFS start... Not found!
So typhoonnbfdecode extracts several files from the .nbf file, but prepare_imgfs can't read it...
That's the same problem I was having until I found the typhoonnbfdecode_v5.exe. With the other typhoonnbfdecode versions, it looked like it was extracting the *.nb files, but they seemed to be corrupt.
I don't have the perl file that it was built from, but I found the compiled somewhere through a google search (can't remember if it was on the XDA forums or not). You can download it here http://www.exorzero.com/temp/typhoonnbfdecode_v5.exe
hm, funny... same result with this one...

Extracting files from KDZ

HI,
I am trying to get an apk from a KDZ file. I can open up the KDZ but then there are many other files inside. I guess the apks are in one of these other files. Does anyone know how to get the apk from within .img files etc?
Thanks
ballandbiscuit said:
HI,
I am trying to get an apk from a KDZ file. I can open up the KDZ but then there are many other files inside. I guess the apks are in one of these other files. Does anyone know how to get the apk from within .img files etc?
Thanks
Click to expand...
Click to collapse
How you extracted KDZ?
Why don't you get it from the sapps module zip on void's rom?
I need a particular app from the Orange UK ROM - the app is called Signal Boost and it is for UMA calling.
Is that app in the ROM you mention?
What you need is this: http://forum.xda-developers.com/showpost.php?p=6303911&postcount=827
It allows you to decompress system.mbn (where all the files are).
Compile it under linux, or use cygwin.
Remember that official ROMs are odexed. If you want to deodex apks, you can use dsixda's excelent kitchen. It is used to make lots of ROMs you see around here.
For that, take a look here (you can also use it under cygwin):
http://forum.xda-developers.com/showthread.php?t=633246
If you understand portuguese, or use a translator, check these:
http://www.androidpt.com/index.php?option=com_kunena&func=view&catid=97&id=91547&Itemid=30
http://www.androidpt.com/index.php?option=com_kunena&func=view&catid=97&id=97416&Itemid=30
Most info was gathered from xda forums, only translated and organized to portuguese folks.
Many thanks, I will see if I can get anywhere with this.
You just need to compile unyaffsmbn (gcc unyaffsmbn.c -o unyaffsmbn).
Then copy system.mbn to unyaffsmbn folder. Then do:
./unyaffsmbn system.mbn
You'll have all files extracted in few seconds.
Then if you want to use those files in kitchen, do this:
First install kitchen, as explained in link i posted above.
Delete all symlinks in bin/ (i think there are 52)
Then you must create a zip file with this structure:
/boot.img
/system/ (here you put all the files you extracted. You should have 10 folders and 1 file)
Now just copy this zip to PATH_TO_KITCHEN/original_update/
Then run it with:
cd PATH_TO_KITCHEN
./menu
Right I have three system.mbn files named:
system.mbn_0
system.mbn_1
system.mbn_2
I have tried a few tools (under Windows) to extract them. Firstly a windows compiled version of unyaffs which falls over with : Exception: STATUS_ACCESS_VIOLATION at eip=61100F73
I then tried another version which didn't error but also didn't do anything!
A different tool errored with "the header states that its binary is longer than the whole file" which makes me think perhaps these three files need combining into one?
I have tried combining them into one file using the copy /b command in Windows which creates a single large file but I still have the same issues trying to unpack it.
Any more ideas? Thanks
Right have now installed Cygwin and managed to extract the files using unyaffsmbn! Thanks for all your help, learnt a lot today!
Right I have three system.mbn files named:
system.mbn_0
system.mbn_1
system.mbn_2
Click to expand...
Click to collapse
How did you decompress kdz? I use LG Utils to extract to dz, then dzdecryptor to decompress dz to individual files. Then i use the tools i named to do the rest of it.
Also i can see that lg utils finds those system*, but puts them together before it ends. Maybe you used different software.
Anyway, i'm glad you managed to work it out
I have tried a few tools (under Windows) to extract them. Firstly a windows compiled version of unyaffs which falls over with : Exception: STATUS_ACCESS_VIOLATION at eip=61100F73
Click to expand...
Click to collapse
There is unyaffs, and unyaffsmbn. unyaffs also never worked with me.
I've read somewhere that with lg roms we must use unyaffsmbn. Don't remember were i saw it, neither why...
I used LG utils to extract the KDZ, then used DZExtract to expand the .dz file. Then I combined the system.mbn_0,1,2 files using copy /b.
I then used Cygwin and gcc to make unyaffsmbn.exe which then worked on the combined system.mbn file. Managed to get the apk I needed too.
PLease upload unyaffsmbn.exe for me please as i seriously need it.
Here you go...

[firmware] v10a lgp880 europe open

Here the first firmware of the lg p880, in my file there are the .kdz and the .dz with its .dll that I extracted from the .kdz. Only problem, I do not manage to extract the .dz, if somebody could advance the thing.
A thanks takes 2s and I hope that one will be able to use that for our optimus 2x.
the link : http://bayfiles.com/file/bRZx/AZaxbu/.kdz_et_.dz_.dll_LGP880.v10A.rar
Call to kdz superman flix
Sent from my LG-P990 using Tapatalk
Flix the KDZ Superman is busy with the new Kernels....FLIX are u hearing the calls of the O2X community?
Fly in FLIX.....we are waiting mate
Hey,
welcome back, spica. Now you can see I can make my own kernels.
I already tried to extract this firmware (it's on the server for a week now), but I don't get managed to extract it... It's not like in our O2X.
After extracting .kdz, you get a .dz file. I tried dz extractors I found, but I can't extract the dz file.
Maybe there's someone having more knowledge about these things?
Flix123 said:
Hey,
welcome back, spica. Now you can see I can make my own kernels.
I already tried to extract this firmware (it's on the server for a week now), but I don't get managed to extract it... It's not like in our O2X.
After extracting .kdz, you get a .dz file. I tried dz extractors I found, but I can't extract the dz file.
Maybe there's someone having more knowledge about these things?
Click to expand...
Click to collapse
that is really sad news....the superman says...cant extract...
Flix123 said:
Hey,
welcome back, spica. Now you can see I can make my own kernels.
I already tried to extract this firmware (it's on the server for a week now), but I don't get managed to extract it... It's not like in our O2X.
After extracting .kdz, you get a .dz file. I tried dz extractors I found, but I can't extract the dz file.
Maybe there's someone having more knowledge about these things?
Click to expand...
Click to collapse
Yes I saw it now and eaget to flash ur kernel
Does it need other tool fot dz:/
Sent from my LG-P990 using Tapatalk
I'd appreciate a feedback from you for my latest v1.2 Kernel. It's with my flix toolchain. The link is in my signature.
B2T: I don't know very much about blocks, converting, extracting etc. Extracting O2X firmwares is easy, just .img files.
I hope for a big community for the O4X because of this.
It may sound really stupid and I don't know **** about this subject but just want to think with you guys and maybe help a little. Maybe you can rename the .dz file to .img and then do the normal thing. Don't know if it works and you probably tried it already so...
I don't think renaming can convert a .dz to .img.
YEEAA ! spica's back gone for a few days only but seemed like a month xD.
and now its time for a silly question, what is the use of a optimus 4x hd firmware to us ? (besides some wallpapers ringtones and apps i guess)
edit: flix you can still try it, since it may be exatcly like that, maybe its the same container only renamed to .dz cant hurt to try after renaming the program might be able to access it
I tried to mount the file, it doesn't work.
But here's the system dump of the Optimus L7 (not by me, I was too late ):
http://jumbofiles.com/j6bnobsck4se
It should do the same good things to us. I already extracted the ringtones, wallpapers and icons of it:
http://forum.xda-developers.com/showthread.php?t=1635301
It is not terrible if one does not manage to extract the .dz.
An extraction would make it possible to see optimizations of the o4x and thus to use that in the o2x.
Only the total interface of the o4x for Rom stock o2x.
I wasn't able to extract anything either. The usual tools just won't work and even some strange Korean exe files from Google didn't help.
@flix: I hear you're called extraction superman... do you have any idea how to extract a p990 Baseband from a kdz file into a SINGLE fls file? I can extract them into 4 fls files, Paul OB had a way of getting a single fls file but I couldn't find any method for that :-(
Sent from my LG-P990 using XDA
tonyp said:
@flix: I hear you're called extraction superman... do you have any idea how to extract a p990 Baseband from a kdz file into a SINGLE fls file? I can extract them into 4 fls files, Paul OB had a way of getting a single fls file but I couldn't find any method for that :-(
Click to expand...
Click to collapse
I tried that, too. Obviously, it works with the "copy \b" command like the .img files but I didn't try such a copied baseband yet. But you could try it at your own risk.
The new LG PC SUITE for LGP880 thus I also think compatible for O2X also :
http://csmg.lgmobile.com:9002/swdat.../RST-1204-00311_LCsetup_5.1.15.20120413_4.zip
The .dll for flash the P880 :
http://csmg.lgmobile.com:9002/swdat...8/[LGFlashTool1377]LGP880_120518_Download.zip
For finish, the name of firmware .bin : LGP880AT-000-V10a-TMO-XXX-MAY-18-2012+0.zip
Please help to recover .
I cannot in which section thus put that if my post is badly placed thank you to move it to me in the good section.

[Q] How to get a .dz file to a .wdb file

Hey,
After a lot searching i have extract my .kdz file to 2 different files. a .dll and a .dz file. I am searching how can i get those files working in the Smartflashtool. Sow i need a app bin and a CP bin, On this moment i need to know how can i get those files?
- Can i extract a .kdz to a .wdb and .dll sow after that i can extract those to app bin and cp bin?
- Can i extract a .dz file after that compile it to .wdb and do the first step again?
- Is it possible to get from the .dz file also the app bin and the cp bin?
Wrong section sorry
Johrans said:
Hey,
After a lot searching i have extract my .kdz file to 2 different files. a .dll and a .dz file. I am searching how can i get those files working in the Smartflashtool. Sow i need a app bin and a CP bin, On this moment i need to know how can i get those files?
- Can i extract a .kdz to a .wdb and .dll sow after that i can extract those to app bin and cp bin?
- Can i extract a .dz file after that compile it to .wdb and do the first step again?
- Is it possible to get from the .dz file also the app bin and the cp bin?
Wrong section sorry
Click to expand...
Click to collapse
1)
kdz is a archive format, you can't choose what you get out of it. (It's like saying I want a image out of that random zip file)
Click to expand...
Click to collapse
2)
Ask novassoc He said some time ago he's working on dz files.
It should already be possible to extract dz file though, Check on the Optimus G forum.
I don't know to what it extracts possible bin/fls.
Click to expand...
Click to collapse
3)
Again I don't know to what it extracts and if or if not it's possible to revert to dz format. Should be possible.
Click to expand...
Click to collapse
I can give you lot more info about bin files if your interested, but you'd have to ask novassoc about kdz and wdb.
If dz decompiles to bin/fls then you should be able to create the dz file again, but after extracting the bin/fls file you should not create a bin/fls file again. It's possible, but it could kill your phone since emergency recovery usually relies on first or second stage bootloader and the bin/fls files overwrites it when flashing it on your phone and if something goes wrong.
xonar_ said:
1)
2)
3)
I can give you lot more info about bin files if your interested, but you'd have to ask novassoc about kdz and wdb.
If dz decompiles to bin/fls then you should be able to create the dz file again, but after extracting the bin/fls file you should not create a bin/fls file again. It's possible, but it could kill your phone since emergency recovery usually relies on first or second stage bootloader and the bin/fls files overwrites it when flashing it on your phone and if something goes wrong.
Click to expand...
Click to collapse
Thanks, Let we say we have the next files from different phones like the lg L5 e610 it has as firmware files a .dz and a .dll i know the .kdz files haves those files from those firmware. and also when it isnt a .kdz file its possible to encrypt it to .kdz
You know a lot about bin files. What contains a App.bin and a CP.bin when you use it for the SmartFlashTool. Because i wanne try to get from the Firmware files like ( .kdz or .dll or .dz) a app.bin and cp.bin,
Johrans said:
Thanks, Let we say we have the next files from different phones like the lg L5 e610 it has as firmware files a .dz and a .dll i know the .kdz files haves those files from those firmware. and also when it isnt a .kdz file its possible to encrypt it to .kdz
You know a lot about bin files. What contains a App.bin and a CP.bin when you use it for the SmartFlashTool. Because i wanne try to get from the Firmware files like ( .kdz or .dll or .dz) a app.bin and cp.bin,
Click to expand...
Click to collapse
Yes. There is already a tool somewhere to create kdz archive (One of LG's ones, you just have to use WindowsEnabler to get the option)
The bin file (AP) is basically a collection of data blocks and each data blocks usually correspond to partitions on the device.
The first meg is the header which contains the info about all the data blocks
like size on file,offset on file,size on device,offset on disk etc.
The layout of the header seems to be different for each phone. You can identify what type of bin file it is from it's magic number.
Then after the header the data blocks are just appended to the file. Doesn't have to be since the header allows there to be gaps and overlapping data blocks, but thats not practical so it will probably never be any other way.
You can check my tool for extracting bin files here. You can get alot more info on exactly how it's set out in my git by reading the sources.
I don't know to much about the fls file (CP) besides that it does a raw write of everything after what appears to be the header to somewhere in my phones nv partition and contains baseband information.
xonar_ said:
Yes. There is already a tool somewhere to create kdz archive (One of LG's ones, you just have to use WindowsEnabler to get the option)
The bin file (AP) is basically a collection of data blocks and each data blocks usually correspond to partitions on the device.
The first meg is the header which contains the info about all the data blocks
like size on file,offset on file,size on device,offset on disk etc.
The layout of the header seems to be different for each phone. You can identify what type of bin file it is from it's magic number.
Then after the header the data blocks are just appended to the file. Doesn't have to be since the header allows there to be gaps and overlapping data blocks, but thats not practical so it will probably never be any other way.
You can check my tool for extracting bin files here. You can get alot more info on exactly how it's set out in my git by reading the sources.
I don't know to much about the fls file (CP) besides that it does a raw write of everything after what appears to be the header to somewhere in my phones nv partition and contains baseband information.
Click to expand...
Click to collapse
Thanks, but still i am thinking why are there extractors for the kdz-> to cab -> to.wdb and .dll -> to App bin and CP bin but not from the kdz-> to cab -> .dz and .dll -> to App bin and CP bin.
is there sow big difference between the .dz and .wdb
I don't know much about what your talking here. I know that the complete firmware from LG comes in a v....kdz package. I know that ...cab containers are Microsoft's preferred format (something like ...zip or ...rar). I know ...bin stands for a lot BINary data files. I know that ...dll stands for Dynamic Data Library. That APPlications are often called app ...
... and I have the feeling that a lot different things are mixed together here. Sure xonar knows what he is talking about but the rest sounds like not much clue and the rest filled up with things you heard somewhere.
Sent from my LG-P970 using xda app-developers app
SaschaKH said:
I don't know much about what your talking here. I know that the complete firmware from LG comes in a v....kdz package. I know that ...cab containers are Microsoft's preferred format (something like ...zip or ...rar). I know ...bin stands for a lot BINary data files. I know that ...dll stands for Dynamic Data Library. That APPlications are often called app ...
... and I have the feeling that a lot different things are mixed together here. Sure xonar knows what he is talking about but the rest sounds like not much clue and the rest filled up with things you heard somewhere.
Sent from my LG-P970 using xda app-developers app
Click to expand...
Click to collapse
Let me try to explain a litle for y.
You know that a kdz file contains a cab file. Every cab file contains a .dll file.
But not every cab file contains a wdb.
Sow what i need is a wdb file from a cab what doesnt have a wdb file. Or i need a extractor what makes from a .dz file and a .dll file a cp Bin and Ap bin. ( .dz file is the other file what could be in the cab without a .wdb,)
For some more information: When you use the SmartFlashTool. You need 2 files the CP Bin and AP bin.
You can use a extractor to get from a KDZ file a wdb and .dll file. ( From those its possible to create the CP Bin and AP bin)
But when you dont have de WDB file but you have a .DZ file then i cant create a CP bin and AP bin.
thats the problem. Sow now how can i fix that
Johrans said:
Let me try to explain a litle for y.
You know that a kdz file contains a cab file. Every cab file contains a .dll file.
But not every cab file contains a wdb.
Sow what i need is a wdb file from a cab what doesnt have a wdb file. Or i need a extractor what makes from a .dz file and a .dll file a cp Bin and Ap bin. ( .dz file is the other file what could be in the cab without a .wdb,)
For some more information: When you use the SmartFlashTool. You need 2 files the CP Bin and AP bin.
You can use a extractor to get from a KDZ file a wdb and .dll file. ( From those its possible to create the CP Bin and AP bin)
But when you dont have de WDB file but you have a .DZ file then i cant create a CP bin and AP bin.
thats the problem. Sow now how can i fix that
Click to expand...
Click to collapse
Have you tried
DZ-Creator / DZ-Decrypter
or
DZTools
If that fails then you have to reverse engineer your dz file yourself.
The DZ file can't be converted to bin/fls from the looks of it. That is if your dz file is similar to the dz file in the KS20.
That dz file is a collection of data blocks much like the bin file, but they aren't interchangable and I don't think SFT will work with them.
xonar_ said:
Have you tried
DZ-Creator / DZ-Decrypter
or
DZTools
If that fails then you have to reverse engineer your dz file yourself.
The DZ file can't be converted to bin/fls from the looks of it. That is if your dz file is similar to the dz file in the KS20.
That dz file is a collection of data blocks much like the bin file, but they aren't interchangable and I don't think SFT will work with them.
Click to expand...
Click to collapse
OKey sow if i understand this correctly is the .dz a kind of like the bin file. If i read correctly on this forum the wdb is also a collection off files like a zip file.
I think your are right it isnt possible to replace the .dz for a .wdb sow i can flash it in the SFT
Johrans said:
OKey sow if i understand this correctly is the .dz a kind of like the bin file. If i read correctly on this forum the wdb is also a collection off files like a zip file.
I think your are right it isnt possible to replace the .dz for a .wdb sow i can flash it in the SFT
Click to expand...
Click to collapse
Yes.
I don't think it's possible to flash dz file to your phone with SFT.
xonar_ said:
Yes.
I don't think it's possible to flash dz file to your phone with SFT.
Click to expand...
Click to collapse
Thanks for the answers, i know its possible with the kdz flasher but that tool isnt real stable and doesnt do a factory reset after the flash. it must be manual then.

Is safe to open .dll files?

i want to open .dll files, but i will not edit the .dll file, it's safe to open .dll files?
A DLL file, short for Dynamic Link Library, is a type of file that contains instructions that other programs can call upon to do certain things. This way, several programs can share the abilities programmed into a single file, and even do so simultaneously.
Click to expand...
Click to collapse
I guess it would depend on where the file originated/got it from............
anyone has any suggestions what to do?
i have a file named splashscreen.dll and i got from android studio bumblebee zip file
Its depends where you downloaded that .DDLs files
the question is that how to open Dll files I also need to know because in Games there are many dll files use I need to edit dll files as well to improve gaming experience..

Categories

Resources