microsoft / microsoft/onnxruntime-inference-examples

mobile/examples/Qwen_QA/Android

Open
#547 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.7k
Forks
414
Avg merge
1d 6h
Merged PRs (30d)
14

Description

I encountered an issue with the APK (app-debug.apk) related to compatibility with 16 KB devices. The problem is that some libraries have LOAD segments that are not aligned to 16 KB boundaries. Specifically, the affected libraries are:

lib/x86_64/libonnxruntime-genai-jni.so

lib/x86_64/libonnxruntime-genai.so

As per the new Google Play policy, starting from November 1st, 2025, all new apps and updates to existing apps targeting Android 15+ devices must support 16 KB page sizes. Therefore, we need to ensure that these libraries' LOAD segments are properly aligned to 16 KB boundaries to maintain compatibility with these devices.

Could you please look into this and resolve the alignment issue to ensure compliance with the new requirements?

For more details, you can refer to the Android Developer Documentation on 16 KB page size
.

Thank you for your assistance!

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 by inspecting mobile/examples/Qwen_QA/Android/app-debug.apk and the reported lib/x86_64/libonnxruntime-genai-jni.so and lib/x86_64/libonnxruntime-genai.so files, then read the linked Android 16 KB page-size guidance. Done means both libraries have LOAD segments aligned to 16 KB boundaries and the APK remains compatible with Android 15+ requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
build-system, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.