如何更新的APK的版本,我没有创建自己 [英] How can I update the version of an APK which I did not create myself

查看:112
本文介绍了如何更新的APK的版本,我没有创建自己的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新的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.

这篇关于如何更新的APK的版本,我没有创建自己的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆