| commit | 6905c336b29561abf7841cfa1bde5eeab62915e7 | [log] [tgz] |
|---|---|---|
| author | Janis Danisevskis <jdanis@google.com> | Fri Sep 01 13:24:23 2017 -0700 |
| committer | Janis Danisevskis <jdanis@google.com> | Fri Sep 01 14:58:39 2017 -0700 |
| tree | d181749f636adfab736c1e1c68a1d2bfede11167 | |
| parent | 66ffb8a4895fb185ffcc88bd3fba78d8737dd022 [diff] |
Fix retreiving characteristics file for grant key
getKeyForName was broken in case the name was a grant name and the
type was TYPE_KEY_CHARACTERISTICS. In this case the key blob instead of
the key characteristics blob was retreived.
Bug: 65200397
Bug: 37264540
Bug: 62237038
Test: run cts-dev --module CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement
because it grants a key
Change-Id: I0746d60555b51d47ea19ab05b9da29164c8b71db