Read the package name of an Android APK
aapt dump badging <path-to-apk> | grep package:\ name
Based on @hackbod answer ... but related to windows.
aapt
command is located on Android\SDK\build-tools\version
.
If you need more info about what is appt command
(Android Asset Packaging Tool) read this https://stackoverflow.com/a/28234956/812915
The dump
sub-command of aapt
is used to display the values of individual elements or parts of a package:
aapt dump badging <path-to-apk>
If you want see only the line with package: name
info, use findstr
aapt dump badging <path-to-apk> | findstr -n "package: name" | findstr "1:"
Hope it help other windows user!
If you are looking at google play and want to know its package name then you can look at url or address bar. You will get package name. Here com.landshark.yaum
is the package name
https://play.google.com/store/apps/details?id=com.landshark.yaum&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5sYW5kc2hhcmsueWF1bSJd
Install the apk on your Android device. Then
you can launch
adb shell
and executepm list packages -f
, which shows the package name for each installed apk.
This is taken from Find package name for Android apps to use Intent to launch Market app from web.