diff options
| author | Rich Slogar <rslogar@google.com> | 2014-11-07 15:17:36 -0800 |
|---|---|---|
| committer | Joe Fernandez <joefernandez@google.com> | 2014-12-07 20:08:45 -0800 |
| commit | 5d9d761040fa54e6e67a060844a6481ae6fc74bc (patch) | |
| tree | 4cb7a12eab5531537952e9077db77e0c895a9156 /docs/html/tools/publishing/app-signing.jd | |
| parent | fc64b70a20bfd9cdc6ba488f4cd625dae2d5b923 (diff) | |
| download | frameworks_base-5d9d761040fa54e6e67a060844a6481ae6fc74bc.zip frameworks_base-5d9d761040fa54e6e67a060844a6481ae6fc74bc.tar.gz frameworks_base-5d9d761040fa54e6e67a060844a6481ae6fc74bc.tar.bz2 | |
docs: publishing with studio [CP]
Cherry-pick from Change-Id: I56ecbd655747c6a9def323eade7b21bb0d46aeb2
Change-Id: Id06ddbd8fae18b5ccdf09cfe943ef074925a935a
Diffstat (limited to 'docs/html/tools/publishing/app-signing.jd')
| -rw-r--r-- | docs/html/tools/publishing/app-signing.jd | 49 |
1 files changed, 11 insertions, 38 deletions
diff --git a/docs/html/tools/publishing/app-signing.jd b/docs/html/tools/publishing/app-signing.jd index 53e6e65..04e12cc 100644 --- a/docs/html/tools/publishing/app-signing.jd +++ b/docs/html/tools/publishing/app-signing.jd @@ -19,7 +19,7 @@ page.title=Signing Your Applications <li><a href="sign-auto">Automatically Signing Your App</a></li> </ol> </li> -<li><a href="#adt">Signing Your App with the ADT plugin for Eclipse</a></li> +<li><a href="#studio">Signing Your App with Android Studio</a></li> <li><a href="#considerations">Signing Considerations</a></li> <li><a href="#secure-key">Securing Your Private Key</a></li> <li><a href="#expdebug">Expiry of the Debug Certificate</a></li> @@ -56,13 +56,19 @@ your own certificate.</p> This certificate has a private key with a known password, so you can run and debug your app without typing the password every time you make a change to your project.</p> -<p>Android Studio and the ADT plugin for Eclipse sign your app in debug mode automatically when +<p>Android Studio signs your app in debug mode automatically when you run or debug your project from the IDE.</p> <p>You can run and debug an app signed in debug mode on the emulator and on devices connected to your development manchine through USB, but you cannot distribute an app signed in debug mode.</p> +<p>By default, the <em>debug</em> configuration uses a debug keystore, with a known +password and a default key with a known password. +The debug keystore is located in $HOME/.android/debug.keystore, and is created if not present. + +The debug build type is set to use this debug <code>SigningConfig</code> automatically. </p> + <p>For more information about how to build and run apps in debug mode, see <a href="{@docRoot}tools/building/index.html">Building and Running</a>.</p> @@ -88,7 +94,7 @@ any updates to your app, since you must always sign all versions of your app wit key.</p> <p>The rest of this document provides detailed instructions about how to generate a private -key and sign your apps in release mode with Android Studio and with the ADT plugin for Eclipse.</p> +key and sign your apps in release mode with Android Studio.</p> <h3 id="wear-apps">Signing Android Wear Apps</h3> @@ -154,41 +160,8 @@ more than one), and enter the required information.</p> </ol> <p>You can also specify your signing settings in Gradle configuration files. For more information, -see <a href="{@docRoot}sdk/installing/studio-build.html#configureSigning">Signing settings</a>.</p> - +see <a href="{@docRoot}tools/gradle/studio-build.html#configureSigning">Signing settings</a>.</p> -<h2 id="adt">Signing Your App with the ADT Plugin for Eclipse</h2> - -<p>To sign your app in release mode in ADT, follow these steps:</p> - -<ol> -<li>Select the project in the Package Explorer and select <strong>File</strong> > -<strong>Export</strong>.</li> -<li>On the <em>Export</em> window, select <strong>Export Android Application</strong> and click -<strong>Next</strong>.</li> -<li>On the <em>Export Android Application</em> window, select the project you want to sign and -click <strong>Next</strong>.</li> -<li> -<p>On the next window, enter the location to create a keystore and a keystore password. If you -already have a keystore, select <strong>Use existing keystore</strong>, enter your keystore's -location and password, and go to step 6.</p> -<img src="{@docRoot}images/tools/signadt3.png" alt="" - width="488" height="270" style="margin-top:15px"/> -<p class="img-caption"><strong>Figure 6</strong>. Select a keystore in ADT.</p> -</li> -<li><p>On the next window, provide the required information as shown in figure 5.<p> -<p>Your key should be valid for at least 25 years, so you can sign app updates with the same key -through the lifespan of your app.</p> -<img src="{@docRoot}images/tools/signadt4.png" alt="" - width="488" height="448" style="margin-top:15px"/> -<p class="img-caption"><strong>Figure 7</strong>. Create a private key in ADT.</p> -</li> -<li><p>On the next window, select the location to export the signed APK.</p> -<img src="{@docRoot}images/tools/signadt5.png" alt="" - width="488" height="217" style="margin-top:15px"/> -<p class="img-caption"><strong>Figure 8</strong>. Export the signed APK in ADT.</p> -</li> -</ol> <h2 id="considerations">Signing Considerations</h2> @@ -272,7 +245,7 @@ because the build tools generated an expired debug certificate</a>.</p> <h2 id="signing-manually">Signing Your App Manually</h2> -<p>You do not need Android Studio or the ADT plugin for Eclipse to sign your app. You can sign +<p>You do not need Android Studio to sign your app. You can sign your app from the command line using standard tools from the Android SDK and the JDK. To sign an app in release mode from the command line:</p> |
