change the algorithm of jni