Unload first stage on main thread

This commit is contained in:
topjohnwu
2021-09-22 02:46:07 -07:00
parent 12e9873514
commit cf4ef54dc5
2 changed files with 28 additions and 34 deletions

View File

@@ -265,9 +265,9 @@ void HookContext::nativeSpecializeAppProcess_post() {
self_unload();
} else {
run_modules_post();
}
if (info.is_magisk_app) {
setenv("ZYGISK_ENABLED", "1", 1);
if (info.is_magisk_app) {
setenv("ZYGISK_ENABLED", "1", 1);
}
}
g_ctx = nullptr;
}