简体   繁体   English

Android调试密钥库可与发布密钥库一起使用吗?

[英]Does Android debug keystore work with release keystore?

I have two Android apps that are designed to work together. 我有两个旨在协同工作的Android应用程序。 One calls some interface method in the other. 一个在另一个中调用某种接口方法。 When they are released, they will use the same release keystore, so that they can talk to each other. 释放它们时,他们将使用相同的释放密钥库,以便彼此交谈。 But now my question is, if one of my app is still debugging using the debug keystore, and the other is using the release keystore, should the debugging app be able to talk to the release app? 但是现在我的问题是,如果我的一个应用程序仍在使用调试密钥库进行调试,而另一个应用程序仍在使用发行密钥库进行调试,那么调试应用程序是否应该能够与发行版应用程序对话? I was told that I can't do this before, but now I was told that I can. 有人告诉我我以前做不到,但现在有人告诉我可以。 I asked my colleague and searched online but can't get an explanation. 我问了我的同事并在线搜索,但无法获得解释。 Can someone explain this? 有人可以解释吗? Thanks. 谢谢。

No, they don't. 不,他们没有。 The debug keystore isn't anything special, its just a keystore that is automatically generated when you install Android Studio. 调试密钥库没有什么特别的,它只是在安装Android Studio时自动生成的密钥库。 If you have two apps that only work with the same signing key, then they will not work if one is release and one is debug. 如果您有两个仅使用相同签名密钥的应用程序,那么如果其中一个已发布而一个已调试,则它们将无法工作。

But please note: depending on what you're doing, you don't need the same signing key to talk to each other. 但请注意:根据您在做什么,您不需要相同的签名密钥即可相互交谈。 You only need it if you're doing very specific things, like broadcasting a signed permission. 仅在执行非常具体的操作(例如广播已签名的许可)时才需要它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM