At the moment, try to change the code structure is a bit difficult to me.

Change the code back to all functions in jni files.