如何处理Android中丢失的KeyStore密码? [英] How to handle a lost KeyStore password in Android?

查看:259
本文介绍了如何处理Android中丢失的KeyStore密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我忘记了我的密钥库密码,我真的不知道该怎么办(我不能或不会为此找任何借口).我想更新我的应用程序,因为我刚刚修复了一个错误,但现在不可能了.如果我使用相同的密钥库但创建一个新密钥,会发生什么情况?我仍然可以更新该应用程序,如果无法更新,该如何向用户提供有关更新版本的信息?

I have forgotten my Keystore password and I don't really know what to do anymore (I can't or won't give any excuses for it). I want to update my app because I just fixed a bug but it's not possible anymore. What happens if I use the same Keystore but create a new key? Would I still be able to update the app and if it's not possible, how can I go about giving information to users about the updated version?

如果有人遇到这样的问题或遇到麻烦,您可以提供什么建议来帮助纠正这种情况?幸运的是,它是一个免费的应用程序.

If anybody has had a problem like this or has come across troubles, what advice can you give to help remedy the situation? Fortunately, it is a free app.

推荐答案

我自己也遇到了这个问题-幸运的是,我能够在某些Gradle的临时文件中找到密码.以防万一有人落在这里:

Just encountered this problem myself - luckily I was able to find the password in some Gradle's temporary file. Just in case anyone lands here:

尝试查找此文件

..Project\.gradle\2.4\taskArtifacts\taskArtifacts.bin

or

.gradle/3.5/taskHistory/taskHistory.bin
.gradle/5.1.1/executionHistory/executionHistory.bin
.gradle/caches/5.1.1/executionHistory/executionHistory.bin

并搜索

storePassword

它以明文形式存在.通常,如果您确实记得密码的至少一部分,请尝试搜索包含此子字符串的文件,并希望您能从中发现一些东西.

It was there in cleartext. In general, if you do remember at least a part of your password, try searching for a file containing this substring and hopefully you will fish out something.

想把它扔在这里,也许最终会帮助某人.

Wanted to throw it out here, maybe it will eventually help someone.

从评论中添加了新的见解,以使其更加可见.

感谢Vivek Bansal,Amar Ilindra和Uzbekjon.

Thanks to Vivek Bansal, Amar Ilindra and Uzbekjon for these.

这篇关于如何处理Android中丢失的KeyStore密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆