Merge pull request #156 from HuskyDG/main

skip child zygote
This commit is contained in:
Marcos 2023-12-08 12:32:44 +01:00 committed by GitHub
commit b8b1d12004
Signed by: github
GPG Key ID: 4AEE18F83AFDEB23

View File

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