Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
RikkaW committed Mar 12, 2019
1 parent 873908b commit 37be580
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
applicationId "moe.riru.manager"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "0.0.1"
versionCode 3
versionName "0.0.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/cpp/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static jstring get_nativeForkAndSpecialize_signature(JNIEnv *env, jobject thiz)
static void *sym;
void *handle;
if ((handle = get_handle()) == nullptr) return nullptr;
if (sym == nullptr) sym = dlsym(handle, "riru_nativeForkAndSpecialize_signature");
if (sym == nullptr) sym = dlsym(handle, "riru_get_original_native_methods");
if (sym) {
auto method = ((const JNINativeMethod *(*)(const char *, const char *, const char *)) sym)(
"com/android/internal/os/Zygote", "nativeForkAndSpecialize", nullptr);
Expand All @@ -111,7 +111,7 @@ static jstring get_nativeForkSystemServer_signature(JNIEnv *env, jobject thiz) {
static void *sym;
void *handle;
if ((handle = get_handle()) == nullptr) return nullptr;
if (sym == nullptr) sym = dlsym(handle, "riru_get_original_native_methods_addr");
if (sym == nullptr) sym = dlsym(handle, "riru_get_original_native_methods");
if (sym) {
auto method = ((const JNINativeMethod *(*)(const char *, const char *, const char *)) sym)(
"com/android/internal/os/Zygote", "nativeForkSystemServer", nullptr);
Expand Down

0 comments on commit 37be580

Please sign in to comment.