Fix code and resolve runtime issues
In plain words
Even if your app is 16 KB-aligned, you must remove code that assumes a specific page size (such as 4 KB) and check page-aligned APIs like mmap().
- Remove hard-coded dependencies on the PAGE_SIZE constant and any logic assuming a 4 KB (4096) page size; use getpagesize() or sysconf(_SC_PAGESIZE) instead.
- Look for mmap() and other APIs that require page-aligned arguments, and replace them with alternatives where necessary.
- PAGE_SIZE used as a convenient value not tied to the real page size won't break in 16 KB mode, but passing it to mmap without MAP_FIXED still makes the kernel use a whole page, wasting memory.
- PAGE_SIZE is undefined when 16 KB mode is enabled on NDK r27 and higher.
- If you use PAGE_SIZE this way and never pass it directly to the kernel, create a new variable with a different name instead.
From the official text
Even if your app is 16 KB-aligned, your app can encounter errors if places in your code assume that a device is using a specific page size. To avoid this, complete the following steps: 1. Remove any hard-coded dependencies that reference the PAGESIZE constant or instances in your code logic that assume that a device's …
Read the full official text ↗ Open in the StoreRules library Ask whether your app complies
Change history
No substantive change since StoreRules began tracking it.
Developers' cases about this clause
No cases yet.