mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-19 02:52:20 +08:00
Check if app is installed
This commit is contained in:
parent
a4d268cf3d
commit
7bc8d991dc
@ -17,6 +17,8 @@ if [ -d "$SNFix" ]; then
|
|||||||
touch "$SNFix"/remove
|
touch "$SNFix"/remove
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
rm -rf "$MODPATH"/system
|
||||||
|
|
||||||
# Uninstall conflict apps
|
# Uninstall conflict apps
|
||||||
APPS="
|
APPS="
|
||||||
/system/app/EliteDevelopmentModule
|
/system/app/EliteDevelopmentModule
|
||||||
@ -28,12 +30,14 @@ APPS="
|
|||||||
"
|
"
|
||||||
|
|
||||||
for APP in $APPS; do
|
for APP in $APPS; do
|
||||||
HIDEPATH="$MODPATH$APP"
|
if [ -d "$APP" ]; then
|
||||||
mkdir -p "$HIDEPATH"
|
HIDEPATH="$MODPATH$APP"
|
||||||
if [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; then
|
mkdir -p "$HIDEPATH"
|
||||||
setfattr -n trusted.overlay.opaque -v y "$HIDEPATH"
|
if [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; then
|
||||||
else
|
setfattr -n trusted.overlay.opaque -v y "$HIDEPATH"
|
||||||
touch "$HIDEPATH"/.replace
|
else
|
||||||
|
touch "$HIDEPATH"/.replace
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user