diff --git a/zygiskd/src/zygiskd.c b/zygiskd/src/zygiskd.c index fe00454..cedd0ce 100644 --- a/zygiskd/src/zygiskd.c +++ b/zygiskd/src/zygiskd.c @@ -51,8 +51,11 @@ static enum Architecture get_arch(void) { char system_arch[64]; get_property("ro.product.cpu.abilist", system_arch); - if (strstr(system_arch, "arm") != NULL) return lp_select(ARM32, ARM64); + /* INFO: "PC" architectures should have priority because in an emulator + the native architecture should have priority over the emulated + architecture for "native" reasons. */ if (strstr(system_arch, "x86") != NULL) return lp_select(X86, X86_64); + if (strstr(system_arch, "arm") != NULL) return lp_select(ARM32, ARM64); LOGE("Unsupported system architecture: %s\n", system_arch); exit(1);