You've already forked Tricky-Addon-Update-Target-List
mirror of
https://github.com/KOWX712/Tricky-Addon-Update-Target-List.git
synced 2025-09-06 06:37:09 +00:00
feat: option to add system app
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user