Skip to content

Commit 1255a49

Browse files
authored
Fix Magisk version check
- the variable only gets set during installations, not in the boot script env
1 parent 6cc82e3 commit 1255a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/common_func.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
RESETPROP="resetprop -n"
2-
[ -n "$MAGISK_VER_CODE" ] && [ "$MAGISK_VER_CODE" -lt "27003" ] && RESETPROP=resetprop_hexpatch
2+
[ -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
33

44
# resetprop_hexpatch [-f|--force] <prop name> <new value>
55
resetprop_hexpatch() {

0 commit comments

Comments
 (0)