更改 Android 签名密钥密码

发布于 2024-10-07 02:44:00 字数 188 浏览 0 评论 0原文

有谁知道如何(以及是否)可以更改用于签署 Android 版本的密码?

我们有一个实时应用程序,但想要更改签名密码。问题是我们不想强迫用户重新安装应用程序(如果我们使用新的密钥,用户将无法安装新版本作为原始应用程序的更新)。

我已经浏览了整个 android 文档,但无法找到任何与该主题相关的内容(除了制作新密钥......)。

Does anybody know how (and if) you can change the password used to sign android builds?

We have a live app, but want to change the signing password. The problem is that we don't want to force our users to reinstall the app (if we use a new key users won't be able to install the new build as an update to the original app).

I've looked all over the android documentation, but have been unable to find anything even related to the subject (except for making a new key...).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

小苏打饼 2024-10-14 02:44:00

事实上,这是可能的:

keytool -storepasswd -keystore my.keystore

Actually, this is possible:

keytool -storepasswd -keystore my.keystore
那小子欠揍 2024-10-14 02:44:00

如果您有旧密码,则可以更改key密码。您需要运行以下命令:

keytool -keypasswd -alias "key_alias" -keypass "old_pass" -new "new_pass" -keystore "your_keystore_path"

You can change the key password , if you have the old password. What you need to run is the following command :

keytool -keypasswd -alias "key_alias" -keypass "old_pass" -new "new_pass" -keystore "your_keystore_path"
回忆凄美了谁 2024-10-14 02:44:00

这是不可能的。它是签名密钥,可将您标识为原始作者而不是冒名顶替者。 “如何恢复丢失的密钥”问题经常出现,唯一的答案是重新开始新的应用程序。

如果您仍然拥有原始签名密钥,您可以发布应用程序更新,导出程序使用的用户数据,然后在可以导入它的新密钥下发布新应用程序,这样至少他们能够保留他们的数据。您在旧密钥下的迁移更新甚至可以使用意图将用户发送到新应用程序的市场下载页面。

This is not possible. It is the signing key that identifies you as the original author and not an imposter. The "how do I recover my lost key" question comes up frequently, and the only answer is to start over with a new application.

If you still have the original signing key, you could release an update to your application which exports user data used by your program, and then release a new app under a new key which can import it, so at least they'd be able to keep their data. Your migration update under the old key could even use an intent to send the the user to the market download page for the new application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文