Skip to content

Commit

Permalink
Disable dex hooking
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimjio committed Feb 19, 2023
1 parent 44eeed3 commit 1e9f4bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions module/src/main/cpp/main_riru.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static void specializeAppProcessPost(
JNIEnv *env, jclass clazz) {
// Called "after" com_android_internal_os_Zygote_nativeSpecializeAppProcess in frameworks/base/core/jni/com_android_internal_os_Zygote.cpp
if (enable_hack/* || enable_settings_hack */) {
if (enable_hack && Game::currentGameRegion == Game::Region::KOR) {
/*if (enable_hack && Game::currentGameRegion == Game::Region::KOR) {
SandHook::ElfImg art("libart.so");
lsplant::InitInfo initInfo{
.inline_hooker = InlineHooker,
Expand All @@ -86,7 +86,7 @@ static void specializeAppProcessPost(
classesDex->base, classesDex->length
);
}
}
}*/
int ret;
pthread_t ntid;
if ((ret = pthread_create(&ntid, nullptr,
Expand Down
4 changes: 2 additions & 2 deletions module/src/main/cpp/main_zygisk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class Module : public zygisk::ModuleBase {

void postAppSpecialize(const AppSpecializeArgs *args) override {
if (enable_hack /* || enable_settings_hack */) {
if (enable_hack && Game::currentGameRegion == Game::Region::KOR) {
/*if (enable_hack && Game::currentGameRegion == Game::Region::KOR) {
SandHook::ElfImg art("libart.so");
lsplant::InitInfo initInfo{
.inline_hooker = InlineHooker,
Expand All @@ -128,7 +128,7 @@ class Module : public zygisk::ModuleBase {
classesDex->base, classesDex->length
);
}
}
}*/
int ret;
pthread_t ntid;
if ((ret = pthread_create(&ntid, nullptr,
Expand Down

0 comments on commit 1e9f4bb

Please sign in to comment.