16k: Sign the APKs to support 4k/16k page sizes

The page agnostic targets have to support 4k/16k page sizes. For
these targets, the APKs have to be aligned at 16k boundaries.

Bug: 302343940
Test: source build/envsetup.sh
      lunch aosp_cf_arm64_phone_pgagnostic
      m
      launch_cvd -userdata_format=ext4
Change-Id: Ia0e39a90c0d6a3e62d450157fdfd5e3ee36d346e
This commit is contained in:
Juan Yescas 2023-10-16 09:20:00 -07:00
parent 14e0d156fb
commit 5c6b6f24a3

View file

@ -687,7 +687,7 @@ class SignApk {
if (entryName.endsWith(".so")) {
// Align .so contents to memory page boundary to enable memory-mapped
// execution.
return 4096;
return 16384;
} else {
return defaultAlignment;
}