Android 15 (AOSP experimental) and higher have support for building Android with a 16K page size. This option uses additional memory but improves system performance.
16K pages is only supported on arm64
targets with 16K kernels.
To enable 16k pages, set the following build options on a device:
PRODUCT_PAGE_SIZE_AGNOSTIC := true
removes thePAGE_SIZE
define, and it makes components determine page size at runtime.PRODUCT_MAX_PAGE_SIZE_SUPPORTED := 65536
which ensures platform ELF files are built with 64K alignment. This larger-than-needed size is for future compatibility.