J2V8 icon indicating copy to clipboard operation
J2V8 copied to clipboard

fix(android): align ELF segments to 16 KB pages for Android 15+ compliance (closes #605)

Open phanendharreddy opened this issue 6 months ago • 2 comments

This pull request updates the Android build process for J2V8 to ensure that all generated ELF binaries are properly aligned to 16 KB page boundaries. This change is necessary to meet new requirements for Android 15+ (API level 35 and above), as outlined in Issue #605. Specifically, I added the linker flag -Wl,-z,max-page-size=16384 to both the CMake and Android.mk build scripts. With these updates, all native libraries produced for Android will be compatible with the upcoming 16 KB page size mandate from Google Play, helping prevent installation or runtime issues on newer devices.

To verify the fix, I rebuilt the native libraries for all Android ABIs and used the recommended alignment check script to confirm that each .so file is now correctly aligned. No other changes were made outside of what was needed for this compliance update. If any further testing or tweaks are needed, please let me know!

https://github.com/eclipsesource/J2V8/issues/605

phanendharreddy avatar Jun 19 '25 19:06 phanendharreddy

Any news on when a release with this change will be available?

Taskmaster132 avatar Aug 06 '25 23:08 Taskmaster132

bumping, any eta for merge/release?

elPoyoLoco avatar Aug 18 '25 07:08 elPoyoLoco