commit | 6632d8c9d8d1a3ac338d541676148677641bafe3 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Nov 04 16:11:21 2014 -0800 |
committer | The Android Automerger <android-build@google.com> | Wed Nov 12 14:26:35 2014 -0800 |
tree | fe7715b069143095accf410c74eb5fdd4142bdbd | |
parent | 6774d911b99e1d8b404f3e78e892e4a927beeaf4 [diff] |
Preserve original encoded certificate bytes. Sadly, the publicly visible android.content.pm.Signature object needs to return the untouched bytes from the parsed APK certificate. Since some CertificateFactory implementations may try re-encoding the certificate, we defensively keep around the original encoded bytes and return them when asked. (cherry-pick of commit 0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b) Bug: 18206852, 18228011 Change-Id: I6016eaea23a7f43cf9249ec43cfde1f8ed4ff841