From 419c07745e36f967b5a0bdd0aeb923e820708219 Mon Sep 17 00:00:00 2001 From: backslashxx <118538522+backslashxx@users.noreply.github.com> Date: Thu, 26 Dec 2024 01:38:59 +0800 Subject: [PATCH] scripts/customize: remove webui on managers with action --- module/customize.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/customize.sh b/module/customize.sh index a608063..94ac8a8 100644 --- a/module/customize.sh +++ b/module/customize.sh @@ -65,3 +65,14 @@ if [ -f "/data/adb/pif.json" ]; then ui_print "- Backup custom pif.json" mv -f /data/adb/pif.json /data/adb/pif.json.old fi + +# give exec perm to action.sh +chmod +x "$MODPATH/action.sh" + +# action.sh, ap 10927, ksu 11981 +if { [ "$KSU" = "true" ] && [ "$KSU_VER_CODE" -ge 11981 ]; } || + { [ "$APATCH" = "true" ] && [ "$APATCH_VER_CODE" -ge 10927 ]; }; then + # we dont need the webui workaround + # since manager has action + rm -rf "$MODPATH/webroot" +fi