Backward Compatibility of 16 KB ELF Alignment with Older Android Versions #2184
-
Question: Backward Compatibility of 16 KB ELF Alignment with Older Android VersionsHi all, I’m distributing an SDK to customers using the Android NDK, and I have a question about the upcoming 16 KB page size requirement that Google is enforcing starting November 2025. According to the AOSP doc here:
This makes it clear that on Android 15+ with 16 KB kernels, 16 KB ELF alignment works as expected. But here’s my main concern: I plan to test this myself (building arm64 ABI with NDK r28 and running on Android 9–14 consumer phones), but many of our customers use customized/industrial Android devices. Without an official confirmation from Google, I expect customers will raise a lot of questions about backward compatibility. So my question is:
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Prior to 16KiB alignment, Android required 4KiB alignment. 16 is a multiple of 4, so all your 16KiB aligned things are by definition 4KiB aligned. |
Beta Was this translation helpful? Give feedback.
Prior to 16KiB alignment, Android required 4KiB alignment. 16 is a multiple of 4, so all your 16KiB aligned things are by definition 4KiB aligned.