Adding JNI hooks to access assets.