commit | 702f9bf7fd6c809592cb93fe2e81c765a1c44ebc | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Nov 04 16:11:21 2014 -0800 |
committer | Kenny Root <kroot@google.com> | Tue Nov 11 19:21:49 2014 +0000 |
tree | d03eb27e30b67221302dcaf3c8ea68743a12d55e | |
parent | 9ed62cd1e87a433130a089f8cf27de560c643c8a [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