microsoft / microsoft/onnxruntime-extensions
Enable Android 16 KB page size support
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 479
- Forks
- 144
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 11
Description
Add linker flags to support 16KB page size on Android.
In Android Studio, in the build.gradle file, using
implementation 'com.microsoft.onnxruntime:onnxruntime-extensions-android:0.13.0'
shows this warning
The native library arm64-v8a/libonnxruntime_extensions4j_jni.so (from com.microsoft.onnxruntime:onnxruntime-extensions-android:0.13.0) is not 16 KB aligned
See https://source.android.com/docs/core/architecture/16kb-page-size/16kb#build-lib-16kb-alignment
https://github.com/microsoft/onnxruntime/pull/22076
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Android build.gradle configuration and the native arm64-v8a/libonnxruntime_extensions4j_jni.so build path. Read the linked Android 16 KB page-size guidance and ONNX Runtime pull request for the required linker flags. Done means the Android artifact is 16 KB aligned and no longer produces the reported warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- build-system, mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100