Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Nov 5, 2018
1 parent e6626d7 commit fc49210
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion riru-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ android {

task zip(type: Exec) {
workingDir '..'
commandLine 'sh', 'build.sh', project.name, 'v8'
commandLine 'sh', 'build.sh', project.name, 'v9'
}
4 changes: 4 additions & 0 deletions riru-core/jni/main/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand All @@ -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;
}
}

Expand Down
4 changes: 2 additions & 2 deletions riru-core/template_override/module.prop
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fc49210

Please sign in to comment.