Get application version name using adb

后端 未结 5 1999
一整个雨季
一整个雨季 2021-01-30 02:20

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

I found the application version number (not the version name) in /d

5条回答
  •  再見小時候
    2021-01-30 02:49

    adb shell dumpsys package my.package | grep versionName
    

    as mentioned by @david and @Jeremy Fishman. This will be much quicker than:

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

提交回复
热议问题