Reputation: 2385
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
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