diff --git a/riru-core/build.gradle b/riru-core/build.gradle index 95ebfaa2..94ccd2aa 100644 --- a/riru-core/build.gradle +++ b/riru-core/build.gradle @@ -22,5 +22,5 @@ android { task zip(type: Exec) { workingDir '..' - commandLine 'sh', 'build.sh', project.name, 'v8' + commandLine 'sh', 'build.sh', project.name, 'v9' } \ No newline at end of file diff --git a/riru-core/jni/main/init.cpp b/riru-core/jni/main/init.cpp index ee81aa11..2319e6f0 100644 --- a/riru-core/jni/main/init.cpp +++ b/riru-core/jni/main/init.cpp @@ -326,6 +326,8 @@ void *riru_get_func(const char *module_name, const char *name) { auto it = module->funcs->find(name); if (module->funcs->end() != it) return it->second; + + if (i == 0) break; } } @@ -349,6 +351,8 @@ void *riru_get_native_method_func(const char *module_name, const char *className auto it = module->funcs->find(std::string(className) + name + signature); if (module->funcs->end() != it) return it->second; + + if (i == 0) break; } } diff --git a/riru-core/template_override/module.prop b/riru-core/template_override/module.prop index 102f9fef..d5bd9dff 100644 --- a/riru-core/template_override/module.prop +++ b/riru-core/template_override/module.prop @@ -1,7 +1,7 @@ id=riru-core name=Riru - Core -version=v8 -versionCode=8 +version=v9 +versionCode=9 author=Rikka description=Inject zygote process by replace libmemtrack.so, provide interface to other Riru modules. minMagisk=17000