Skip to content

Add 16KB page size support for Android 15+#569

Open
dilumdesilva wants to merge 1 commit intosuperlistapp:mainfrom
dilumdesilva:fix/android-16kb-page-size
Open

Add 16KB page size support for Android 15+#569
dilumdesilva wants to merge 1 commit intosuperlistapp:mainfrom
dilumdesilva:fix/android-16kb-page-size

Conversation

@dilumdesilva
Copy link

@dilumdesilva dilumdesilva commented Feb 10, 2026

Summary

This PR adds support for Android 15+'s 16KB page size requirement by adding the necessary linker flags for arm64-v8a and x86_64 architectures.

Fixes #560

Changes

  • Added -Wl,-z,max-page-size=16384 linker flag for 16KB page alignment
  • Added -Wl,--hash-style=both for compatibility
  • Only applies to arm64-v8a and x86_64 (as per Android documentation)

Important Note

This fix only addresses super_native_extensions. For full 16KB compatibility, the dependency irondash_engine_context (from irondash) also needs the same linker flags applied. A similar PR should be raised there, or users will need to vendor/override irondash_engine_context with 16KB-aligned binaries.

Testing Branch

For anyone who wants to test immediately without Rust installed, I've published a branch with pre-built 16KB-aligned binaries (including vendored irondash_engine_context):

 dependency_overrides:
   super_native_extensions:
     git:
       url: https://github.com/dilumdesilva/super_native_extensions
       ref: main

References

Testing

  • Built and verified ELF binaries show 0x4000 (16KB) alignment for LOAD segments
  • Tested on Android 15 device successfully

@ernysans
Copy link

@dilumdesilva, thank you for the fix.

@knopp, this PR addresses the issue. Please review, as the Play Store enforces a 16KB page size. Thank you.

Adam-Langley pushed a commit to Adam-Langley/super_native_extensions that referenced this pull request Mar 20, 2026
Which maintainer has not merged into mainline repo.

- Add 16KB page size support for Android 15+ superlistapp#569
- chore(deps): update device_info_plus version constraint to <13.0.0 superlistapp#553
- MinRisk: upgrade android compileSdkVersion from 31 -> 36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

16 Kb page memory size are not supported !!!

2 participants