Steps to sign the APK – for Google Play acceptance

Run all these in the command line:

1. Set the Java path, to use the Java signer

2. Generating a certificate
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

3. Sign your apk
arsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore my_application.apk alias_name

4. Verify if signature is done ( use any of the commands below )
jarsigner -verify my_signed.apk
or
jarsigner -verify -verbose my_application.apk
or
jarsigner -verify -verbose -certs my_application.apk

5. using zip align tool
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

6. Zipalign the apk
zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk

7. check version
aapt d –values badging

version is located here:
andriod_dev\adt-bundle-windows-x86_64-20130917\adt-bundle-windows-x86_64-20130917\sdk\build-tools\android-4.3

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s