/* * Class: com_sohu_focus_libandfix_AndFix * Method: setup * Signature: (ZI)Z */ JNIEXPORT jboolean JNICALL Java_com_sohu_focus_libandfix_AndFix_setup (JNIEnv * env, jclass clazz, jboolean isArt, jint apilevel){ isart = isArt; LOGD("vm is: %s , apilevel is: %i", (isArt ? "art" : "dalvik"),(int )apilevel); if(!isart){ return dalvik_setup(env,apilevel); }else{ return art_setup(env,apilevel); } }
static jboolean setup(JNIEnv* env, jclass clazz, jboolean isart, jint apilevel) { isArt = isart; LOGD("vm is: %s , apilevel is: %i", (isArt ? "art" : "dalvik"), (int )apilevel); if (isArt) { return art_setup(env, (int) apilevel); } else { return dalvik_setup(env, (int) apilevel); } }