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 chiteroman
parent cb296225e0
commit aeae232c37
No known key found for this signature in database

View File

@ -1,5 +1,5 @@
RESETPROP="resetprop -n" 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 [-f|--force] <prop name> <new value>
resetprop_hexpatch() { resetprop_hexpatch() {