move JNI to NDK