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
|
[ -f "$MODPATH/custom.app_replace.list" ] && LIST=$MODPATH/custom.app_replace.list
|
||||||
for APP in $(grep -v '^#' $LIST); do
|
for APP in $(grep -v '^#' $LIST); do
|
||||||
if [ -d "$APP" ]; then
|
if [ -d "$APP" ]; then
|
||||||
HIDEDIR=$MODPATH/$APP
|
case $APP in
|
||||||
mkdir -p $HIDEDIR
|
/system/*) HIDEDIR=$MODPATH/$APP;;
|
||||||
touch $HIDEDIR/.replace
|
*) HIDEDIR=$MODPATH/system/$APP;;
|
||||||
|
esac
|
||||||
|
if [ ! -f "$HIDEDIR/.replace" ]; then
|
||||||
|
mkdir -p $HIDEDIR
|
||||||
|
touch $HIDEDIR/.replace
|
||||||
|
fi
|
||||||
ui_print "! $(basename $APP) ROM app disabled"
|
ui_print "! $(basename $APP) ROM app disabled"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -16,9 +16,14 @@ LIST=$MODDIR/example.app_replace.list
|
|||||||
[ -f "$MODDIR/custom.app_replace.list" ] && LIST=$MODDIR/custom.app_replace.list
|
[ -f "$MODDIR/custom.app_replace.list" ] && LIST=$MODDIR/custom.app_replace.list
|
||||||
for APP in $(grep -v '^#' $LIST); do
|
for APP in $(grep -v '^#' $LIST); do
|
||||||
if [ -d "$APP" ]; then
|
if [ -d "$APP" ]; then
|
||||||
HIDEDIR=$MODDIR/$APP
|
case $APP in
|
||||||
mkdir -p $HIDEDIR
|
/system/*) HIDEDIR=$MODDIR/$APP;;
|
||||||
touch $HIDEDIR/.replace
|
*) HIDEDIR=$MODDIR/system/$APP;;
|
||||||
|
esac
|
||||||
|
if [ ! -f "$HIDEDIR/.replace" ]; then
|
||||||
|
mkdir -p $HIDEDIR
|
||||||
|
touch $HIDEDIR/.replace
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user