I am sure this is a dumb question, but I cannot find the answer anywhere. I have just resetted my master password. My Key and Keystore passwords are still remembered, but when I try to build the APK, I get the error: "Failed to read key from store (jks file). Keystore was tampered with, or password was incorrect". What do I need to build my project again?
Did you check the following link. It could happen because you are choosing the directory and not the keystore file.
Related
I have lost all the passwords of my application both keystore password, key alias and key password. How can I recover it?
I have .jks file.
I have formatted my system so there are no logs available of Android Studio.
Unfortunately you can not recover that now from .jks file. You need to create new keystore password
if your app is already in the store it won't let you upload the new apk since it will be signed differently, and you won't be able to update it. If your app is not in the store yet, you can create a new keystore and push your app to the store. It's always better to email yourself the keystore key to save it before uploading your apk to the store.
TRY THIS IT HELPED ME RECOVER MY PASSWORD
Search for folder .gradle
under it go to latest folder in my case it is 4.6
go to taskHistory folder
under it open taskHistory.bin file
search for Password keyword in that file
and you will eventually find your stored password for that keystore file.
refer the screenshots.
Due to an accident I lost my keystore password - but I still can distribute it to google play store, because it is still stored somewhere in appcelerators config files.
When I publish it, the alias password is visible in the log, not masked... but unfortunately the keystore password is masked.
Is there a way to retrieve the keystore password from studio?
You're in luck. Because Appcelerator indeed stores the keystore information you can retrieve it. Not in Studio though, but the password is saved in the .settings folder inside your project folder. The .settings folder is a hidden folder.
To be exact, you can find it in this file:
/myProjectDirectory/.settings/com.appcelerator.titanium.android.core.prefs
I switched to a different computer (all opensuse linux with eclipse) and I am not succeeding in signing my updated app with the same key.
Advised by other posts on stack I :
tried to delete trusted.certs (but could not find this file)
looked for debug.keystore. There was one on my old computer. If I open this in export-> exclipse, he asks me for a password instead/or asks if it was tampered with of the "keystore not valid". Did not succeed in inputting the right password.
I could not find deault.keystore in ~/.android
I have a file that I think is my keystore, but I am not sure it is. Could somebody verify this? Here is the file: https://dl.dropboxusercontent.com/u/13564139/dorienhskey
When I try to export with this keystore, I get "Invalid keystore format". I have this file and thisfile.pub in my project directory. Perhaps this is not the keystore, but the key somehow? Would it be possible that I uploaded my app with the debug.keystore? As I can't find any other.
Should I look for some other file?
That doesn't look like a keystore. That looks like a certificate.
You cannot update your app with the debug keystore. You will need to use the keystore which you had used the first time.
How to find? Keep looking at other places.
Identify: If you open the file in UTF encoding, you should see some text, like your "Name", or "Organization Name", you might have given when you had created that keystore.
You could try open the debug.keystore and see what it looks like. Your keystore would be similar.
I have the app ready so trying to sign it. I read the dev docs. Am using eclipse and adt so started using export. Am able to export a sample app. While exporting they says to have the key. I have created a new file and proceeded and finally I got the output apk. Once whn I opened the key file, I cant read anything. So I am confused.. Will it be readable?? or like the same? Please tell me about the certificate they are mentioning on signing the app, is this same as the one, the file I have created?? Thanks in advance..
Once whn I opened the key file, I cant read anything. So I am confused.. Will it be readable??
Your keystore file (e.g. mykeystore.keystore) should not be readable in a text editor or other such program.
Please tell me about the certificate they are mentioning on signing the app, is this same as the one, the file I have created??
Once you have finished signing your APK using your keystore (see Signing your Application), the APK will contain a META-INF directory that contains a CERT.RSA file, which is the application's certificate. You don't need to worry about this file at all, and it is automatically generated by keytool when you sign your APK.
Your private key (see Obtain a Private Key) is also referred to as your signing certificate, and is what is stored in the keystore. This is the key that you use to sign your application. After you have generated this key using keytool, you shouldn't need to worry about it anymore.
I am using Eclipse export for signing apk file (right click on the project, than Export...). Eclipse ask me for keystore and password. I am sure i put the same password and the same keystore like before, but it does not work: Eclipse is writing Keystore was tampered, or password is incorect.
I do not why i could sign my .apk before and now it does not work. Without signing my .apk with the same keystore it is impossible to upload upgrade to market :-(.
Thank you
If it says Keystore was tampered, or password is incorect, high chance that a wrong password was entered. Make sure you check for any caps in the password.
Secondly, make sure you use the same keystore for the same application you uploaded on the market.
One solution for you is if you still can't solve the problem, you will have to create another keystore and change the package name of your project.