Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95a5be52 authored by Kevin Hufnagle's avatar Kevin Hufnagle Committed by android-build-merger
Browse files

Merge "cherrypick from mnc-io-docs docs: Updated APK Signature Scheme v2 doc"...

Merge "cherrypick from mnc-io-docs docs: Updated APK Signature Scheme v2 doc" into mnc-io-docs am: 458b9913 am: e3280258
am: 70a4bcff

* commit '70a4bcff':
  cherrypick from mnc-io-docs docs: Updated APK Signature Scheme v2 doc

Change-Id: I9992db97b77556604ba55f035ec7c3c699215c0a
parents 5c076442 70a4bcff
Loading
Loading
Loading
Loading
+22 −14
Original line number Original line Diff line number Diff line
@@ -733,19 +733,21 @@ specify how user CAs should be trusted.</p>


<p>
<p>
  Android N introduces APK Signature Scheme v2, a new app-signing scheme that
  Android N introduces APK Signature Scheme v2, a new app-signing scheme that
  offers faster app install times and better protection against unauthorized
  offers faster app install times and more protection against unauthorized
  alterations to APK files. Android Studio 2.2 and Gradle provide built-in
  alterations to APK files. By default, Android Studio 2.2 and the Android
  support for APK Signature Scheme v2.
  Plugin for Gradle 2.2 sign your app using both APK Signature Scheme v2 and
  the traditional signing scheme, which uses JAR signing.
</p>
</p>


<p>
<p>
  Although we recommend applying APK Signature Scheme v2 to your app, the new
  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 the
  scheme is not mandatory. If your app doesn't build properly when using APK
  APK Signature Scheme v2, you can use the traditional signing scheme—which
  Signature Scheme v2, you can disable the new scheme. The disabling process
  uses JAR signing—instead. To use the traditional scheme, open the
  causes Android Studio 2.2 and the Android Plugin for Gradle 2.2 to sign your
  module-level <code>build.gradle</code> file and add the
  app using only the traditional signing scheme. To sign with only the
  <code>v2SigningEnabled</code> parameter to your release signing
  traditional scheme, open the module-level <code>build.gradle</code> file, then
  configuration, setting this parameter's value to <code>false</code>:
  add the line <code>v2SigningEnabled false</code> to your release signing
  configuration:
</p>
</p>


<pre>
<pre>
@@ -764,12 +766,18 @@ specify how user CAs should be trusted.</p>
  }
  }
</pre>
</pre>


<p class="caution"><strong>Caution: </strong> 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 <code>zipalign</code>
  before signing your app using APK Signature Scheme v2, not after.
</p>

<p>
<p>
  For more information, see the following guides, which describe how to <a href=
  For more information, read the Android Studio documents that describe how to
  "{@docRoot}studio/tools/publishing/app-signing.html#release-mode"> sign an app
  <a href="{@docRoot}studio/tools/publishing/app-signing.html#release-mode">
  in Android Studio</a> and how to <a href=
  sign an app</a> in Android Studio and how to <a href=
  "{@docRoot}studio/tools/building/configuring-gradle.html#signing"> configure
  "{@docRoot}studio/tools/building/configuring-gradle.html#signing"> configure
  the Gradle build file for signing apps</a>.
  the build file for signing apps</a> using the Android Plugin for Gradle.
</p>
</p>


<h2 id="scoped_directory_access">Scoped directory access</h2>
<h2 id="scoped_directory_access">Scoped directory access</h2>