The Android 15 page size change refers to Google's shift toward 16 KB memory pages on newer devices, replacing the traditional 4 KB pages used in most Android versions. This change affects app developers and users because apps must be compiled with 16 KB alignment to run natively, while older 4 KB apps may rely on compatibility modes or need updates.

Background: Why Android Is Moving to 16 KB Pages

Memory pages are the fixed-size blocks that the operating system uses to manage virtual memory. For decades, Android devices used 4 KB pages, matching the Linux kernel's default. However, as smartphones gain more RAM and storage, larger pages offer efficiency gains: the CPU can map more memory with fewer translation lookaside buffer (TLB) entries, reducing overhead and improving performance in memory-intensive workloads like gaming, AI inference, and large media files. Google announced the 16 KB page size initiative in 2023, with Android 15 being the first version to fully support it on new devices. The goal is to align Android with modern hardware and server-class memory management, though it requires coordinated changes across the kernel, userspace libraries, and apps.

How the Page Size Change Works

In a 4 KB system, every memory allocation is divided into 4 KB chunks. With 16 KB pages, each chunk is four times larger. This means the operating system can address the same amount of memory with fewer page table entries, which speeds up address translation. For apps, the change primarily affects native code (C/C++ libraries) because the linker and loader must align segments to the page size. Android 15 devices with 16 KB pages run apps that are compiled with the -Wl,-z,max-page-size=16384 flag, which ensures that ELF segments are aligned to 16 KB. Apps that are not built this way may still run, but they might trigger a compatibility mode that loads them as 4 KB, losing some performance benefits. Google has also provided a 16 KB ELF alignment tool for developers to check and fix their binaries.

How to Check and Adapt Your App

If you are a developer, you need to ensure your app is compatible with 16 KB page size devices. Here are the steps:

  • Check your app's native libraries: use the readelf -l command on your .so files to see the alignment. If the LOAD segments show an alignment of 0x1000 (4 KB), you need to rebuild with a 16 KB alignment.
  • Update your build system: in Android Gradle Plugin (AGP) 8.3.0 or later, you can set android.defaultConfig.ndk.abiFilters and add the linker flag -Wl,-z,max-page-size=16384 to your CMake or ndk-build configuration.
  • Test on a 16 KB emulator image: Google provides a system image for the Pixel 8 and Pixel 8 Pro with 16 KB pages, which you can download from the SDK Manager.
  • Consider using the zipalign tool with the -P 16 option to align your APK's uncompressed .so files to 16 KB.

If you are a user, you don't need to do anything. Apps that are not updated will still work, but they may run in a compatibility mode that could affect performance. Google Play will gradually require 16 KB alignment for new app updates starting in November 2025, but older apps will remain available.

Common Problems and Misconceptions

One common misconception is that 16 KB pages will break all existing apps. In reality, most apps are written in Java/Kotlin and run on the Android Runtime (ART), which is already 16 KB compatible. Only native code that directly manipulates memory or uses custom linkers might have issues. Another problem is that some apps use static buffers or assume a 4 KB alignment, which can cause crashes on 16 KB devices. For example, a library that allocates a buffer with mmap and expects the address to be aligned to 4 KB might fail. Developers should test on a 16 KB device to catch these issues. Additionally, some users worry that 16 KB pages will increase memory usage because each allocation is rounded up to 16 KB. While that is true for small allocations, the efficiency gains from reduced TLB misses usually outweigh the overhead, and the system uses a memory allocator that minimizes waste.

Comparison: 4 KB vs. 16 KB Page Sizes

The table below summarizes the key differences:

  • TLB coverage: 16 KB pages allow the TLB to cover four times more memory, reducing misses and improving performance in memory-heavy workloads.
  • Memory overhead: 16 KB pages can waste more memory for small allocations, but modern allocators like Scudo (Android's default) are designed to handle this efficiently.
  • App compatibility: 4 KB apps run on 16 KB devices via compatibility mode, but may lose some performance. 16 KB apps run natively and can take full advantage of the hardware.
  • Kernel and system libraries: Android 15's kernel and core libraries are compiled for 16 KB, but they also support 4 KB for backward compatibility on older devices.

In practice, benchmark tests from Google and early adopters show that 16 KB pages can improve performance by 5-10% in some scenarios, especially in games and apps that use large datasets.

Costs and Benefits for Users and Developers

For users, the change is mostly invisible. There is no cost, and the benefit is a smoother experience on new devices. For developers, there is a cost in terms of time and effort to update native libraries and test on 16 KB devices. However, Google has made the transition relatively easy with tooling and documentation. The main cost is that older devices will remain on 4 KB, so developers must maintain compatibility with both page sizes. This is similar to the transition from 32-bit to 64-bit CPUs, which took several years. The benefit for developers is that their apps will perform better on future devices, and they can take advantage of new features that require larger pages.

How to Test Your Device's Page Size

If you want to know whether your Android device uses 4 KB or 16 KB pages, you can run a simple command in a terminal app or via ADB:

  1. Open a terminal or connect your device to a computer with ADB.
  2. Run the command: getconf PAGE_SIZE. This will output either 4096 or 16384.
  3. Alternatively, you can check the kernel configuration by running cat /proc/self/smaps | head -1 and looking at the KernelPageSize field.

As of early 2025, only a few devices like the Pixel 8 series (with a special developer image) and some new flagship phones from other manufacturers ship with 16 KB pages. Most devices still use 4 KB, but that will change over the next few years.

Frequently Asked Questions

Will my old apps stop working on Android 15 with 16 KB pages?

No, they will not stop working. Android 15 includes a compatibility mode that allows 4 KB apps to run on 16 KB devices, but they may experience a slight performance hit. Google has stated that all apps will continue to work, but they encourage developers to update for optimal performance.

How do I know if my app is 16 KB compatible?

You can check your APK's native libraries using the readelf tool or use the Android Studio's APK Analyzer to see the alignment of the LOAD segments. If they are aligned to 0x1000, they are 4 KB; if aligned to 0x4000, they are 16 KB. Google also provides a check_elf_alignment.sh script in the Android NDK.

Does the page size change affect battery life?

Indirectly, yes. Because 16 KB pages reduce CPU overhead and improve memory efficiency, apps can run faster and use less power, which can lead to better battery life. However, the effect is small and varies by usage.

Can I force my device to use 16 KB pages?

No, the page size is determined by the kernel configuration at boot time. You cannot change it without recompiling the kernel, which is not practical for most users. You would need to install a custom kernel that supports 16 KB pages, but that is risky and not recommended.

Will 16 KB pages affect gaming performance?

Yes, games that use large textures and assets can benefit from 16 KB pages because they reduce TLB misses. Early benchmarks show a 5-10% improvement in some games, but the actual impact depends on the game's memory access patterns.

Is 16 KB page size the same as 64 KB page size on some ARM servers?

No, they are different. Some ARM servers use 64 KB pages, but Android has chosen 16 KB as a compromise between 4 KB and 64 KB, balancing compatibility and performance. 64 KB pages would cause too much memory waste for mobile devices.