From 1362dad293cefae8bcf096592ab512afba28d395 Mon Sep 17 00:00:00 2001 From: Scott Main <> Date: Tue, 21 Apr 2009 14:29:14 -0700 Subject: [PATCH] AI 147225: am: CL 147224 am: CL 147219 update app-signing doc to include a guide to export a signed APK from ADT Original author: smain Merged from: //branches/cupcake/... Original author: android-build Automated import of CL 147225 --- docs/html/guide/publishing/app-signing.jd | 189 ++++++++++++++-------- 1 file changed, 126 insertions(+), 63 deletions(-) diff --git a/docs/html/guide/publishing/app-signing.jd b/docs/html/guide/publishing/app-signing.jd index 28c927aed29c5..a16c9106ad931 100644 --- a/docs/html/guide/publishing/app-signing.jd +++ b/docs/html/guide/publishing/app-signing.jd @@ -22,9 +22,10 @@ page.title=Signing Your Applications
  • Signing in Debug Mode
  • Signing for Public Release
      -
    1. Compiling for Release
    2. -
    3. Obtaining a Suitable Private Key
    4. -
    5. Signing Your Application
    6. +
    7. Compiling for release
    8. +
    9. Obtaining a suitable private key
    10. +
    11. Signing your application
    12. +
    13. Compiling and signing with Eclipse ADT
  • Securing Your Private Key
  • @@ -47,9 +48,9 @@ page.title=Signing Your Applications

    The Android system requires that all installed applications be digitally signed with a certificate whose private key is held by the application's -developer. The system uses the certificate as a means of identifying the author of -an application and establishing trust relationships between applications, rather -than for controlling which applications the user can install. The certificate +developer. The Android system uses the certificate as a means of identifying the author of +an application and establishing trust relationships between applications. The certificate is not +used to control which applications the user can install. The certificate does not need to be signed by a certificate authority: it is perfectly allowable, and typical, for Android applications to use self-signed certificates.

    @@ -61,8 +62,8 @@ certificates.

    that is not signed.
  • You can use self-signed certificates to sign your applications. No certificate authority is needed.
  • -
  • When you are ready to publish your application, you must sign it with a suitable private -key. You can not publish an application that is signed with the default key generated +
  • When you are ready to release your application for end-users, you must sign it with a suitable private +key. You can not publish an application that is signed with the debug key generated by the SDK tools.
  • The system tests a signer certificate's expiration date only at install time. If an @@ -78,20 +79,32 @@ For this reason, you must set up signing for your application before you will be run or debug it on an emulator or device.

    The Android SDK tools assist you in signing your applications when debugging. Both the ADT Plugin -for Eclipse and the Ant build tool offer two signing modes — debug mode and release mode. +for Eclipse and the Ant build tool offer two signing modes — debug mode +and release mode.

    Signing Strategies

    @@ -105,7 +118,7 @@ all of your applications with the same certificate, throughout the expected lifespan of your applications. There are several reasons why you should do so: