Intel

by meshack mbuvi in Circuits > Software

385 Views, 1 Favorites, 0 Comments

Intel

Android.png

signing-xdk-apps
Writing applications for android is always fun.

I am going to give a brief summary on manually signing android apps

Check Java Version

output for java version.png

Open command window and type the following command

$ java -version.

if output is less tha 1.6.

Update the java version to java 6 and above

Generate Keystore

generate keystore.png

use the command:

$ keytool -genkey -v -keystore PATH/TO/YOUR_RELEASE_KEY.keystore -alias YOUR_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000.
Where:

"PATH/TO/YOUR_RELEASE_KEY.keystore": is the path in which you want to store the file and "YOUR_ALIAS_NAME": is the name of keystore remember.

Attach Keystore to the Unsigned Android App

signing xdk app.png

Type this command:
$ jarsigner -verbose -keystore PATH/TO/YOUR_RELEASE_KEY.keystore -storepass YOUR_STORE_PASS -keypass YOUR_KEY_PASS PATH/TO/YOUR_UNSIGNED_PROJECT.apk YOUR_ALIAS_NAME. Where PATH/TO/YOUR_RELEASE_KEY.keystore: The path to your keystore. YOUR_STORE_PASS: is the password you selected when you created a keystore.YOUR_KEY_PASS:This should be the same as YOUR_STORE_PASS unless you have changed it.PATH/TO/YOUR_UNSIGNED_PROJECT.apk:is the path to your unsigned app. YOUR_ALIAS_NAME: is the alias you selected when you created a keystone

Verify That App Is Signed

verify signature.png

$ jarsigner -verify -verbose -certs

YOUR_KEY_PASS PATH/TO/YOUR_UNSIGNED_PROJECT.apk