I saved my project.apk file, and I was reading this document: http://developer.android.com/guide/publishing/app-signing.html#setup and they kind of skip over the details of how to actually obtain a release key.
Is there a site that just generates this key for me? Does Goolge app store have to know about the key too? I am confused :)
Thanks,
Alex
Scroll down to "Signing in Release Mode"
You can create a self-singed certificate, or use a signing authority. I expect most people use a self-signed cert.
DO NOT LOSE that cert or you will not be able to make updates to your app.
And the easies way for signing is using Eclipse and ADT.
You just right click on your project folder and select:
Android Tools>Export Signed Application Package
Related
My app uses Google Sign In and this requires a package name and SHA-1 fingerprint in order to enable the Google Sign In for the app and get the json configuration file. Naively, since it was a work in progress, I used the SHA-1 from the debug keystore, rather than a production key. I can't seem to change the SHA-1 associated to the app and the Google Sign In service now.
What are my options here? One I've considered is changing the package name for the app, and regenerating the configuration file.
You don't need to change package name!
Go to cloud.google.com
Choose APIs and Services from the menu at the left
Choose credentials
Choose the OAuth 2.0 client id you want to change, eg "Android client 1"
Click on the thing that looks like a pencil to edit it
Edit the signing certificate, and click save
OR alternatively, at step 4 just add a new client id with the same package name but a different certificate if you want both debug and production to work.
To my knowledge I do not think there is a way to change the value once you have put it in, so changing the package name and regenerating your configuration file is the safe and easy way to go. Let me know if that works out!
How to reset Keystore password for android. I can't update application on play store.
How to resolve this problem?
When I tried to update the application with the new key then play store rejected it.
I have the old Keystore file but the password is not accepting.
Faced the same problem
You can create a new keystore, but the Android Market wont allow you
to upload the APK as an update - worse still, if you try uploading the
apk as a new app it will not allow it either as it knows there is a
'different' version of the same apk already in the market even if you
delete your previous version from the play store.
Generally, the only advise that exists on keystores: "always back it up!"
Or you may try this.
One trick is here you can get your password from android studio.I windows go to
C:\Users\yourUser\.Android2.2\system\log\idea.log.1
where Android2.2 is the studio version , you have to go to your version name folder. The password is shown just below the first ***** part . Search in file **** or android.injected.signing.store word. you will find your password.
Hope it helps to you.
I use this one for bruteforce at the moment: Android keystore password recover
There are 3 Methods to recover your keystore password:
- Simply Bruteforce
- Dictionary Attack
- Smart Wordlist Attack
https://code.google.com/archive/p/android-keystore-password-recover/
Useful links:
http://www.icaninfotech.com/android-keystore-password-recovery/
https://discuss.kotlinlang.org/t/forgot-android-alias-key-password/1873
https://www.codeproject.com/Questions/1094759/Reset-keystore-password-without-entering-old-passw
Hope this works.
When I run my app in Eclipse, Google Play Services works normal. But when I export signed application package and install myapp.apk to my phone, app display error The app is incorectly configured....
This is probably because of a directory change, your phone can't find the proper files to launch the app anymore. Try to re-install the app, this will set the right paths and should solve your problems.
Try by updating your device's "Google Play Services". It may help you.
You may try checking copy to my project/workspace option when import google-pay-services-lib in eclipse.
Did you create an OAuth Client ID with the certificate fingerprint from the key that you use for signing the exported application?
Maybe you created one for the debug key (which is the key Eclipse uses when launching the app), but forgot to create and link another one for your release key.
You can find detailed information here: https://developers.google.com/games/services/console/enabling#step_3_generate_an_oauth_20_client_id
After you created the second client ID át the google api console, linking it to the game is not so trivial: you have to link the already linked app again, and you will see that this time it will show the second client ID.
Good luck.
I have a keystroke from google for my app. When I try to Export signed application package from eclipse, it gives me an option to either create a new keystore or to use an existing one.
As per my understanding I must use the "Base64-encoded RSA public key" that I got from Google. But there is no way I can download the key directly from the page where google displays it for me.
Can someone please let me know if I have to import it in someway or am I missing something?
Or should I just copy paste the key to some (binary) file in my project? Please help!
I have a keystroke from google for my app.
But there is no way I can download the key directly from the page where google displays it for me.
Which page is that? You shouldn't download a key in order to sign your application.
Or do you mean the debug.keystore which comes with the installation of the Android bundle? You can use it during development, but you need to create your own key when releasing the App. (Google Play won't accept an apk signed with the debug keystore)
If you are not releasing yet and you want to use the debug keytore - search your system for 'debug.keystore'. On Windows it can be in:
C:\Users\USERNAME\.android\debug.keystore
The passwords for the keystore and the android alias are android.
If however you want to create a new key for yourself - you can do that using the provided keytool as described here.
Finally, if you need an additional key for accessing some Google API (eg. Maps) with your App, then from the online developer console you need to create an additional Android key with the same fingerprint, as the one that you are signing the App with. This additional key is typically included in your manifest after that.
For reference, you can create new keys for your App here: https://console.developers.google.com
I have signed my android application with my generated keystore certificate is it possible inside my java code to check the unique information of keystore certificate using which i have generated or exported my apk file.
I'm assuming you're trying to figure out which keystore you originally signed your app with. There's no way I know of that you can extract the information.
However, if you have multiple keystores that you likely signed it with around, you can sign the app again with each and try to install it over the top of the existing one. The right key will let you install it, the wrong one will give you an error. I don't recall if you have to increment the version number or not, though.