Is there an easy way to get the version name of an application on an Android device using adb shell?
I found the application version number (not the version name) in /d
adb shell dumpsys package my.package | grep versionName
as mentioned by @david and @Jeremy Fishman. This will be much quicker than:
adb shell dumpsys | grep -A18 "Package \[my.package\]"