Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread Dom
Hi mendhak, did you solve this problem? Were you able to get the MD5 Certificate Fingerprint of your app programmatically? Any directions on how to achieve this please? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread gaurav gupta
Hi Dude, follow this link .. it will work http://blogspot.fluidnewmedia.com/2009/04/displaying-google-maps-in-the-android-emulator/ On Wed, Jun 8, 2011 at 6:37 PM, Dom dominicmarm...@gmail.com wrote: Hi mendhak, did you solve this problem? Were you able to get the MD5 Certificate Fingerprint

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread Dom
Actually, I (and mendhak's original post) would like to get the MD5 fingerprint via CODE or PROGRAMMATICALLY. Getting it via the keytool is well documented in tonnes of places across the web. I would like to implement an architecture similar to google maps api. The way google maps authorizes

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread Nikolay Elenkov
On Wed, Jun 8, 2011 at 10:54 PM, Dom dominicmarm...@gmail.com wrote: Actually, I (and mendhak's original post) would like to get the MD5 fingerprint via CODE or PROGRAMMATICALLY. Getting it via the keytool is well documented in tonnes of places across the web. Simply use the MessageDigest

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread emaildevbr . stress
3 Sent from my Verizon Wireless Phone -Original message- From: Nikolay Elenkov nikolay.elen...@gmail.com To: android-developers@googlegroups.com Sent: Wed, Jun 8, 2011 11:46:52 GMT-03:00 Subject: Re: [android-developers] Re: How do I get the MD5 fingerprint of my application

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread Nikolay Elenkov
On Thu, Jun 9, 2011 at 12:21 AM, Dom dominicmarm...@gmail.com wrote: Got it, thanks! Here's the snippet of code:             Signature[] sigs = getBaseContext().getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures;             for(Signature sig :

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread Dom
Got it, thanks! Here's the snippet of code: Signature[] sigs = getBaseContext().getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES).signatures; for(Signature sig : sigs) { byte[] hexBytes = sig.toByteArray();

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2011-06-08 Thread Dom
Ok, cool, thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-11 Thread ko5tik
I'm curious as to whether these are always the same, or generated for us and unique to each SDK install, but I'm not going to look just now. It definitely varies - I use several boxes for development (my older laptop retired to mother in law house ;) ) and I have to uninstall apps compiled

Re: [android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-11 Thread ~ TreKing
On Sun, Apr 11, 2010 at 6:08 AM, ko5tik kpriblo...@yahoo.com wrote: It definitely varies - I use several boxes for development (my older laptop retired to mother in law house ;) ) and I have to uninstall apps compiled with debug keys before I can start them from other box. I believe that

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-10 Thread mendhak
Hi, thanks for responding. I had a look, and yes, the bytes were the same as the 979 character string (hex) - they contained the certificate itself. I should post it here anyways, since it is the debug certificate in this case. Well, here it is: --

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-10 Thread Bob Kerns
OK, converting to base64 (using your link), formatting it as a certificate file, and using openssl to parse the result, we get to see the actual content: Certificate: Data: Version: 3 (0x2) Serial Number: 1269799100 (0x4baf98bc) Signature Algorithm:

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread mendhak
Still struggling with this. Based on what you said, I tried playing with this: Signature[] sigs = getBaseContext().getPackageManager().getPackageInfo(com.whatever.blahpackage, 64).signatures; (64 = GET_SIGNATURE) I then had a look at sigs[0].toCharsString() which produced a 979 character

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread Bob Kerns
Well, first, there's likely to be no MD5 hash involved at all. DSA with SHA-1 would be the default signature type now, I believe. Hashcode would not be secure. That is, you can construct an alternate app+signature that would produce the same hash code. That may be good enough for you, but I would

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread ko5tik
On Apr 5, 6:09 pm, Bob Kerns r...@acm.org wrote: Hashcode would not be secure. That is, you can construct an alternate app+signature that would produce the same hash code. That may be good enough for you, but I would discourage such a technique. However, you could construct a secure SHA-1

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-04-05 Thread Bob Kerns
Actually, the package manager would be able to check using the API. The only thing that was at question was whether the byte sequence included anything beyond the certificate or not. We know the API doesn't. Actually, what I'd like to know is whether it includes the certificate, or just the public

[android-developers] Re: How do I get the MD5 fingerprint of my application certificate through code?

2010-03-31 Thread ko5tik
I'm also gnawing on the same problem. At the moment I'm investigating following path: Context - Package Manager - Package info (for name, with signatures ) - Signatures -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this