Android - 签名 key 过期时会发生什么?

标签 android apk code-signing android-install-apk code-signing-certificate

如果签名 key 过期,现有的 apk 会拒绝安装,还是仅仅意味着新应用无法使用该 key 进行签名?

我们建议使用 25 年以上到期的 key ,Google Play 要求至少在 2033 年 10 月 22 日到期!不过,有些人不妨renew他们的 key 比出于安全原因(摩尔定律、破解算法等)更频繁。

如果 apk 的 key 已过期,是否有任何安装方法(无需依赖开发人员重新发布)?

最佳答案

If a signing key expires, do existing apks refuse to install, or does it just mean that new apps can't be signed with that key?

jarsigner 将拒绝使用过期的 key ,使用旧 key 签名的 apk 将在安装时被 Android 拒绝,但已安装的应用程序将继续正常运行。

https://developer.android.com/guide/publishing/app-signing.html

If an apk's key has expired, is there any way of installing it (without relying on the developer to re-release)?

是的,apk 可以是resigned with your own certificate .

关于Android - 签名 key 过期时会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10566884/

相关文章:

Android.mk 条件

android - PlaceAutoComplete 在已签名的 apk 中不起作用

android - 如何创建可下载的许可证 key ,并在 Android 上检查它

.net - 如何将 StrongName KeyPair 与受密码保护的 key 文件 (pfx) 一起使用?

android - 像 Evernote 应用程序一样向 EditText 添加复选框

android - 如何临时覆盖系统默认铃声?

Android - 更改实时应用程序的包名称

code-signing - 通过 VeriSign 的证书签署 Java ME MIDlet 是否有助于避免安全警告?

iphone - iPad上的“可执行文件已使用无效的权利签名”,在iPhone上运行良好

java - Android 开发显示经纬度并将其发送到数据库