如何在Android中更改应用程序的密钥库 [英] How to change keystore of a application in android

查看:192
本文介绍了如何在Android中更改应用程序的密钥库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的客户开发一个现有的android项目.我已经对他的应用程序进行了一些修改.我正在做日食.

I am working on a existing android project for my client. I have made some modification in his application. I am working on eclipse.

发送apk后,他将其安装在手机上,但他抱怨:

After sending the apk he installed it on his mobile but he has a complain that:

Current application failed install, even after it told me it was going to 
overwrite my old application information. Please remember to change keystore.

让我知道如何使用eclipse更改密钥库,以使其不会在他的手机上安装.请解释.

Let me know how can I change the keystore using eclipse so that it will not fail to install on his mobile. Please explain.

谢谢, 普拉文

推荐答案

每个.apk文件都应使用密钥签名(通过安装SDK,您将获得调试密钥).密钥是唯一的,如果设备中已经安装了这样的软件包,则系统将检查apk文件的密钥,以查看密钥是否与现有的软件包相同.如果密钥不匹配,则无法安装.apk文件,除非您卸载了原始密钥.

Every .apk file should be signed with a key(by installing the SDK, you get a debug key). A key is unique and the system will check the key of an apk file if such a package has been installed in the device, to see if the key is the same as the existed one. If the key doesn't match, the .apk file can't be installed, unless you uninstalled the original one.

现在,我想您可能有几种选择:

Now, I think you may have several choices:

  1. 使用您自己的密钥对apk签名,然后要求您的客户端卸载旧版本.
  2. 使用您自己的密钥在apk上签名并更改程序包名称.
  3. 获取客户的密钥并用它签名apk.

出于安全原因,您的客户可能不会将他的钥匙​​交给您.我认为最好的选择是在发布模式下编译您的项目,然后要求您的客户使用他的私钥对其进行签名. 请参见此处.

For security reason, your client may not give his key to you. I think the best choice is to compile your project in release mode, and then ask your client to sign it with his private key. See here.

这篇关于如何在Android中更改应用程序的密钥库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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