Skip to content

Commit

Permalink
Check if app is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
chiteroman committed Oct 24, 2024
1 parent a4d268c commit 7bc8d99
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ if [ -d "$SNFix" ]; then
touch "$SNFix"/remove
fi

rm -rf "$MODPATH"/system

# Uninstall conflict apps
APPS="
/system/app/EliteDevelopmentModule
Expand All @@ -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

Expand Down

0 comments on commit 7bc8d99

Please sign in to comment.