Read the package name of an Android APK

Dagang picture Dagang · Jun 9, 2011 · Viewed 169.2k times · Source

I need to get the package name of an Android APK. I have tried to unzip the APK and read contents of AndroidManifest.xml, but seems it's not a text file.

How can I extract the APK's package name?

Answer

hackbod picture hackbod · Jun 9, 2011
aapt dump badging <path-to-apk> | grep package:\ name