commit | eec02e9f1025c853e8b605508818e3f36d5a339b | [log] [tgz] |
---|---|---|
author | Ellen Arteca <emarteca@google.com> | Tue Apr 23 23:14:05 2024 +0000 |
committer | Ellen Arteca <emarteca@google.com> | Mon Apr 29 23:02:53 2024 +0000 |
tree | e9e9f59c3fdf85841be4763fc6da938b14944d65 | |
parent | 810d07206fb6dab1fd9fda21014a48c3154e38c1 [diff] |
Wipe the LockscreenCredential in DPMS#resetPasswordInternal 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 DevicePolicyManagerService. Bug: 320392352 Test: build Change-Id: Iad642dd4706ae052affc2f9ac6d6f0695870728d