Fix Magisk version check

- the variable only gets set during installations, not in the boot script env
This commit is contained in:
Chris Renshaw
2024-09-12 06:51:24 -03:00
committed by GitHub
parent 6cc82e3e7b
commit 1255a49274

View File

@@ -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] <prop name> <new value>
resetprop_hexpatch() {