zygisk: Let client send arch info

This commit is contained in:
Wang Han
2025-01-10 17:35:14 +08:00
committed by John Wu
parent a1b2830c06
commit 7c1d2ec61e
2 changed files with 8 additions and 21 deletions

View File

@@ -78,6 +78,7 @@ bool ZygiskModule::valid() const {
int ZygiskModule::connectCompanion() const {
if (int fd = zygisk_request(ZygiskRequest::CONNECT_COMPANION); fd >= 0) {
write_int(fd, sizeof(void*) == 8 ? 1 : 0);
write_int(fd, id);
return fd;
}