From 1255a49274ac477e451e90e7dc27c29c733cd695 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 bc1a2d3..80d294f 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() {