Skip to content

Instantly share code, notes, and snippets.

@fgclue
Created March 20, 2026 18:27
Show Gist options
  • Select an option

  • Save fgclue/8709ebef9b8cd76644a69bfc668dcc6c to your computer and use it in GitHub Desktop.

Select an option

Save fgclue/8709ebef9b8cd76644a69bfc668dcc6c to your computer and use it in GitHub Desktop.
Get android app label
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