You've already forked PlayIntegrityFork
mirror of
https://github.com/osm0sis/PlayIntegrityFork.git
synced 2025-09-06 06:37:06 +00:00
Fix retaining disabled ROM apps through module updates in some scenarios
- KernelSU or APatch have completely hidden directories/files so would not get recreated - for .apk files with a config.xml the config.xml would not get recreated due to the 0-size/hidden .apk
This commit is contained in:
@@ -37,13 +37,13 @@ for APP in $(grep -v '^#' $LIST); do
|
||||
elif [[ "$APP" = *".apk" ]]; then
|
||||
APK=$(readlink -f $APP);
|
||||
fi
|
||||
if [ "$APK" ]; then
|
||||
if [ -s "$APK" ]; then
|
||||
PKGNAME=$(unzip -p $APK AndroidManifest.xml | tr -d '\0' | grep -oE '[[:alnum:].-_]+\*http' | cut -d\* -f1)
|
||||
if [ "$PKGNAME" ] && grep -q "overlay package=\"$PKGNAME" $CFG; then
|
||||
HIDECFG=$MODPATH$PREFIX$CFG
|
||||
if [ ! -f $HIDECFG ]; then
|
||||
if [ ! -f "$HIDECFG" ]; then
|
||||
mkdir -p $(dirname $HIDECFG)
|
||||
cp -fp $CFG $HIDECFG
|
||||
cp -af $CFG $HIDECFG
|
||||
fi
|
||||
sed -i 's;<overlay \(package="'"$PKGNAME"'".*\) />;<!-- overlay \1 -->;' $HIDECFG
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user