Android: Templates and targets for building system image apks

system_image_stub_apk() can build a -Stub.apk for use with compressed
system image apk files (.apk.gz files).

system_image_apks() can create a single fused .apk, or a zip of apk
splits suitable for system image.

"Suitable" means:
 * Does not break out locales into separate splits
 * Compresses .dex files when fuse_apk=true

Bug: 1324820
Change-Id: Ib2843c7f9e1eb830ccec9a8dd2fba78b932c287f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3645630
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1003776}
NOKEYCHECK=True
GitOrigin-RevId: e3a775abd01882f7621381b31a2b73ca249f31d7
3 files changed