diff --git a/module/install_func.sh b/module/install_func.sh index 1175e28..89509cd 100644 --- a/module/install_func.sh +++ b/module/install_func.sh @@ -46,4 +46,19 @@ migrate_config() { if ! grep -q "^auto_config=" "/data/adb/security_patch"; then echo "auto_config=1" >> "/data/adb/security_patch" 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 } diff --git a/module/service.sh b/module/service.sh index 94c9a37..e3fca8e 100644 --- a/module/service.sh +++ b/module/service.sh @@ -80,7 +80,11 @@ done mkdir -p "$MODPATH/common/tmp" # Additional system apps -SYSTEM_APP="com.google.android.gms|com.google.android.gsf|com.android.vending" +if [ -f "/data/adb/tricky_store/system_app" ]; then + SYSTEM_APP=$(cat "/data/adb/tricky_store/system_app" | tr '\n' '|' | sed 's/|*$//') +else + SYSTEM_APP="" +fi # Initialize cache files to save app list and skip list echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_APP" @@ -90,7 +94,7 @@ echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT # Check Xposed module { pm list packages -3 2>/dev/null - pm list package -s | grep -E "$SYSTEM_APP" 2>/dev/null || true + pm list packages -s | grep -E "$SYSTEM_APP" 2>/dev/null || true } | awk -F: '{print $2}' | while read -r PACKAGE; do # Get APK path for the package APK_PATH=$(pm path "$PACKAGE" 2>/dev/null | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r') diff --git a/module/uninstall.sh b/module/uninstall.sh index 7b75e36..940bf6e 100644 --- a/module/uninstall.sh +++ b/module/uninstall.sh @@ -12,6 +12,7 @@ rm -rf "/data/adb/modules/.TA_utl" rm -f "/data/adb/boot_hash" rm -f "/data/adb/security_patch" rm -f "/data/adb/tricky_store/target_from_denylist" +rm -f "/data/adb/tricky_store/system_app" if [ -d "$TS" ]; then [ -L "$TS/webroot" ] && rm -f "$TS/webroot" [ -L "$TS/action.sh" ] && rm -f "$TS/action.sh" diff --git a/module/webui/index.html b/module/webui/index.html index dc3a538..5b38320 100644 --- a/module/webui/index.html +++ b/module/webui/index.html @@ -13,6 +13,7 @@ + @@ -77,6 +78,7 @@
  • +
  • @@ -332,6 +334,19 @@ + +
    +
    +
    +
    + + +

    +
    +
    +
    +
    +