commit | 810d07206fb6dab1fd9fda21014a48c3154e38c1 | [log] [tgz] |
---|---|---|
author | Ellen Arteca <emarteca@google.com> | Tue Apr 23 23:11:36 2024 +0000 |
committer | Ellen Arteca <emarteca@google.com> | Mon Apr 29 22:59:14 2024 +0000 |
tree | 8bf9bfe148ad2cbab42bfd1e4bd29932d9da614a | |
parent | c96151685f50105d88be4475fc247ba55fbaa22b [diff] |
Mitigate LSKF leaks through the LockscreenCredential in KeyguardManager This CL adds try-with-resources around LockscreenCredential objects, in order to call `close()` when the resource is done being used. This also clears the LSKF `byte[]` representation in the LockscreenCredential. This CL applies the above changes to the KeyguardManager. Bug: 320392352 Test: atest KeyguardManagerTest Change-Id: Idf1d8545a7bc94a257e939fc41184ea9442694f3