Skip to content

Commit 7102fcd

Browse files
committed
fix: failed injection of libzygisk.so
This commit fixes the issue of not being able to inject "libzygisk.so" due to trying to use the "libzygisk.so" in the temporary paths, which now don't exist anymore.
1 parent 9ab78ec commit 7102fcd

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

loader/src/ptracer/ptracer.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ bool trace_zygote(int pid) {
277277
}
278278

279279
if (STOPPED_WITH(SIGSTOP, PTRACE_EVENT_STOP)) {
280-
char lib_path[PATH_MAX];
281-
snprintf(lib_path, sizeof(lib_path), "%s/lib" LP_SELECT("", "64") "/libzygisk.so", rezygiskd_get_path());
282-
280+
char *lib_path = "/data/adb/modules/rezygisk/lib" LP_SELECT("", "64") "/libzygisk.so";
283281
if (!inject_on_main(pid, lib_path)) {
284282
LOGE("failed to inject");
285283

0 commit comments

Comments
 (0)