Game Development Reference
In-Depth Information
Listing A-1 uses the Java SDK jarsigner command and the key store created in the previous section
to sign the packed application as follows:
jarsigner -verbose -keystore ar-release-key.keystore Wolfd3D.apk android_radio
The arguments are as follows:
verbose displays information about the files being signed.
keystore defines the location of the Java key store created in the previous section.
Wolfd3D.apk is the application package to sign.
android_radio is the alias that represents the public/private key pair used for
signature.
Caution The keytool and jarsigner commands are part of the Java SDK, not the JRE. You will have to install
a Java SDK and set up the paths in your system to be able to create a key store and sign your applications with
jarsigner .
With the Android SDK 1.5 or later, signing your package is much easier, provided you already have a
key store; you don't need the jarsigner command in this instance. To sign your package with the Eclipse
workbench, follow these steps:
1.
Right-click the project to be signed, and select Android Tools Export Signed
Application Package (see Figure A-1).
2.
In the “Keystore selection” dialog shown in Figure A-2, select “Use existing
keystore,” and navigate to the key store created previously. Type the password
for the key store.
3.
Select the alias that represents the key pair to be used for signature, and enter
the corresponding password (see Figure A-3).
4.
Enter the destination of the package as shown in Figure A-4. Click Finish.
Search WWH ::




Custom Search