On Jan 29, 8:05 am, "Mark Murphy" <[email protected]> wrote: > APK is a plain old ordinary ZIP file. Off the top of my head, I do not > know which ZIP level they are using. They do have some smarts, IIRC, to > skip compressing things already known to be compressed (e.g., PNG), but > I'd be a bit surprised if that extended to .gz files.
It's using zlib with Z_BEST_COMPRESSION. aapt has a list of extensions that don't get compressed; see frameworks/base/tools/aapt/Package.cpp. If aapt is asked to add a ".gz" file to an archive, it will effectively gunzip the file and store it compressed. What it actually does is extract the compressed data from the .gz file, strip headers/ footers, insert it into the zip file, and mark the entry as "deflated". This works because the same "deflate" algorithm is used by both zip and gzip. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

