Android sample code: HAL, native, jni java architecture implement