I am trying to get a google API key to add google maps to my application. I have found a tutorial and created a keystore for my application in eclipse. I am having trouble figuring out how to get the fingerprint. I cannot seem to find the keytool in any of the directories to enter the command to get the fingerprint. I went to Library/Java/JavaVirtualMachine, but the directory after that is empty. Is there another file or a place where the keytool can be found in the directory? I have looked at several tutorials including the android one and have not had much luck. Any ideas>
keytool seems to be in your PATH variable -> so just type keytool inside your terminal and it should start.
$ whereis keytool
/usr/bin/keytool
Related
I need to locate the release signing key for an android app from 4+ years ago. I have the codebase, and the MBP it was last worked on, but the person who worked on it was very disorganized.
I have multiple directories called /proj, /proj2, /desktop_proj, /old/proj...each has 2-3 apks in it. Source control is a similar mess.
I don't know what IDE they used to work on this project. I have IntelliJ, Eclipse, and Android Studio on this old machine. I can search all of them but I don't know where to look.
I did a find and none of the keystores (.jks or .keystore) really match up.
Basically, I was thinking to go the other way -- get the current release apk from google play and check out the keystore on it.
keytool -list -printcert -jarfile super-old-app__release.apk
Then, I can ... do something ... to find the actual name of the key used to create the signing build. Though now that I think of it, I don't know the passwords.
Anyways, maybe I can find that, once I get the actual keys. Does anyone possibly have any suggestions?
If you know alias used in app, you can reverse search it for all files ( search for .JKS or .keystore or without extension ).
Write a batch program searching in complete disk with taking file name as input parameter running
keytool -list -keystore XXX.XXX -alias **YOURAPPAliasname**
Write output of above batch program to a file. All files except one should return you java.lang.Exception: Alias does not exist or incorrect format.
You can modify above batch program to additionally find signature of key to match with signed key. See solutions provided in this link - How do I find out which keystore was used to sign an app?
I'm new to developing Android apps and I wanted to create a Google map inside of a Fragment. So far I've gotten the part where I need the API key and I'm confused by the instructions from the Android developer site and everything I've found online hasn't cleared my confusion.
Could someone provide me with a step by step of how to get my SHA1 fingerprint on Windows 7?
You cannot obtain the API_KEY until you get your SHA1.
Click here to get a nice tutorial that will guide you step by step with images (Specifically when you are operating on Windows 7).
Hope this would Help!!
There are two kinds of fingerprints, debug and release. Assuming you want a release one, then from a console window, you need to run this command to get the fingerprint
keytool -exportcert -alias MY_RELEASE_KEY_ALIAS -keystore MY_FULL_PATH_TO_RELEASE_KEYSTORE_FILE -list -v
The keytool program is in your JDK bin folder. So on Windows, something like C:\Program Files\Java\jdk1.8.0_20\bin is where you should find keytool
Last thing to note is that MY_FULL_PATH_TO_RELEASE_KEYSTORE_FILE in the command above should be the full path to your .keystore file, including the file name
After all that, you will be finally be provided with several fingerprints, including the SHA1. You can copy that, and go back to Google Developers Console and paste it as a new line in the allowed Android Applications, with your package name added to the end, separated by a semi-colon.
I got the debug.keystore SHA1 key with no problem, but I can't get for release keystore. I keep getting this (see image) instead of the wanted list with info. I'm following the guide here: https://developers.google.com/maps/documentation/android/start?hl=da#the_google_maps_api_key
I use this command:
keytool -list -v -keystore C:\keystore.keystore\ -alias jakob harteg
I had to use a cmd window and go to the bin folder of the Java installation folder C:\Program Files\Java\jre7\bin, otherwise I wasn't able to access the keytool. I tried moving keystore to the root folder, but without luck.
Any help? Thanks very much!
I created a Google Maps Android v2 API key easily using the ZipSigner 2 app (beta release).
I found out that for this to work, the alias name can, for some reason, only be one word, in my case it was two.. So ended up creating a new keystore
I'm developing an app that uses Google Maps. I got the debug keystore and got the API key to work while I am debugging my program in Eclipse, but I am thoroughly confused in how to change this so that it works on an Android device when I export the .apk. I have searched around Google, but am mainly finding things that use the debug.keystore and I don't think this is what I want to use when I deploy this on an Android device, because I sent my .apk to a friend and he said he is getting gray boxes on the Map View.
Can anyone fill me in, step-by-step, on how to correctly make a new keystore for my app and how to sign my app so that it will work outside of debugging on Eclipse? A video tutorial would be preferable, but if not, simple 1-2-3 step type instructions would work. Thanks!
Eclipse (through ADT) has a nice wizard that lets you create a real keystore and build a signed apk. Right click your project, then Android Tools -> Export signed Application package
For the google maps key just follow these instructions
head to the command prompt, (I use windows so I'm going to go that route but same general idea for the other OS's)
The keytool program you'll need is part of the JDK so you do have it if your able to compile the apps at all. but it may not be on the app path so you can't just type it into the command line to be used.
for me it was in:C:\Program Files\Java\jdk1.7.0_21\bin so to get it on the app path I typed this in set PATH=%PATH%;C:\Program Files\Java\jdk1.7.0_21\bin
next you need to change to the directory your keystore files are in for me that is: C:\android\keys so I used the command cd C:\android\keys to change to the proper directory
then you need to run the keytool with the proper settings so it knows your after the key and not trying to do something else. the command I used was: keytool -list -v -keystore Testkeys and Testkeys is the name of my keystore use the name of your keystore there instead.
Last by not least it will spit out a whole bunch of different information but the one your looking for will look something like this
SHA1: A1:DF:83:DD:04:B2:26:10:B2:EB:26:00:90:75:D0:10:66:5E:A9:8A
you want all the numbers and : that are after the "SHA1: " that is your app key for the published version of your app, the one you need to register with the google maps api service, and then they will give you a new map api key that you need to put in your project and then republish it, and then the maps will work.
i am trying to run google map tutorial using following link
http://mobiforge.com/developing/story/using-google-maps-android
followed all steps but when i try to run this application it does not display anything except boxes and zooming button
can any one guide is there any thing i am missing?? i have obtained new google map key from google website too.
finally i got my answer,
i had not created MD5 Certificate thats why it was showing only boxes after create MD5 certificate everything is working fine.. :D
the procedure is given below.......
keytool.exe -list -alias androiddebugkey -keystore D:\Androidkeystore\debug.keystore -storepass android -keypass android
if you have not set environment variables for java in your machine then above command wont work or you will have to go to the bin directy of your java folder in program files to run above command.
by copy pasting debug.keystore file from builtin folder to user friendly folder and ran it.
and finally i got the md5 certificate.
yup this is a symptom of not having a google maps api key for your application.
As I'm sure your aware you can find everything you need here for obtaining a google maps api key.