Fix an issue that may happen in Apatch

and update translation guide
This commit is contained in:
KOWX712
2024-11-24 22:25:27 +08:00
parent 5352e8604e
commit dbed7f9f90
3 changed files with 11 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ if [ ! -s "$OUTPUT" ]; then
fi
# Find xposed package name
pm list packages -3 | awk -F: '{print $2}' | while read -r PACKAGE; do
pm list packages -3 </dev/null 2>&1 | cat | awk -F: '{print $2}' | while read -r PACKAGE; do
if ! grep -Fq "$PACKAGE" "$SKIPLIST"; then
pm path "$PACKAGE" | grep "base.apk" | awk -F: '{print $2}' | tr -d '\r' | while read -r APK_PATH; do
aapt dump xmltree "$APK_PATH" AndroidManifest.xml 2>/dev/null | grep -qE "xposed.category|xposeddescription" && echo "$PACKAGE" >> "$OUTPUT"