Hacker News new | ask | show | jobs
by jurgenkesker 38 days ago
APKs need to be zipaligned, I don't see that mentioned.
2 comments

This.

The APK number looks impressive if you don't know some files are uncompressed on purpose: https://developer.android.com/tools/zipalign

There's also no mention that this likely breaks signatures? https://developer.android.com/tools/apksigner

The weird thing is that they say they worked on Signal ... so, what's going on?

Fun fact, having page-aligned uncompressed .so files in the APK allows the dynamic linker to mmap them directly out of the ZIP.
Flashbacks of /OPT:NOWIN98 [1]. (That said, why not.)

[1] http://web.archive.org/web/20031018072659/http://msdn.micros...

Ooh, with btrfs you could reflink an uncompressed zip entry to its own file on disk.
…and you’ve rediscovered .a (ar) files.