Get application version name using adb

后端 未结 5 1998
一整个雨季
一整个雨季 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:39

    Dumpsys package is your friend

    ~/# adb shell
    shell@mo:/ dumpsys package tld.comp.app_name | grep version
    


    Will return

    versionCode=X targetSdk=YY
    versionName=Z.Z
    

提交回复
热议问题