Signing a Pre-Packaged APK for the Android Market

839 views Asked by At

Firstly I am not a Developer - I am just creating a simple application. In fact I am not really creating, rather modifying an existing application. The application in question was made for a UK market, and I needed an AU market (this is in terms of the Images used) and thus it was quite simple to open the APK which I downloaded and edit the Images as required. I then signed it using the AutoSign App, and added it to my phone, where it runs as good as the original. I submitted it to the original developer - who asked if he could post it on the Market. I was happy for him to do this. However, as I used the Auto Sign tool, the following error was reported: Market does not accept apks signed with certificates issued by Android team. Create a new certificate that is valid for at least 50 years. Now like I said I am not a developer, and whilst I have the Android and Java SDK and Eclipse installed, and Android App Maker installed, I am still unable to do what I wan't to do - that is create a valid sign key and sign my packaged APK (even if I have to un package it via Compressed folder) with this for distribution to the Market. Any assistance you can offer is much appreciated! Sincere regards, Ryan Carmichael

2

There are 2 answers

4
Keysmack On

Why not send an unsigned version to him and let him sign it with his developer license? He obviously has a valid one if he's already got apps in the market.

0
Ryan Carmichael On

I ended up figuring it out myself - To create a key: keytool -genkey -v -keystore keystore.keystore -alias alias_name -keyalg RSA -validity 10000

To test the key: keytool -keystore keystore.keystore -list -v

To apply the key: jarsigner -verbose -keystore keystore.keystore -signedjar apk_signed.apk apk.apk alias_name

Hope this helps someone! Ryan