我可以将多个Android密钥库文件合并为一个吗? [英] Can I merge multiple Android keystore files into one?

查看:136
本文介绍了我可以将多个Android密钥库文件合并为一个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Android密钥库文件时,我陷入了一个有点烦人的境地.目前,我有一些不同的应用程序,每个应用程序都使用不同的密钥库文件签名.有点像这样:

I have got myself into a slightly annoying situation with Android keystore files. Currently I have a few different apps each signed with a different keystore file. Kinda like this:

  • 使用AppName1.keystore签名的AppName1.apk
  • 使用AppName2.keystore签名的AppName2.apk
  • 使用AppName2.keystore签名的AppName3.apk

每个密钥库为每个应用程序包含不同的名称和别名.

Each of the keystores contain different names and aliases for each app.

我现在了解到,以这种方式进行操作有点愚蠢,最好对我的所有应用程序使用单个密钥库文件.我将要发布一个新的应用程序,因此这次我希望将其正确设置.

I'm now learning that doing it this way is a bit silly and it would be better to use a single keystore file for all my apps. I am about to publish a new app so I'm trying to get it right this time around.

我的普遍问题是,我怎样做才能使生活更轻松?

My general question is, what can I do to make life easier in future?

我已经读到可以重命名其中的一个密钥库并更改别名,因此,从理论上讲,我可以使用其中一个现有的密钥库对下一个应用程序进行签名吗?这意味着我的应用程序中至少有2个使用相同的密钥库,并且名称很合理.

I've read that I can rename one of they keystores and change the aliases so, in theory, I can sign my next app with one of the existing keystores? That will mean at least 2 of my apps are using the same keystore and it will have a sensible name.

作为参考,这是我今天正在阅读的教程之一:

For reference, this is one of the tutorials I was reading today:

http://blog. blundell-apps.com/tut-change-alias-passwords-of-your-android-keystore/

,还有其他堆栈溢出答案: 可以更改密钥的别名吗?

and also this other stack overflow answer: Can I change the alias of my key?

根据本教程的理解,我可以安全地重命名密钥库文件,更改密码并重命名别名,而不会失去更新现有应用程序的能力.谁能确认这是真的,还是我可以通过某种方式证明这一点?

It is my understanding from the tutorial that I can safely rename the keystore file, change the passwords and rename the alias without loosing the ability to update the existing app. Can anyone confirm if that's true, or if there is some way I can prove it?

最后,我有一个第三密钥库,如果可能的话,我想合并到另一个密钥库中?因此,理想情况下,我想只为所有3个应用提供一个密钥库.我知道这可能会推动它,但是我还是会问.

Lastly, I have a 3rd keystore I would like to merge into the other one if that's possible? So ideally, I would like to end up with just one keystore for all 3 apps. I know that's probably pushing it but I'll ask anyway.

很显然,我不想失去更新现有应用程序的能力.

Obviously, I don't want to loose the ability to update existing apps.

推荐答案

现在有可能.使用 KeyStore Explorer

[随后是较旧的答案]

AFAIK,否.密钥库通常用于标识开发人员(或应用程序发行者).如果您使用了多个密钥库,则必须立即将它们全部保持安全,以便立即维护这些应用程序.

AFAIK, No. A keystore is usually used to identify a developer(or an app publisher). If you have used multiple keystores, you have to keep them all very safe now in order to maintain those applications now.

从现在开始,选择一个密钥库,并在其中为不同的应用程序维护几个别名.

For now onwards, choose a single keystore and maintain several alias inside it for different applications.

参考: http://developer.android.com/tools/publishing/app-signing.html

这篇关于我可以将多个Android密钥库文件合并为一个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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