microsoft / microsoft/onnxruntime-extensions

Enable Android 16 KB page size support

Open
#950 14 comments 9 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.