如何更新的APK的版本,我没有创建自己版本、APK

2023-09-05 04:17:48 作者:国服熬夜冠军

我是新的Andr​​oid开发。我使用的是的X平台的开发工具,它建立并签署APK我。这个工具有一个bug,它不会生成APK的与版本code我指定所有APK的产生是1.0版。

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 version code I specify, all APK's generated are version 1.0.

我想解压APK,编辑版本code,然后辞职,并重新包装。它是用我的密钥库最初签约,所以我需要的钥匙,再签字确认。

I would like to unpack the APK, edit the version code, and then resign and repackage it. It was signed using my keystore originally, so I have the keys needed to sign it again.

如何才能做到这一点?

推荐答案

这应该是可能的; previously我没有访问源改变现有的APK的包名。

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):

在十六进制编辑器 要APK文件格式的引导 计算APK校验的方法

您需要解压APK,改变(二进制包装)的Andr​​oidManifest.xml ,修改了 resources.arsc (我认为),然后重新拉链的APK。

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.

其实,在寻找一对夫妇的这些资源,我碰到 apktool ,这听起来有希望的。

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