You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Separate common installation and boot-time scripts and source it
This commit is contained in:
@@ -1,42 +1,13 @@
|
||||
MODDIR="${0%/*}"
|
||||
. "$MODDIR/common.sh"
|
||||
MODPATH="${0%/*}"
|
||||
. $MODPATH/common_func.sh
|
||||
|
||||
# Remove Play Services from Magisk Denylist when set to enforcing
|
||||
if magisk --denylist status; then
|
||||
magisk --denylist rm com.google.android.gms
|
||||
fi
|
||||
|
||||
# Remove conflicting modules if installed
|
||||
if [ -d /data/adb/modules/safetynet-fix ]; then
|
||||
touch /data/adb/modules/safetynet-fix/remove
|
||||
fi
|
||||
|
||||
# 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
|
||||
if [ -e "$APP" ]; then
|
||||
case $APP in
|
||||
/system/*) HIDEPATH=$MODDIR/$APP;;
|
||||
*) HIDEPATH=$MODDIR/system/$APP;;
|
||||
esac
|
||||
if [ -d "$APP" ]; then
|
||||
mkdir -p $HIDEPATH
|
||||
if [ "$KSU" = "true" -o "$APATCH" = "true" ]; then
|
||||
setfattr -n trusted.overlay.opaque -v y $HIDEPATH
|
||||
else
|
||||
touch $HIDEPATH/.replace
|
||||
fi
|
||||
else
|
||||
mkdir -p $(dirname $HIDEPATH)
|
||||
if [ "$KSU" = "true" -o "$APATCH" = "true" ]; then
|
||||
mknod $HIDEPATH c 0 0
|
||||
else
|
||||
touch $HIDEPATH
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
# Run common tasks for installation and boot-time
|
||||
. $MODPATH/common_setup.sh
|
||||
|
||||
# Conditional early sensitive properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user