diff options
author | Yimin Li <ymli@google.com> | 2021-03-01 17:02:22 -0800 |
---|---|---|
committer | Yimin Li <ymli@google.com> | 2021-03-01 17:02:22 -0800 |
commit | 331afd3b0190340c014c4100091997f7b69cc97c (patch) | |
tree | fb3153700f802e95fac619faceab30315c26248c | |
parent | a06d16f3102044e9e88281c979b0450b2f877854 (diff) | |
parent | e5c1348c5b1e0b956ef25a11406cb3eb0a0b83b6 (diff) | |
download | security-331afd3b0190340c014c4100091997f7b69cc97c.tar.gz |
Merge commit 'e5c1348c5b1e0b956ef25a11406cb3eb0a0b83b6' into HEAD
Change-Id: I18856b8a5cd44c58047b20dd0467eb77f3e23cf4
-rw-r--r-- | keystore/key_attestation_log_handler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/keystore/key_attestation_log_handler.cpp b/keystore/key_attestation_log_handler.cpp index 34c76a34..c3278cb5 100644 --- a/keystore/key_attestation_log_handler.cpp +++ b/keystore/key_attestation_log_handler.cpp @@ -17,7 +17,11 @@ namespace keystore { void logKeystoreKeyAttestationEvent(bool wasSuccessful, int32_t errorCode) { - android::util::stats_write(android::util::KEYSTORE_KEY_EVENT_REPORTED, + // Due to a requirement in stats-write() method, the optional fields + // which are not required for attestation logging, are marked with -1 for + // non-repeated fields and 0 for repeated fields. + android::util::stats_write(android::util::KEYSTORE_KEY_EVENT_REPORTED, -1, -1, -1, -1, -1, 0, 0, + 0, 0, -1, -1, android::util::KEYSTORE_KEY_EVENT_REPORTED__TYPE__KEY_ATTESTATION, wasSuccessful, errorCode); } |