Re-invent page aligning libraries in APK file.
With this change setting 'load_library_from_zip_file' to 1 will now construct the APK with a new tool chain. The purpose of this change is to contruct the APK in such a way that the page alignment is not broken by the chrome signing process. To achieve this the tool is written in Java so it shares the same underlying JarOutputStream implementation. The key things that we depend on are that the filenames are output in lexographical order with the META_INF files at the end of the file. That zipalign adds 4 byte alignment to STORED files and this is done by adding padding to the zip extra field. BUG=390618 Review URL: https://codereview.chromium.org/595933003 Cr-Commit-Position: refs/heads/master@{#297439}
Showing
This diff is collapsed.
Please register or sign in to comment