mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-25 22:38:46 +00:00
Implement Zygisk companion process
This commit is contained in:
@@ -284,9 +284,13 @@ bool ZygiskModule::registerModule(ApiTable *table, long *module) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int ZygiskModule::connectCompanion() {
|
||||
// TODO
|
||||
(void) id;
|
||||
int ZygiskModule::connectCompanion() const {
|
||||
if (int fd = connect_daemon(); fd >= 0) {
|
||||
write_int(fd, ZYGISK_REQUEST);
|
||||
write_int(fd, ZYGISK_START_COMPANION);
|
||||
write_int(fd, id);
|
||||
return fd;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user