mirror of
https://github.com/chiteroman/PlayIntegrityFix.git
synced 2025-01-18 18:42:21 +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
|
||||
fi
|
||||
|
||||
rm -rf "$MODPATH"/system
|
||||
|
||||
# Uninstall conflict apps
|
||||
APPS="
|
||||
/system/app/EliteDevelopmentModule
|
||||
@ -28,12 +30,14 @@ APPS="
|
||||
"
|
||||
|
||||
for APP in $APPS; do
|
||||
HIDEPATH="$MODPATH$APP"
|
||||
mkdir -p "$HIDEPATH"
|
||||
if [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; then
|
||||
setfattr -n trusted.overlay.opaque -v y "$HIDEPATH"
|
||||
else
|
||||
touch "$HIDEPATH"/.replace
|
||||
if [ -d "$APP" ]; then
|
||||
HIDEPATH="$MODPATH$APP"
|
||||
mkdir -p "$HIDEPATH"
|
||||
if [ "$KSU" = "true" ] || [ "$APATCH" = "true" ]; then
|
||||
setfattr -n trusted.overlay.opaque -v y "$HIDEPATH"
|
||||
else
|
||||
touch "$HIDEPATH"/.replace
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user