feat: zdefend-fix(customize.sh): check for built-in magisk systemless hosts and disable it

it conflict with this module and need to be disabled

Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
Cuynu 2026-07-10 01:50:04 +07:00
commit 83787fa675
Signed by: cuynu
GPG key ID: 1F01341D0B42B51A

View file

@ -135,6 +135,14 @@ selinuxhandle() {
rm -rf /data/local/tmp/lastappfail
}
magiskhosts() {
echo "Magisk systemless hosts detected!"
echo "This module should be disabled to work with this module!"
touch /data/adb/modules/hosts/disable && echo "Disabled systemless hosts module!"
}
[[ -d /data/adb/modules/hosts ]] && magiskhosts
[[ -d /data/adb/modules/bindhosts ]] && bindhostfound
[[ -d /data/data/com.tsng.hidemyapplist ]] && tsnghma