How can I update the version of an APK which I did not create myself

后端 未结 3 1953
抹茶落季
抹茶落季 2021-02-06 12:58

I am new to Android development. I am using a x-platform development tool which builds and signs the APK for me. This tool has a bug and it does not generate APK\'s with the ver

相关标签:
3条回答
  • 2021-02-06 13:30

    I don't think that you can change the APK after it is packed and signed, since singing is there so that you actually can't change it anymore after signing.

    What IDE are you using? E.g. Eclipse can also sign and build APK files and I've never seen a problem with the version number.

    0 讨论(0)
  • 2021-02-06 13:36

    It should be possible; previously I've changed an existing APK's package name without access to the source.

    However, you will probably need (and I don't have any more specific guides to hand):

    • a hex editor
    • a guide to the APK file format
    • a way of calculating the APK checksum

    You need to unzip the APK, alter the (binary-packed) AndroidManifest.xml, alter the checksum in the resources.arsc (I think) and then re-zip the APK.

    Actually, in searching for a couple of these resources, I came across apktool, which sounds promising.

    0 讨论(0)
  • 2021-02-06 13:38

    No, if it's signed.

    Only the owner of key can change the .apk content.

    0 讨论(0)
提交回复
热议问题