增加riru注入隐藏,手上没手机,没法注入,有问题再修吧

This commit is contained in:
jiqiu2021
2024-11-15 15:27:04 +08:00
parent cca6a126ac
commit 074e03ca15
3 changed files with 103 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include <sys/stat.h>
//#include <asm-generic/fcntl.h>
#include <fcntl.h>
#include "newriruhide.h"
void load_so(const char *game_data_dir, JavaVM *vm, const char *soname) {
bool load = false;
LOGI("hack_start %s", game_data_dir);
@@ -76,6 +77,7 @@ void load_so(const char *game_data_dir, JavaVM *vm, const char *soname) {
if (handle) {
LOGI("Successfully loaded %s", new_so_path);
load = true;
riru_hide({"libriru.so"});
break;
} else {
LOGE("Failed to load %s: %s", new_so_path, dlerror());