Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android how to sign my APK with google provided license key

Tags:

android

apk

I have to sign my APK and Google market provide me a key which is something like

YOUR LICENSE KEY FOR THIS APPLICATION Base64-encoded RSA public key to include in your binary. Please remove any spaces. MIIBIjANBgasdfasdfdaskqhkiG9w0BAQEadfadfasdFAAOCAQ8AMIIBCgKCAQEAuacIf........

How can I sign my APK with this key and how include this key in my binary?

like image 854
Me Malik Avatar asked Jul 05 '13 05:07

Me Malik


People also ask

How do I sign an app with platform key?

Signing Application with the Platform Keys If you are a device vendor and you want to add a system application from the play store, you need to sign that application with the same keys you have signed the ROM. The keys are located in: build/target/product/security : platform. pk8.

How do you sign an app with a certificate?

Export the Certificate Before you can use the certificate to sign your app you need to export it to a Personal Information Exchange (PFX) file. This will create a PFX file that you can use to sign your app.


2 Answers

I had the same question. Finally found that the RSA public key on Dev-Console is for "licensing". It means that the app can use the key to query if the user has a current and valid license for using your app or the services in it. This is totally different from signing an apk.

http://developer.android.com/google/play/licensing/index.html

like image 122
kneewarp Avatar answered Sep 20 '22 14:09

kneewarp


I too am like the original poster asked wondering what to do with the lisence key generated by the developer console on my way to publishing in the Google Play store.

While all the above posts show how to export and create keystore etc in Eclipse or from a command line, none of them answer what the dadgum key Google offers up is for. Do I need to add it somehow? I see no way to specify the key Google generated as a "licening key" in the Google Play Developer Console, and NOTHING tells me HOW to bind THAT key to my app.

I already know how to export a signed app using eclipse but that does not have the Google Play key. If someone can point me in the right direction it is much appreciated.

OK I have figured it out. The licence key is irrelevant to signing your app and is for licensing purposes within your app.

like image 22
Mike Kogan Avatar answered Sep 19 '22 14:09

Mike Kogan