platform_build/tools/signapk
Alex Klyubin c2c49ed0c1 Unconditionally use SHA-256 when minSdkVersion is 18 or higher.
SHA-1 is deprecated, but the replacement SHA-256 is only supported
for JAR/APK and OTA update package signatures on API Level 18 and
newer. This change thus adds a --min-sdk-version command-line
parameter to signapk. When this parameter is set to 18 or higher,
SHA-256 is used instead of SHA-1. When the parameter is not provided,
SHA-1 is used same as before.

This change also removes any other digests from the MANIFEST.MF.
This is to ignore any MANIFEST.MF digests already there in the APK,
such as when re-signing an already signed APK.

Build scripts will be modified to provide the --min-sdk-version
parameter in a follow-up change. This is not done in this change
because of prebuilts which require a prebuilt version of signapk
to support this parameter before the build scripts can be modified.

Bug: 25643280
Change-Id: I6a2782e465600fe2a3ad0c10bd80db2b80a6fb76
2016-01-12 13:31:59 -08:00
..
src/com/android/signapk Unconditionally use SHA-256 when minSdkVersion is 18 or higher. 2016-01-12 13:31:59 -08:00
test auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
Android.mk Move signapk sources to src dir. 2015-12-15 09:08:45 -08:00
SignApk.mf auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00