diff --git a/docs/html/guide/publishing/app-signing.jd b/docs/html/guide/publishing/app-signing.jd index e86ec301c25c0..5bd9be5594976 100644 --- a/docs/html/guide/publishing/app-signing.jd +++ b/docs/html/guide/publishing/app-signing.jd @@ -66,7 +66,7 @@ on an emulator or a device if it is not signed. application's signer certificate expires after the application is installed, the application will continue to function normally.
zipalign tool to optimize the final APK package.The Android build tools provide a debug signing mode that makes it easier for you to develop and debug your application, while still meeting the Android system -requirement for signing your .apk. +requirement for signing your APK. When using debug mode to build your app, the SDK tools invoke Keytool to automatically create -a debug keystore and key. This debug key is then used to automatically sign the .apk, so +a debug keystore and key. This debug key is then used to automatically sign the APK, so you do not need to sign the package with your own key.
The SDK tools create the debug keystore/key with predetermined names/passwords:
@@ -215,19 +215,19 @@ to the public when signed with the debug certificate.If you are developing in Eclipse/ADT (and have set up Keytool and Jarsigner as described above in Basic Setup for Signing), signing in debug mode is enabled by default. When you run or debug your -application, ADT signs the .apk with the debug certificate, runs {@code zipalign} on the -package, then installs it on +application, ADT signs the {@code .apk} file with the debug certificate, runs {@code zipalign} on +the package, then installs it on the selected emulator or connected device. No specific action on your part is needed, provided ADT has access to Keytool.
If you are using Ant to build your .apk files, debug signing mode +
If you are using Ant to build your {@code .apk} file, debug signing mode
is enabled by using the debug option with the ant command
(assuming that you are using a build.xml file generated by the
android tool). When you run ant debug to
-compile your app, the build script generates a keystore/key and signs the .apk for you.
-The script then also aligns the .apk with the zipalign tool.
+compile your app, the build script generates a keystore/key and signs the APK for you.
+The script then also aligns the APK with the zipalign tool.
No other action on your part is needed. Read
Building and Running Apps
on the Command Line for more information.
For more information about Keytool, see the documentation at -http://java.sun.com/j2se/1.5.0/docs/tooldocs/#security
+href="http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html"> +http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html @@ -399,11 +399,11 @@ You can not release your application unsigned, or signed with the debug key.To export an unsigned .apk from Eclipse, right-click the project in the Package +
To export an unsigned APK from Eclipse, right-click the project in the Package
Explorer and select Android Tools > Export Unsigned Application
-Package. Then specify the file location for the unsigned .apk.
-(Alternatively, open your AndroidManifest.xml file in Eclipse, open
-the Overview tab, and click Export an unsigned .apk.)
AndroidManifest.xml file in Eclipse, select
+the Manifest tab, and click Export an unsigned APK.)
Note that you can combine the compiling and signing steps with the Export Wizard. See Compiling and signing with Eclipse ADT.
@@ -414,11 +414,11 @@ the Overview tab, and click Export an unsigned .apk.)< with theant command. For example, if you are running Ant from the
directory containing your {@code build.xml} file, the command would look like this:
-ant release+
$ ant release-
By default, the build script compiles the application .apk without signing it. The output file +
By default, the build script compiles the application APK without signing it. The output file
in your project {@code bin/} will be <your_project_name>-unsigned.apk.
-Because the application .apk is still unsigned, you must manually sign it with your private
+Because the application APK is still unsigned, you must manually sign it with your private
key and then align it using {@code zipalign}.
However, the Ant build script can also perform the signing @@ -443,8 +443,8 @@ machine, as described in Basic Setup. Also, make sure that the keystore containing your private key is available.
To sign your application, you run Jarsigner, referencing both the -application's .apk and the keystore containing the private key with which to -sign the .apk. The table below shows the options you could use.
+application's APK and the keystore containing the private key with which to +sign the APK. The table below shows the options you could use.-verbose | Enable verbose output. |
-sigalg | The name of the signature algorithim to use in signing the APK. +Use the value {@code MD5withRSA}. | +
-digestalg | The message digest algorithim to use in processing the entries +of an APK. Use the value {@code SHA1}. | +
-storepass <password> | The password for the keystore. As a security precaution, do not include this option in your command line unless you are working at a secure computer. @@ -478,19 +486,23 @@ way, your password is not stored in your shell history. |