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
If you don't want install *.apk on device but you need get version of app, you can do it as follow
$ANDROID_HOME/build-tools/28.0.3/aapt dump badging app/build/outputs/apk/app.app