如何将别名添加到 Android (Java) 密钥库
How to add an Alias to Android (Java) Keystore
在 Android-Studio 中创建新的 Java 密钥库很容易。但我想为这个密钥库添加第二个别名。对于同一客户的第二个应用程序。我怎么做?或者,如果这是一个不太好的主意,什么是更好的方法?
编辑: 我不打算为同一个项目使用不同的密钥库。第一个项目是在 Android Studio 中完成的,第二个项目是在 Intel XDK 中完成的。他们不会共享进程或需要访问另一个中的数据。
根据google的建议,它说
签约考虑:
You should sign all of your APKs with the same certificate throughout
the expected lifespan of your apps. There are several reasons why you
should do so
App upgrade: When the system is installing an update to an app, it compares the certificate(s) in the new version with those in the
existing version. The system allows the update if the certificates
match. If you sign the new version with a different certificate, you
must assign a different package name to the app—in this case, the user
installs the new version as a completely new app.
App modularity: Android allows APKs signed by the same certificate to run in the same process, if the apps so request, so that the system
treats them as a single app. In this way you can deploy your app in
modules, and users can update each of the modules independently.
Code/data sharing through permissions: Android provides signature-based permissions enforcement, so that an app can expose
functionality to another app that is signed with a specified
certificate. By signing multiple APKs with the same certificate and
using signature-based permissions checks, your apps can share code and
data in a secure manner.
检查https://developer.android.com/studio/publish/app-signing.html#strategies
阅读此答案以了解有关 keystore, certificates and alias
的更多信息
官方文档说
In general, the recommended strategy for all developers is to sign all of your applications with the same certificate, throughout the expected lifespan of your applications. There are several reasons why you should do so ...
https://developer.android.com/studio/publish/app-signing.html#considerations
您可以使用相同的证书。对于所有应用程序,也为了简单起见,您可以为所有应用程序使用相同的别名
您也可以在 Android Studio 中执行此操作,只需转至 "Build > Generate Signed APK",跳至下一步,单击 [=13= 右侧的“3 点灰色按钮” ] 字段,然后为您的其他应用键入新的别名和密码。
在 Android-Studio 中创建新的 Java 密钥库很容易。但我想为这个密钥库添加第二个别名。对于同一客户的第二个应用程序。我怎么做?或者,如果这是一个不太好的主意,什么是更好的方法?
编辑: 我不打算为同一个项目使用不同的密钥库。第一个项目是在 Android Studio 中完成的,第二个项目是在 Intel XDK 中完成的。他们不会共享进程或需要访问另一个中的数据。
根据google的建议,它说
签约考虑:
You should sign all of your APKs with the same certificate throughout the expected lifespan of your apps. There are several reasons why you should do so
App upgrade: When the system is installing an update to an app, it compares the certificate(s) in the new version with those in the existing version. The system allows the update if the certificates match. If you sign the new version with a different certificate, you must assign a different package name to the app—in this case, the user installs the new version as a completely new app.
App modularity: Android allows APKs signed by the same certificate to run in the same process, if the apps so request, so that the system treats them as a single app. In this way you can deploy your app in modules, and users can update each of the modules independently.
Code/data sharing through permissions: Android provides signature-based permissions enforcement, so that an app can expose functionality to another app that is signed with a specified certificate. By signing multiple APKs with the same certificate and using signature-based permissions checks, your apps can share code and data in a secure manner.
检查https://developer.android.com/studio/publish/app-signing.html#strategies
阅读此答案以了解有关 keystore, certificates and alias
的更多信息官方文档说
In general, the recommended strategy for all developers is to sign all of your applications with the same certificate, throughout the expected lifespan of your applications. There are several reasons why you should do so ...
https://developer.android.com/studio/publish/app-signing.html#considerations
您可以使用相同的证书。对于所有应用程序,也为了简单起见,您可以为所有应用程序使用相同的别名
您也可以在 Android Studio 中执行此操作,只需转至 "Build > Generate Signed APK",跳至下一步,单击 [=13= 右侧的“3 点灰色按钮” ] 字段,然后为您的其他应用键入新的别名和密码。