Current location - Quotes Website - Personality signature - Reverse JNI dynamic registration method
Reverse JNI dynamic registration method
Registration function registration

(* env)-& gt; RegisterNatives(env,clazz,nativeMethod,jint);

Type is JNINativeMethod.

The JNI _ onload (javavm * VM, void * reserved) function must finally put back the version value.

In IDA, you can locate the structural parameters by right-clicking RegisterNatives to display specific parameters, so as to select the forced call type.

Jni_all.h file:/jinmo/048776 db75067 dcd6c57f1154e65b868.

When tracing a nativeMethod, if multiple methods are registered.

Every three DCDs is a map.

The first DCD is a Java layer function.

The second DCD is the method signature.

The third DCD is the address of the function mapped to so.