Allow base device properties that are not unique IDs and don't
require special permission to be attested from any process.
Test: atest CtsKeystoreTestCases
Bug: 152945378
Change-Id: I45eeda0eac725fd0ad28caf25a5a183fe117fabb
Attesting (only) to device properties is allowed without special
permission (android.permission.READ_PRIVILEGED_PHONE_STATE) since
base device properties should be accessible to everyone. For
unique identifying IDs attestation the permission is still needed.
Test: atest CtsKeystoreTestCases
Bug: 152945378
Change-Id: I8395e0c18cfc91916a172d20dd6049c7c027e8d9
Without this extra information passed upfront it's not practical to
implement a HAL which incrementally builds up cryptographically
authenticated data.
This information is conveyed by using two new methods on version 2 of
the Identity Credential HAL. If these methods are not implemented (if
a version 1 HAL is running) the invocation fails and we handle this
gracefully by just ignoring the error.
Bug: 154631410
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Change-Id: I17d516e41e800f58daa4c11dcca0305c80740d5b
Without this permission check any app can toggle the locked state of
keymaster once it has been unlocked for the first time.
Bug: 144285084
Test: Manually tested with debugger that the requred code paths are
run.
Merged-In: Idb8a200dc2963e1085e9fddd0c565c5172465e65
Change-Id: Idb8a200dc2963e1085e9fddd0c565c5172465e65
(cherry picked from commit 21f452c372)
(cherry picked from commit aad9178b57)
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 ed9a255fc6 is in history
Change-Id: I6e5bfc719de7b22480bd8b4e2fcd39babeb28af7
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 ed9a255fc6 is in history
Change-Id: I2d38d3f8a335fd20e96d91170bb53cd8562e8605
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 ed9a255fc6 is in history
Change-Id: I454e27a7acbfdd5f43608df0f35871079d4cb3ac
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 ed9a255fc6 is in history
Change-Id: Iba53a6f79c445039c711e1b4683714183dda14f6
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 86022f2ab8 is in history
Change-Id: I3049e82171c69c2b4d23a157218b989e4d9c59c4
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 aad9178b57 is in history
Change-Id: Ia94efe818f1041dbe040e955e9728ff187fdec7c
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 aad9178b57 is in history
Change-Id: If0eb9aa3ac043734ec4006975b59bba1adb21ed8
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 aad9178b57 is in history
Change-Id: I27da261e0838c804115fb72ba02495619c5cc824
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 21f452c372 is in history
Change-Id: I7d4ad1240bc9210cf50fca27f96668ff3f83d912
am skip reason: Change-Id Idb8a200dc2963e1085e9fddd0c565c5172465e65 with SHA-1 21f452c372 is in history
Change-Id: I033f6086e462c4324ad64e95559a1c4bce692235
am skip reason: Change-Id If2479a10f80fba748591c30aa7b8662e1063787e with SHA-1 55975ecbcf is in history
Change-Id: Ib79f9e2b38241e19ccb631297b4e53bed060001c
am skip reason: Change-Id I4fe3c6aeecf960377671d11be0a4dc9fa60dfb18 with SHA-1 19f1caefba is in history
Change-Id: Ia9281e6b5c18f98fa153e51632634d685068d6d2
am skip reason: Change-Id I3bc342a7df0c47c02494ef6fdae24e7ad00a8507 with SHA-1 2bcd5376ec is in history
Change-Id: I7c768bafd66bfb27db2dc91cd711f9369e671021
This reverts commit 7fd8e853e9.
Test: still see keystore process running
Bug: 112038744
Bug: 150267620
Change-Id: I4fe3c6aeecf960377671d11be0a4dc9fa60dfb18
Merged-In: I4fe3c6aeecf960377671d11be0a4dc9fa60dfb18
We punting support for extra certificate to S.
Test: boot
Bug: 112038744
Change-Id: I3bc342a7df0c47c02494ef6fdae24e7ad00a8507
Merged-In: I3bc342a7df0c47c02494ef6fdae24e7ad00a8507