Skip to content

Conversation

YPandas
Copy link

@YPandas YPandas commented Sep 22, 2025

Update native libraries with 16KB page alignment support

Background

This change addresses compatibility issues with newer Android devices that use 16KB memory pages.

Changes

  • Replace .so files for arm64-v8a, armeabi-v7a, x86, and x86_64 with 16KB-aligned versions
  • Add ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES compiler flag for runtime compatibility
  • Configure linker flags: max-page-size=16384, common-page-size=4096

Testing

  • Verified libraries load correctly on devices with both 4KB and 16KB page sizes
  • Used native build v3.1.1 to build the .so files and tested streaming functionality on Android emulator - confirmed working correctly

- Replace .so files for arm64-v8a, armeabi-v7a, x86, and x86_64 with 16KB-aligned versions
- Remove armeabi support as it's deprecated in Android NDK
- Add ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES flag for compatibility with devices using 16KB pages
@YPandas YPandas requested a review from a team as a code owner September 22, 2025 20:53
@YPandas YPandas changed the title Update native libraries with 16KB page alignment support fix: Update native libraries with 16KB page alignment support Sep 22, 2025
@tylerjroach
Copy link
Member

Change for #3673

Copy link
Member

@tylerjroach tylerjroach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we still have an armeabi folder with an old .so file. Can you update that as well?.

Remove armeabi support as it has been deprecated since Android NDK r17 and is no longer supported.
@YPandas
Copy link
Author

YPandas commented Sep 23, 2025

Looks like we still have an armeabi folder with an old .so file. Can you update that as well?.

Hi Tyler, the armeabi architecture was officially deprecated and removed from the Android NDK in 2018 so I just deleted the folder. Please let me know if you have any concerns about this change

@tylerjroach
Copy link
Member

That should be good especially given min sdk version for KinesisVideo is 24.

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.

2 participants