From 510e8a2de4ebba222c4ebf619b0152c41d239650 Mon Sep 17 00:00:00 2001 From: ThePedroo Date: Sun, 20 Jul 2025 02:37:55 -0300 Subject: [PATCH] fix: not extracting 32-bit binaries in systems using Tango This commit fixes an issue where ReZygisk would not extract the 32-bit libraries in systems that utilize Tango (binary translation) to run 32-bit applications, as "ro.product.cpu.abilist" will only show the CPU supported architectures, not the system ones, resulting in only extracting 64-bit libzygisk.so and ReZygiskd despite having 32-bit app_process (Zygote). --- module/src/customize.sh | 2 +- module/src/post-fs-data.sh | 2 +- zygiskd/src/zygiskd.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/src/customize.sh b/module/src/customize.sh index 7251da4..7cf4efd 100644 --- a/module/src/customize.sh +++ b/module/src/customize.sh @@ -112,7 +112,7 @@ mkdir "$MODPATH/webroot" ui_print "- Extracting webroot" unzip -o "$ZIPFILE" "webroot/*" -x "*.sha256" -d "$MODPATH" -CPU_ABIS=$(getprop ro.product.cpu.abilist) +CPU_ABIS=$(getprop ro.system.product.cpu.abilist) SUPPORTS_32BIT=false SUPPORTS_64BIT=false diff --git a/module/src/post-fs-data.sh b/module/src/post-fs-data.sh index 7fa64e6..ec2f6be 100644 --- a/module/src/post-fs-data.sh +++ b/module/src/post-fs-data.sh @@ -46,7 +46,7 @@ if [ -f $MODDIR/lib/libzygisk.so ];then chcon u:object_r:system_file:s0 $TMP_PATH/lib/libzygisk.so fi -CPU_ABIS=$(getprop ro.product.cpu.abilist) +CPU_ABIS=$(getprop ro.system.product.cpu.abilist) if [[ "$CPU_ABIS" == *"arm64-v8a"* || "$CPU_ABIS" == *"x86_64"* ]]; then ./bin/zygisk-ptrace64 monitor & diff --git a/zygiskd/src/zygiskd.c b/zygiskd/src/zygiskd.c index cedd0ce..46db13e 100644 --- a/zygiskd/src/zygiskd.c +++ b/zygiskd/src/zygiskd.c @@ -49,7 +49,7 @@ enum Architecture { static enum Architecture get_arch(void) { char system_arch[64]; - get_property("ro.product.cpu.abilist", system_arch); + get_property("ro.system.product.cpu.abilist", system_arch); /* INFO: "PC" architectures should have priority because in an emulator the native architecture should have priority over the emulated