diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd index 110418a262cd5..dc78bb944ab6f 100644 --- a/docs/html/preview/api-overview.jd +++ b/docs/html/preview/api-overview.jd @@ -733,19 +733,21 @@ specify how user CAs should be trusted.
Android N introduces APK Signature Scheme v2, a new app-signing scheme that - offers faster app install times and better protection against unauthorized - alterations to APK files. Android Studio 2.2 and Gradle provide built-in - support for APK Signature Scheme v2. + offers faster app install times and more protection against unauthorized + alterations to APK files. By default, Android Studio 2.2 and the Android + Plugin for Gradle 2.2 sign your app using both APK Signature Scheme v2 and + the traditional signing scheme, which uses JAR signing.
- Although we recommend applying APK Signature Scheme v2 to your app, the new
- scheme is not mandatory. If your app doesn't build properly when using the
- APK Signature Scheme v2, you can use the traditional signing scheme—which
- uses JAR signing—instead. To use the traditional scheme, open the
- module-level build.gradle file and add the
- v2SigningEnabled parameter to your release signing
- configuration, setting this parameter's value to false:
+ Although we recommend applying APK Signature Scheme v2 to your app, this new
+ scheme is not mandatory. If your app doesn't build properly when using APK
+ Signature Scheme v2, you can disable the new scheme. The disabling process
+ causes Android Studio 2.2 and the Android Plugin for Gradle 2.2 to sign your
+ app using only the traditional signing scheme. To sign with only the
+ traditional scheme, open the module-level build.gradle file, then
+ add the line v2SigningEnabled false to your release signing
+ configuration:
@@ -764,12 +766,18 @@ specify how user CAs should be trusted. }+
Caution: If you sign your app using APK
+ Signature Scheme v2 and make further changes to the app, the app's signature
+ is invalidated. For this reason, use tools such as zipalign
+ before signing your app using APK Signature Scheme v2, not after.
+
- For more information, see the following guides, which describe how to sign an app - in Android Studio and how to + sign an app in Android Studio and how to configure - the Gradle build file for signing apps. + the build file for signing apps using the Android Plugin for Gradle.