Allow customizable path replacement for conflicting custom ROM apps

This commit is contained in:
osm0sis
2024-01-08 16:06:24 -04:00
parent a9630901b3
commit d106e2a964
3 changed files with 34 additions and 2 deletions

View File

@@ -11,6 +11,17 @@ if [ -d /data/adb/modules/safetynet-fix ]; then
touch /data/adb/modules/safetynet-fix/remove
fi
# Replace conflicting custom ROM injection app folders to disable them
if [ -f "$MODDIR/app_replace.list" ]; then
for APP in $(grep -v '^#' "$MODDIR/app_replace.list"); do
if [ -d "$APP" ]; then
HIDEDIR="$MODDIR/$APP"
mkdir -p "$HIDEDIR"
touch "$HIDEDIR/.replace"
fi
done
fi
# Conditional early sensitive properties
# Samsung