I\'m developing an application that uses ADB Shell to interface with android devices, and I need some way of printing out the application name or label of an application, gi
adb shell pm list packages will give you a list of all installed package names.
adb shell pm list packages
You can then use dumpsys | grep -A18 "Package \[my.package\]" to grab the package information such as version identifiers etc
dumpsys | grep -A18 "Package \[my.package\]"