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
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.
I recently uploaded my game on playstore made with unity but I forgot the password to the keystore when I tried to build an update.
After hours of googling I've learned the importance of the keystore file. After a few trial and error attempts I finally figured out the correct password.
However, what if in the future my keystore.debug file gets deleted accidentally? Will it be generated automatically again by unity or do I need to make a backup for this file on the cloud?
If I need to make a backup than do I need to backup only "user/.android/debug.keystore", or are there other files I need to backup as well?
Some exaplanation:
debug.keystore (located on user/.android/debug.keystore) as the name implies, it is only used for debugging. That means, it's only used when you're sitting on your computer with the phone connected via ADB and typing code.
When developers release an app. Another keystore is used, the "release" keystore. That is the one you selected when clicking "Generate signed APK" or set on your gradle file, that you had to create a password for it. That file can be located anywhere on your system, you created it, you should know where it is. That one is very important. That one is the one that will allow you to update the app on the Play Store.
Direct answers:
debug.keystore is disposable and you don't have to worry with it.
the keystore used when exporting the .apk file, that one is VERY VERY important and YES, make backup of it everywhere you can! On an external hard-drive on your house, on a USB-drive and at least 1 cloud backup (e.g. Google Drive). If you loose that file or the password, you won't be able to update your app again.
I hope it helps.
You have to differentiate between debug.keystore & release keystore
debug.keystore Android User Guide
When running or debugging your project from the IDE, Android Studio automatically signs your APK with a debug certificate generated by the Android SDK tools. The first time you run or debug your project in Android Studio, the IDE automatically creates the debug keystore and certificate in $HOME/.android/debug.keystore, and sets the keystore and key passwords.
No need to remember as its generated automatically
release.keystore
Needed to publish on google play console, But take care after you generate it and used to release signed version for push to production when you app become published you can only send updates using this key. it will be permanent for you app package name on Google play. You have to backup key and it's protection password too.
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.
I'm developing an android project signing my app (while developing) with the debug.keystore ... Now I need to use the "real" production keystore (the one which I use when I upload my apk to the play store), while developing to test some in app purchases things.
So it would be great to use the production keystore in eclipse to start the app on my device, so I could use the eclipse debugger etc.
After finishing this testing I want to switch back to the debug.keystore .
So I tried to replace the debug.keystore file in the .android folder, but then I get the error:
Keystore was tampered with, or password was incorrect
since I have not entered the password yet. Where do I enter the password in eclipse (juno)?
Or is there better way (in a wizzard for example) in eclipse, without replacing the debug.keystore file directly, to specify the current keystore that should be used when launching my android application from eclipse run button?
Change the password to default password i.e. android.
here is the SO link . how to Change the Keystore password
I would like to just enter the password in eclipse for the release keystore (like in the export dialog).
Since there is no dialog & I don't want to mess with eclipse internal configuration I use a custom keystore as a work-around.
Read this answer for how to use your release keystore for debugging
If you have taken the backup of the debug.keystore and replaced it then it should not be a issue in replacing it back, However you can specify the debug.keystore from
Eclipse tool bar > Windows> Preference> Android> Build> Custom Keystore.
Also if you want the Keystore to be recreated simply delete it, eclipse will recreated on next run.
If you specify a custom keystore, you have to make sure that the entries are what the eclipse environment expects. Maybe they're not lining up with those requirements? Check out the docs
specifically the Signing in Debug Mode section for details
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.