Merge "List SHA-1 digests of APK entries\' contents in .SF files."

am: 6b452b2767

* commit '6b452b276773e7f1149845e99777e119cf9754ca':
  List SHA-1 digests of APK entries' contents in .SF files.
This commit is contained in:
Alex Klyubin 2016-01-12 21:26:01 +00:00 committed by android-build-merger
commit bad18cd9cf

View file

@ -418,7 +418,7 @@ class SignApk {
print.flush();
Attributes sfAttr = new Attributes();
sfAttr.putValue(hash == USE_SHA256 ? "SHA-256-Digest" : "SHA1-Digest-Manifest",
sfAttr.putValue(hash == USE_SHA256 ? "SHA-256-Digest" : "SHA1-Digest",
new String(Base64.encode(md.digest()), "ASCII"));
sf.getEntries().put(entry.getKey(), sfAttr);
}