16 KB backcompat mode
In plain words
On devices with a 16 KB kernel, the package manager may run apps with 4 KB-aligned ELF files in 16 KB backcompat mode; you can toggle it per app or per device, but apps should still be 16 KB aligned.
- The package manager runs an app in backcompat mode when it has .so ELF files with 4 KB LOAD segment alignment and the zipped APK has uncompressed ELF files that are 4 KB ZIP aligned.
- When the mode is enabled, the app shows a warning on first launch saying it runs in 16 KB backcompat mode.
- Backcompat mode lets some apps work, but for best reliability and stability apps should still be 16 KB aligned.
- Per app: toggle Run app with page size compat mode under Advanced on the app info page (visible only on 16 KB page size devices), or set android:pageSizeCompat to enabled or disabled in AndroidManifest.xml.
- Setting android:pageSizeCompat means the app won't display backcompat warnings at launch.
- For all apps on a device, force backcompat on or off with adb shell setprop commands; in Android 17 you can also force it off and make incompatible binaries abort immediately.
From the official text
Warning in page size compat mode The 16 KB backcompat option is available when a device is running with a 16 KB kernel. The package manager runs an app in 16 KB backcompat mode when the following conditions are met: - If the app has ELF files (with an .so extension) with a LOAD segment alignment of 4 KB. - If the …
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.