From d8848fe5c331dad571cc3f99d981956b8dd40e16 Mon Sep 17 00:00:00 2001 From: KOWX712 Date: Mon, 6 Jan 2025 18:24:25 +0800 Subject: [PATCH] fix multiple gms fix multiple gms on device without gms as system app. --- module/service.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/service.sh b/module/service.sh index a2d13ac..83c392a 100644 --- a/module/service.sh +++ b/module/service.sh @@ -46,7 +46,7 @@ done mkdir -p "$MODPATH/common/tmp" pm list packages -3 2>/dev/null | awk -F: '{print $2}' > "$OUTPUT_TMP" -pm path com.google.android.gms >/dev/null 2>&1 && echo "com.google.android.gms" >> "$OUTPUT_TMP" +pm list package -3 | grep -q com.google.android.gms || { pm path com.google.android.gms >/dev/null 2>&1 && echo "com.google.android.gms" >> "$OUTPUT_TMP"; } echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_APP" echo "# This file is generated from service.sh to speed up load time" > "$OUTPUT_SKIP"