Tidy scripts, clarify KernelSU/APatch hide files/directories

This commit is contained in:
osm0sis
2024-02-08 00:08:57 -04:00
parent 1a7c5103d1
commit bdd846add6
4 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ if [ -d /data/adb/modules/MagiskHidePropsConf ]; then
ui_print "! MagiskHidePropsConfig (MHPC) module may cause issues with PIF"
fi
# Replace/remove conflicting custom ROM injection app folders/files to disable them
# Replace/hide conflicting custom ROM injection app folders/files to disable them
LIST=$MODPATH/example.app_replace.list
[ -f "$MODPATH/custom.app_replace.list" ] && LIST=$MODPATH/custom.app_replace.list
for APP in $(grep -v '^#' $LIST); do

View File

@@ -1,7 +1,7 @@
# Rename to custom.app_replace.list once customized
#
# Add conflicting custom ROM injection app folder/file paths to this list
# and they will be replaced/removed systemlessly to disable them
# and they will be replaced/hidden systemlessly to disable them
# Xiaomi.eu
/product/app/XiaomiEUInject

View File

@@ -11,7 +11,7 @@ if [ -d /data/adb/modules/safetynet-fix ]; then
touch /data/adb/modules/safetynet-fix/remove
fi
# Replace/remove conflicting custom ROM injection app folders/files to disable them
# Replace/hide conflicting custom ROM injection app folders/files to disable them
LIST=$MODDIR/example.app_replace.list
[ -f "$MODDIR/custom.app_replace.list" ] && LIST=$MODDIR/custom.app_replace.list
for APP in $(grep -v '^#' $LIST); do

View File

@@ -15,7 +15,7 @@ if [ -n "$(resetprop ro.build.selinux)" ]; then
resetprop --delete ro.build.selinux
fi
# use toybox to protect *stat* access time reading
if [ "$(toybox cat /sys/fs/selinux/enforce)" == "0" ]; then
if [ "$(toybox cat /sys/fs/selinux/enforce)" = "0" ]; then
chmod 640 /sys/fs/selinux/enforce
chmod 440 /sys/fs/selinux/policy
fi
@@ -25,7 +25,7 @@ fi
# SafetyNet/Play Integrity
{
# must be set after boot_completed for various OEMs
until [ "$(getprop sys.boot_completed)" == "1" ]; do
until [ "$(getprop sys.boot_completed)" = "1" ]; do
sleep 1
done