From d035297b5e17ab040af07e4d6d66f7b07484c693 Mon Sep 17 00:00:00 2001 From: Takeda-senpai Date: Fri, 8 Dec 2023 17:57:00 +0700 Subject: [PATCH] skip child zygote --- app/src/main/cpp/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/main.cpp b/app/src/main/cpp/main.cpp index 399fe49..b3dec94 100644 --- a/app/src/main/cpp/main.cpp +++ b/app/src/main/cpp/main.cpp @@ -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; }