Updated AGP to 8.3.2...

and misc changes.
This commit is contained in:
snake-4
2024-04-16 23:16:21 +02:00
parent 5e8a2c4631
commit e22e81d792
2 changed files with 3 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
[versions]
agp = "8.3.1"
agp = "8.3.2"
[plugins]
agp-lib = { id = "com.android.library", version.ref = "agp" }

View File

@@ -94,6 +94,7 @@ public:
ASSERT_EXIT("preAppSpecialize", hookPLTByName("libandroid_runtime.so", "unshare", new_unshare, &old_unshare), return);
ASSERT_EXIT("preAppSpecialize", hookPLTByName("libandroid_runtime.so", "setresuid", new_setresuid, &old_setresuid), return);
int companionFd = -1;
ASSERT_LOG("preAppSpecialize", (companionFd = api->connectCompanion()) != -1);
callbackFunction = [fd = companionFd]()
@@ -144,7 +145,6 @@ public:
}
private:
int companionFd = -1;
Api *api;
JNIEnv *env;
};
@@ -155,10 +155,9 @@ void zygisk_companion_handler(int fd)
{
pid_t pid;
ASSERT_EXIT("zygisk_companion_handler", read(fd, &pid, sizeof(pid)) == sizeof(pid), return false);
LOGD("zygisk_companion_handler received pid=%d", pid);
ASSERT_EXIT("zygisk_companion_handler", unshare(CLONE_NEWNS) != -1, return false);
ASSERT_EXIT("zygisk_companion_handler", switchMountNS(pid), return false);
LOGD("zygisk_companion_handler processing namespace of pid=%d", pid);
doUnmount();
doRemount();