Created
March 20, 2026 18:27
-
-
Save fgclue/8709ebef9b8cd76644a69bfc668dcc6c to your computer and use it in GitHub Desktop.
Get android app label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rm -rf /tmp/test.apk | |
| K=$(adb shell pm path $1) | |
| K="${K#package:}" | |
| adb pull $K /tmp/test.apk &> /dev/null | |
| K=$(aapt dump badging /tmp/test.apk) | |
| printf '%s\n' "$K" | sed -n "s/^application-label:'\(.*\)'/\1/p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment