skip child zygote

This commit is contained in:
Takeda-senpai 2023-12-08 17:57:00 +07:00
parent 4ebce8a3bd
commit d035297b5e

View File

@ -65,8 +65,8 @@ public:
} }
void preAppSpecialize(zygisk::AppSpecializeArgs *args) override { void preAppSpecialize(zygisk::AppSpecializeArgs *args) override {
if (to_app_id(args->uid) < 10000 || to_app_id(args->uid) > 19999) { if (to_app_id(args->uid) < 10000 || to_app_id(args->uid) > 19999 || // not app process
// not app process, skip (args->is_child_zygote && *(args->is_child_zygote))) { // app_zygote
api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY); api->setOption(zygisk::DLCLOSE_MODULE_LIBRARY);
return; return;
} }