Fix ROM injection app replacement when using KernelSU

This commit is contained in:
osm0sis
2024-01-20 23:21:53 -04:00
parent dbd60afe68
commit bdcfd283f1
2 changed files with 8 additions and 4 deletions

View File

@@ -20,8 +20,10 @@ for APP in $(grep -v '^#' $LIST); do
/system/*) HIDEDIR=$MODDIR/$APP;;
*) HIDEDIR=$MODDIR/system/$APP;;
esac
if [ ! -f "$HIDEDIR/.replace" ]; then
mkdir -p $HIDEDIR
mkdir -p $HIDEDIR
if [ "$KSU" == "true" ]; then
setfattr -n trusted.overlay.opaque -v y $HIDEDIR
else
touch $HIDEDIR/.replace
fi
fi