简体   繁体   中英

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?

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

对于包/应用程序版本使用:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM