[core] Fix illegal access
This commit is contained in:
parent
05656e0939
commit
46388d2e69
|
|
@ -78,7 +78,7 @@ namespace lspd {
|
||||||
parameter_types.push_back(TypeDescriptor::FromDescriptor(descriptor));
|
parameter_types.push_back(TypeDescriptor::FromDescriptor(descriptor));
|
||||||
}
|
}
|
||||||
|
|
||||||
ClassBuilder cbuilder{dex_file.MakeClass("LSPHooker")};
|
ClassBuilder cbuilder{dex_file.MakeClass("LspHooker_")};
|
||||||
cbuilder.set_source_file("LSP");
|
cbuilder.set_source_file("LSP");
|
||||||
|
|
||||||
auto hooker_type =
|
auto hooker_type =
|
||||||
|
|
@ -165,7 +165,7 @@ namespace lspd {
|
||||||
if (!mid) {
|
if (!mid) {
|
||||||
mid = JNI_GetMethodID(env, in_memory_classloader, "findClass", "(Ljava/lang/String;)Ljava/lang/Class;");
|
mid = JNI_GetMethodID(env, in_memory_classloader, "findClass", "(Ljava/lang/String;)Ljava/lang/Class;");
|
||||||
}
|
}
|
||||||
jobject target = env->CallObjectMethod(my_cl, mid, env->NewStringUTF("LSPHooker"));
|
jobject target = env->CallObjectMethod(my_cl, mid, env->NewStringUTF("LspHooker_"));
|
||||||
// LOGD("Created %zd", image.size());
|
// LOGD("Created %zd", image.size());
|
||||||
if (target) {
|
if (target) {
|
||||||
return (jclass) target;
|
return (jclass) target;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue