Android NDK Linking

185 views
Skip to first unread message

George A

unread,
Jun 4, 2024, 6:51:22 AMJun 4
to Chromium-dev
Hello, I am trying to work with some code that requires the use of a Binder in Android. I am trying to call the AIBinder_fromJavaBinder (https://developer.android.com/ndk/reference/group/ndk-binder#aibinder_fromjavabinder) method. It seems like this is only available in Android 29+ so I updated the minimum SDK version in build/config/android/config.gni. I can compile my code successfully, but the linker fails. I see that in third_party/android_toolchain/ndk/toolchains/.../aarch64-linux-android/29/libbinder_ndk.so exists. How exactly does this get pulled by the linker?

Mat Rollins

unread,
Jun 5, 2024, 5:53:26 AMJun 5
to Chromium-dev, George A
Reply all
Reply to author
Forward
0 new messages