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 /data/system/packages.xml.
It would be nice if there was a file that contained the Application Info.
To list the package names as well as the path to the installed APK files, use the “ -f ” option. The “ -f ” option can be combined with the other options as well. For example, to list system package names with the installed package location, use the “ -f -s ” option.
Android System SettingsOnce in Settings, tap Apps and notifications (or your phone manufacturer's name it). When you're in there, tap See all xyz apps (where xyz is the number of apps you have installed). Now scroll down until you find the app you want to find the version for. Then tap it in the list.
Download ADB and FastbootVisit the SDK Platform Tools download page to find the latest version of ADB and fastboot.
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\]"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With