System app에서 so file을 로딩하기 위한 방법으로 아래와 같이 library를 추가해 준다.
차이는 아래와 같이 LOCAL_JNI_SHARED_LIBRARIES를 사용할 경우 system/lib 경로에 so 가 복사된다.
LOCAL_JNI_SHARED_LIBRARIES := libbluetooth_jni
out/target/product/project/system$ find . -name "libbluetooth_jni.so"
./lib/libbluetooth_jni.so
./app/Bluetooth/lib/arm/libbluetooth_jni.so
LOCAL_PREBUILT_JNI_LIBS_arm := libs/armeabi-v7a/libAesJni.so
system$ find . -name "libAesJni.so"
./priv-app/RemoteVoiceInput/lib/arm/libAesJni.so
'android' 카테고리의 다른 글
Android Custom KeyCode 추가 (0) | 2018.06.21 |
---|---|
[NDK] so 포함한 apk가 so loading 실패 (3) (0) | 2018.06.19 |
[NDK] so 포함한 apk가 so loading 실패 (0) | 2018.06.18 |
android sdk build tool update 방법 (0) | 2018.06.18 |
platform build with app including gradle. (0) | 2018.06.18 |