Android 中的密钥库有效性是什么意思?
What is the meaning of the keystore validity in Android?
可以作为过期keystore的标志,安装也可以。
ex) 1 天密钥库生成。
$ keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 1
ex) my-release-key.keystore 已经过期了。
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my-release-key.keystore my_application.apk alias_name
也可以启动应用程序。那么,Android 中密钥库有效性的含义是什么?
keystore 用于验证开发者的 id,即使 keystore 已过期应用程序也能在我们的 android phone 上正常运行,它赢了不打动这个应用程序的任何功能,但是一旦开发者要发布这个应用程序的新版本,它就不能再使用这个密钥库,否则将被拒绝 Google 播放,如果您使用新的调试密钥库 运行 在您的设备上进行调试,系统将通知将删除预应用程序以安装新的,因为它们不兼容。
If you plan to support upgrades for an app, ensure that your key has a
validity period that exceeds the expected lifespan of that app. A
validity period of 25 years or more is recommended. When your key's
validity period expires, users will no longer be able to seamlessly
upgrade to new versions of your application.
If you plan to publish your apps on Google Play, the key you use to
sign these apps must have a validity period ending after 22 October
2033. Google Play enforces this requirement to ensure that users can seamlessly upgrade apps when new versions are available.
If you plan to support upgrades for an app, ensure that your key has a
validity period that exceeds the expected lifespan of that app. A
validity period of 25 years or more is recommended. When your key's
validity period expires, users will no longer be able to seamlessly
upgrade to new versions of your application.
在签署注意事项部分阅读更多内容以更好地理解这一点。
可以作为过期keystore的标志,安装也可以。
ex) 1 天密钥库生成。
$ keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 1
ex) my-release-key.keystore 已经过期了。
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1
-keystore my-release-key.keystore my_application.apk alias_name
也可以启动应用程序。那么,Android 中密钥库有效性的含义是什么?
keystore 用于验证开发者的 id,即使 keystore 已过期应用程序也能在我们的 android phone 上正常运行,它赢了不打动这个应用程序的任何功能,但是一旦开发者要发布这个应用程序的新版本,它就不能再使用这个密钥库,否则将被拒绝 Google 播放,如果您使用新的调试密钥库 运行 在您的设备上进行调试,系统将通知将删除预应用程序以安装新的,因为它们不兼容。
If you plan to support upgrades for an app, ensure that your key has a validity period that exceeds the expected lifespan of that app. A validity period of 25 years or more is recommended. When your key's validity period expires, users will no longer be able to seamlessly upgrade to new versions of your application.
If you plan to publish your apps on Google Play, the key you use to sign these apps must have a validity period ending after 22 October 2033. Google Play enforces this requirement to ensure that users can seamlessly upgrade apps when new versions are available.
If you plan to support upgrades for an app, ensure that your key has a validity period that exceeds the expected lifespan of that app. A validity period of 25 years or more is recommended. When your key's validity period expires, users will no longer be able to seamlessly upgrade to new versions of your application.
在签署注意事项部分阅读更多内容以更好地理解这一点。