Sagar
Sagar

Reputation: 2385

Is package version and app version are different things in android

I am testing the MXplayer. To report the error or any thing i want to return the version number of player, how do I get the version number using adb in android? Is there any difference between the package version and app version?

Upvotes: 2

Views: 5157

Answers (2)

Alex P.
Alex P.

Reputation: 31676

Bot terms can be used interchangeably to refer to the same thing - an Android application. Additionally the term "package" can be used to refer to .APK file containing the application or to the Java package name of the application.

The term "app name" is usually used to refer to the human readable name like "My Coolest App". Whereas "package name" would be a Java package name like "com.vendorname.mycoolestapp".

But as far as versioning is concerned - both are the same:

dumpsys package <package_name> | grep versionName

Upvotes: 10

g00dy
g00dy

Reputation: 6778

For the package/application version use:

adb shell dumpsys | grep -A18 "Package \[my.package\]"

Upvotes: 1

Related Questions