groston

Well-Known Member
Jul 9, 2010
114
34
53
southeast Michigan
www.pairofdocs.net
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'
 
  • Like
Reactions: ocnbrze