/* * Class: com_sohu_focus_libandfix_AndFix * Method: replaceMethod * Signature: (Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V */ JNIEXPORT void JNICALL Java_com_sohu_focus_libandfix_AndFix_replaceMethod (JNIEnv * env, jclass clazz, jobject src, jobject dest){ if(!isart){ dalvik_replaceMethod(env,src,dest); }else{ art_replaceMethod(env,src,dest); } }
static void replaceMethod(JNIEnv* env, jclass clazz, jobject src, jobject dest) { if (isArt) { art_replaceMethod(env, src, dest); } else { dalvik_replaceMethod(env, src, dest); } }