improve: ReZygisk status saving

This commit improves how ReZygisk saves its status.
This commit is contained in:
ThePedroo
2024-08-15 17:13:17 -03:00
parent 6187f34837
commit 3d2125d6c0
5 changed files with 95 additions and 82 deletions

View File

@@ -147,8 +147,6 @@ namespace zygiskd {
int fd = Connect(1);
if (fd != -1) {
info->running = true;
socket_utils::write_u8(fd, (uint8_t) SocketAction::GetInfo);
int flags = socket_utils::read_u32(fd);
@@ -163,8 +161,6 @@ namespace zygiskd {
info->root_impl = ZYGOTE_ROOT_IMPL_NONE;
}
info->pid = socket_utils::read_u32(fd);
info->modules = (struct zygote_modules *)malloc(sizeof(struct zygote_modules));
if (info->modules == NULL) {
info->modules->modules_count = 0;