Check if app is installed

This commit is contained in:
chiteroman 2024-10-25 00:11:35 +02:00
parent a4d268cf3d
commit 7bc8d991dc

View File

@ -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