Signing an existing apk using debug.keystore generated by eclipse

Dmitry Guselnikov picture Dmitry Guselnikov · May 23, 2013 · Viewed 26k times · Source

I have an existing unsigned apk and I want to sign it using my debug.keystore file. Here I found a tutorial how it can be done.

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name

But what should I write as alias_name and what should be the passphrase? Is there any way to find out what alias_name and passphrase are used by Eclipse during the signing?

Answer

Stefan de Bruijn picture Stefan de Bruijn · May 23, 2013

You don't really want to create it with your debug key, but;

-alias androiddebugkey 
-keystore /the/path/debug.keystore 
-storepass android 
-keypass android