Get Android .apk file VersionName or VersionCode WITHOUT installing apk

前端 未结 9 2560
鱼传尺愫
鱼传尺愫 2020-11-28 17:32

How can I get programmatically get the version code or version name of my apk from the AndroidManifest.xml file after downloading it and without installing it.



        
9条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 18:17

    At the moment, this can be done as follows

    $ANDROID_HOME/build-tools/28.0.3/aapt dump badging //.apk
    

    In General, it will be:

    $ANDROID_HOME/build-tools//aapt dump badging //.apk
    

提交回复
热议问题