MCPcopy Create free account
hub / github.com/ALEX5402/NewBlackbox / init

Function init

Bcore/src/main/cpp/BoxCore.cpp:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void init(JNIEnv *env, jobject clazz, jint api_level) {
89 ALOGD("NativeCore init.");
90 VMEnv.api_level = api_level;
91 VMEnv.NativeCoreClass = (jclass) env->NewGlobalRef(env->FindClass(VMCORE_CLASS));
92 VMEnv.getCallingUidId = env->GetStaticMethodID(VMEnv.NativeCoreClass, "getCallingUid", "(I)I");
93 VMEnv.redirectPathString = env->GetStaticMethodID(VMEnv.NativeCoreClass, "redirectPath",
94 "(Ljava/lang/String;)Ljava/lang/String;");
95 VMEnv.redirectPathFile = env->GetStaticMethodID(VMEnv.NativeCoreClass, "redirectPath",
96 "(Ljava/io/File;)Ljava/io/File;");
97 VMEnv.loadEmptyDex = env->GetStaticMethodID(VMEnv.NativeCoreClass, "loadEmptyDex",
98 "()[J");
99
100 JniHook::InitJniHook(env, api_level);
101}
102
103void addIORule(JNIEnv *env, jclass clazz, jstring target_path,
104 jstring relocate_path) {

Callers 2

nativeHookFunction · 0.85
enableIOFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected