You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
WIP
This commit is contained in:
@@ -93,7 +93,7 @@ namespace zygiskd {
|
||||
}
|
||||
|
||||
int GetModuleDir(size_t index) {
|
||||
int fd = Connect(1);
|
||||
UniqueFd fd = Connect(1);
|
||||
if (fd == -1) {
|
||||
PLOGE("GetModuleDir");
|
||||
return -1;
|
||||
@@ -102,4 +102,13 @@ namespace zygiskd {
|
||||
socket_utils::write_usize(fd, index);
|
||||
return socket_utils::recv_fd(fd);
|
||||
}
|
||||
|
||||
void ZygoteRestart() {
|
||||
UniqueFd fd = Connect(1);
|
||||
if (fd == -1) {
|
||||
PLOGE("Could not notify ZygoteRestart");
|
||||
return;
|
||||
}
|
||||
socket_utils::write_u8(fd, (uint8_t) SocketAction::ZygoteRestart);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user