COD Files
From Blackberry BrickBreaker
A COD file appears to be a generic binary executable file for the BlackBerry family of devices.
General Overview
COD files are uploaded to the Blackberry Handhelds using a USB link or wirelessly. They can be thought of as an Application or Icon that will show up in your Blackberry.
BrickBreaker, being an Application, is also distributed as a pair of COD files which come embedded in the BlackBerry OS release. The actual COD file can be extracted from the distribution using the MSIEXEC Microsoft Installer tool.
Recognizing a BlackBerry COD file
A COD can be one of two types of files:
- A Single Binary Executable file (standalone)
- Two or more Binary Executable files compressed together in a ZIP/JAR archive. These .COD archives can be renamed to have a .ZIP file extension, then decompressed into their individual standalone .COD binary executables.
The latter can be easily distinguished by the classic PK header signature (first two bytes) of the age-old ZIP/JAR file archives created by Phil Katz in the early 90's.
A plain COD file will always begin with the byte sequence DE-C0-FF-FF, part of the Code Header signature as discovered by Dr. Bolsen in his thorough attempts to unveil the COD file structure.
At the time of this writing, if a file bearing the .COD file extension does not begin with the byte sequence DE-C0-FF-FF or 50-4B (PK) then this file is not a valid BlackBerry COD file.
COD File Structure
Much like any Operating System binary executable, the COD file will have a Code segment and a Data segment embedded in the file. Information about the offsets of these segments is revealed in the first 44 bytes, the COD [http://en.wikipedia.org/wiki/Header_%28information_technolog
