• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Getting list of apps with their versions

groston

Well-Known Member
What I am trying to do should be easy, but I haven’t figured out how to do this. What I want to do is simple: create a list of all installed apps and their version.
  • One site suggested: adb shell sh -c 'cmd package list packages -f' – this worked, but did not show versions and it seems that ‘list packages’ cannot provide version info.
  • Other sites suggested the app ‘List My Apps’, but the version info only seems to show up when one taps a specific app of interest.
  • Other sites suggest writing a Java program, but that seems like way too much work for something this simple.
If it matters, I am running rooted Android 10.Any suggestions you can offer will be gratefully welcomed – thanks.
 
What I am trying to do should be easy, but I haven’t figured out how to do this. What I want to do is simple: create a list of all installed apps and their version.
  • One site suggested: adb shell sh -c 'cmd package list packages -f' – this worked, but did not show versions and it seems that ‘list packages’ cannot provide version info.
  • Other sites suggested the app ‘List My Apps’, but the version info only seems to show up when one taps a specific app of interest.
  • Other sites suggest writing a Java program, but that seems like way too much work for something this simple.
If it matters, I am running rooted Android 10.Any suggestions you can offer will be gratefully welcomed – thanks.
I use the following two commands to do what you're asking. This gives a very long detailed list of all apps installed.
Bash:
adb shell
dumpsys package packages

To narrow down the output to just the version name or code, change the second command above to...
Bash:
dumpsys package packages | grep -E 'Package \[|versionName'
dumpsys package packages | grep -E 'Package \[|versionCode'
 
GameTheory - Thanks. A tad of adjusting your solution, specifically to 'adb shell "dumpsys package packages" > D:/Users/<user>/Desktop/filename.txt' and I got what I needed.
 
Back
Top Bottom