From aeae232c372b365269f01e97dfdb1e0e1a2a73cb Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Thu, 12 Sep 2024 06:51:24 -0300 Subject: [PATCH] Fix Magisk version check - the variable only gets set during installations, not in the boot script env --- module/common_func.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common_func.sh b/module/common_func.sh index b111463..681e91a 100644 --- a/module/common_func.sh +++ b/module/common_func.sh @@ -1,5 +1,5 @@ RESETPROP="resetprop -n" -[ -n "$MAGISK_VER_CODE" ] && [ "$MAGISK_VER_CODE" -lt "27003" ] && RESETPROP=resetprop_hexpatch +[ -f /data/adb/magisk/util_functions.sh ] && [ "$(grep MAGISK_VER_CODE /data/adb/magisk/util_functions.sh | cut -d= -f2)" -lt 27003 ] && RESETPROP=resetprop_hexpatch # resetprop_hexpatch [-f|--force] resetprop_hexpatch() {