Log if failed to dlopen a zygisk module

This commit is contained in:
LoveSy
2022-03-15 02:42:47 +08:00
committed by topjohnwu
parent ffcd093db1
commit 69c2f407d6
2 changed files with 10 additions and 3 deletions

View File

@@ -367,6 +367,8 @@ void HookContext::run_modules_pre(const vector<int> &fds) {
if (void *e = dlsym(h, "zygisk_module_entry")) {
modules.emplace_back(i, h, e);
}
} else if (g_ctx->state[SERVER_SPECIALIZE]) {
LOGW("Failed to dlopen zygisk module: %s\n", dlerror());
}
close(fds[i]);
}