Riru and its modules are not compatible with zygisk

This commit is contained in:
topjohnwu 2021-09-23 23:54:46 -07:00
parent 5561cd3c77
commit 73d36fdff0

View File

@ -688,8 +688,15 @@ static void collect_modules() {
return; return;
} }
unlinkat(modfd, "update", 0); unlinkat(modfd, "update", 0);
if (faccessat(modfd, "disable", F_OK, 0) != 0) if (faccessat(modfd, "disable", F_OK, 0) == 0)
module_list.emplace_back(entry->d_name); return;
// Riru and its modules are not compatible with zygisk
if (zygisk_enabled && (
entry->d_name == "riru-core"sv ||
faccessat(modfd, "riru", F_OK, 0) == 0))
return;
module_list.emplace_back(entry->d_name);
}); });
} }