MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / registerArtNative

Function registerArtNative

Bcore/src/main/cpp/jnihook/ArtM.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void registerArtNative(JNIEnv *env) {
109 jclass clazz = env->FindClass("top/niunaijun/jnihook/jni/ArtMethod");
110 JNINativeMethod gMethods[] = {
111 {"nativeOffset", "()V", (void *) native_offset},
112 {"nativeOffset2", "()V", (void *) native_offset2},
113 };
114 if (env->RegisterNatives(clazz, gMethods, sizeof(gMethods) / sizeof(gMethods[0])) < 0) {
115 ALOGE("jni register error.");
116 }
117}
118
119void ArtM::InitArtMethod(JNIEnv *env, int api_level) {
120 registerArtNative(env);

Callers 1

InitArtMethodMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected