Skip to content

Commit

Permalink
Try harder to get a description on .apk packages
Browse files Browse the repository at this point in the history
If no localized or English label can be found, just use the first one,
regardless of language.
  • Loading branch information
dfandrich committed Dec 13, 2024
1 parent 0f1f8de commit 7875ed4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autodescribe
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,10 @@ comment_apk () {
# Try again with English
L=en
COMMENT=$(aapt d badging "$1" | grep "^application-label-${L}" | sed -e "s/^[^']*'//" -e "s/'.*$//" | head -1)
if [ -z "$COMMENT" ]; then
# Try again with ANY label, regardless of the locale
COMMENT=$(aapt d badging "$1" | grep "^application-label-" | sed -e "s/^[^']*'//" -e "s/'.*$//" | head -1)
fi
fi
fi
}
Expand Down

0 comments on commit 7875ed4

Please sign in to comment.