diff options
author | Michael Groover <mpgroover@google.com> | 2020-04-14 17:07:23 -0700 |
---|---|---|
committer | Michael Groover <mpgroover@google.com> | 2020-04-16 18:35:39 -0700 |
commit | a4a01127d80821340da9b18217c60d7ee7217fd7 (patch) | |
tree | 2c9afdb7fd918991ea0ae34b88fa8983f8062637 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0fcab06f8023b0a8002fe64cdbbf4703f0900dc3 (diff) |
Update PM#checkSignatures to support pre-key rotation behavior
When key rotation was added in P all of the existing signature methods
were updated to support pre-key rotation behavior (eg GET_SIGNATURES
returns the first key in the signing lineage), but checkSignatures
was not updated to support similar behavior. This commit updates
checkSignatures to check the oldest signer in the lineage, if either
of the reqested packages has one, if the existing signature check fails.
This allows a developer to compare their app signed with a rotated key
against both an app signed with the previous key as well as an app
signed with only the new key.
Bug: 153910385
Test: atest PackageManagerTests
Test: atest PackageManagerTest
Change-Id: Id0af68bab2b85dc91643551b1f5934c2b8df317f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions