You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Keep uninstall.sh through updates
- uninstall.sh is generated at first install so it must be kept to ensure it has the original states/values for the persist props - run then remove uninstall.sh if it exists when switching to Scripts-Only Mode
This commit is contained in:
@@ -3,11 +3,14 @@ if [ -f /data/adb/modules/playintegrityfix/scripts-only-mode ]; then
|
||||
ui_print "! Installing global scripts only; Zygisk attestation fallback and device spoofing disabled"
|
||||
touch $MODPATH/scripts-only-mode
|
||||
sed -i 's/\(description=\)\(.*\)/\1[Scripts-only mode] \2/' $MODPATH/module.prop
|
||||
[ -f /data/adb/modules/playintegrityfix/uninstall.sh ] && sh /data/adb/modules/playintegrityfix/uninstall.sh
|
||||
rm -rf $MODPATH/action.sh $MODPATH/autopif2.sh $MODPATH/classes.dex $MODPATH/common_setup.sh \
|
||||
$MODPATH/custom.pif.json $MODPATH/example.app_replace.list $MODPATH/example.pif.json \
|
||||
$MODPATH/migrate.sh $MODPATH/pif.json $MODPATH/zygisk \
|
||||
/data/adb/modules/playintegrityfix/custom.app_replace.list \
|
||||
/data/adb/modules/playintegrityfix/custom.pif.json /data/adb/modules/playintegrityfix/system
|
||||
/data/adb/modules/playintegrityfix/custom.pif.json \
|
||||
/data/adb/modules/playintegrityfix/system \
|
||||
/data/adb/modules/playintegrityfix/uninstall.sh
|
||||
fi
|
||||
|
||||
# Copy any disabled app files to updated module
|
||||
@@ -17,7 +20,7 @@ if [ -d /data/adb/modules/playintegrityfix/system ]; then
|
||||
fi
|
||||
|
||||
# Copy any supported custom files to updated module
|
||||
for FILE in custom.app_replace.list custom.pif.json skipdelprop; do
|
||||
for FILE in custom.app_replace.list custom.pif.json skipdelprop uninstall.sh; do
|
||||
if [ -f "/data/adb/modules/playintegrityfix/$FILE" ]; then
|
||||
ui_print "- Restoring $FILE"
|
||||
cp -af /data/adb/modules/playintegrityfix/$FILE $MODPATH/$FILE
|
||||
|
||||
Reference in New Issue
Block a user