Update JNI code and NDK file