SyntaxFix
Write A Post
Hire A Developer
Questions
adb shell pm list packages will give you a list of all installed package names.
adb shell pm list packages
You can then use dumpsys | grep -A18 "Package \[my.package\]" to grab the package information such as version identifiers etc
dumpsys | grep -A18 "Package \[my.package\]"