Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Decompressing Executables

1 replies · 688 views · Started 28 April 2006

I have been trying for a week to write a tool to decompress the (compressed) Symbian 9.2 executables. Something similar to the PETRAN provided in the 9.2 (a source of PETRAN that does not seem to support compression can be found online).

I can successfully read the header and isolate the code/data sections, but I get an error as soon as I try to call deflate on these sections. I am decompressing on Windows with zlib 1.2.3.

The documentation insists that executables are compressed with deflate but the stream does not look like a zlib stream.
I have tried decompressing both as standard deflate and raw (no header, no Adler32) but I had no success.

Any suggestion?
Was anybody able to do this?
The closest thing I could find was this article:
http://www.antonypranata.com/articles/e32fileformat.html
But there is no explanation of how to decompress.

Thanks

G.