You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Fix ROM injection app replacement on partitions other than /system
This commit is contained in:
@@ -25,9 +25,14 @@ 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
|
||||
if [ -d "$APP" ]; then
|
||||
HIDEDIR=$MODPATH/$APP
|
||||
mkdir -p $HIDEDIR
|
||||
touch $HIDEDIR/.replace
|
||||
case $APP in
|
||||
/system/*) HIDEDIR=$MODPATH/$APP;;
|
||||
*) HIDEDIR=$MODPATH/system/$APP;;
|
||||
esac
|
||||
if [ ! -f "$HIDEDIR/.replace" ]; then
|
||||
mkdir -p $HIDEDIR
|
||||
touch $HIDEDIR/.replace
|
||||
fi
|
||||
ui_print "! $(basename $APP) ROM app disabled"
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -16,9 +16,14 @@ 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
|
||||
if [ -d "$APP" ]; then
|
||||
HIDEDIR=$MODDIR/$APP
|
||||
mkdir -p $HIDEDIR
|
||||
touch $HIDEDIR/.replace
|
||||
case $APP in
|
||||
/system/*) HIDEDIR=$MODDIR/$APP;;
|
||||
*) HIDEDIR=$MODDIR/system/$APP;;
|
||||
esac
|
||||
if [ ! -f "$HIDEDIR/.replace" ]; then
|
||||
mkdir -p $HIDEDIR
|
||||
touch $HIDEDIR/.replace
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user