Parse versionCode from android apk files

后端 未结 4 2111
天命终不由人
天命终不由人 2021-02-07 04:39

I know .apk files are .zip files, but AndroidManifest.xml looks binary and certainly grep or hex editors haven\'t been successful extracting the versionCode.

Does anybod

4条回答
  •  后悔当初
    2021-02-07 05:14

    Assuming you have the Android SDK installed, you can use aapt to find this value. For example, on Linux:

    aapt dump badging MyAwesomeApplication.apk |grep version
    

提交回复
热议问题