fix: try to fix module fail to hide

This commit is contained in:
KOWX712
2025-03-12 04:22:24 +08:00
parent 6419f5e3b9
commit 9f6faf4e17
2 changed files with 23 additions and 17 deletions

View File

@@ -47,17 +47,19 @@ migrate_config() {
fi
# Additional system app
SYSTEM_APP="
com.google.android.gms
com.google.android.gsf
com.android.vending
com.oplus.deepthinker
com.heytap.speechassist
com.coloros.sceneservice"
touch "/data/adb/tricky_store/system_app"
for app in $SYSTEM_APP; do
if pm list packages -s | grep -q "$app" && ! grep -q "$app" "/data/adb/tricky_store/system_app"; then
echo "$app" >> "/data/adb/tricky_store/system_app"
fi
done
if [ -f "/data/adb/tricky_store/system_app" ]; then
SYSTEM_APP="
com.google.android.gms
com.google.android.gsf
com.android.vending
com.oplus.deepthinker
com.heytap.speechassist
com.coloros.sceneservice"
touch "/data/adb/tricky_store/system_app"
for app in $SYSTEM_APP; do
if pm list packages -s | grep -q "$app"; then
echo "$app" >> "/data/adb/tricky_store/system_app"
fi
done
fi
}