利用亚洲开发银行获取应用程序的版本名称亚洲、应用程序、开发银行、名称

由网友(花开花落随风逝@)分享简介:有没有一种简单的方法来获得应用程序的版本名称中使用亚行外壳在Android设备上? Is there an easy way to get the version name of an application on an Android device using adb shell? 我发现/data/system...

有没有一种简单的方法来获得应用程序的版本名称中使用亚行外壳在Android设备上?

Is there an easy way to get the version name of an application on an Android device using adb shell?

我发现/data/system/packages.xml应用程序版本号(而不是版本名称)。

I found the application version number (not the version name) in /data/system/packages.xml.

这将是很好,如果有包含的应用程序信息的文件。

It would be nice if there was a file that contained the Application Info.

推荐答案

不是很优雅,但你可以试试这个:

Not very elegant but you can try this:

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

这将告诉你一些软件包的信息(版本名称及编号:行7-9)

that will show you some package info (version name and number: line 7-9)

更新:

由于 @大卫和的 @杰里米·菲什曼说,这将是更快:

As @david and @Jeremy Fishman said, this will be much quicker:

adb shell dumpsys package my.package | grep versionName
阅读全文

相关推荐

最新文章