commit | 80f7be151602e128b885c82291d527af5ff65511 | [log] [tgz] |
---|---|---|
author | James Willcox <jwillcox@google.com> | Wed Nov 08 17:13:16 2023 +0000 |
committer | James Willcox <jwillcox@google.com> | Wed Nov 08 17:13:49 2023 +0000 |
tree | 8b19152aeb61a6648a481a0ebe0a824fc241544e | |
parent | 449c3b2cec7fbd0feac97aad4949c9fab1282069 [diff] |
Use CLOCK_BOOTTIME for keystore2 auth token received time CLOCK_BOOTTIME is more correct because it includes time spent while the device is suspended. This also fixes an issue when comparing the times resulting from the get_last_auth_time() API in the Java world, because we want to use SystemClock.elapsedRealtime(), which uses CLOCK_BOOTTIME. Bug: 309686873 Test: atest keystore2_client_tests Change-Id: I89d71ccfcfe4f8b3495fede40ae26ad6fa2b0118