Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 810d0720 authored by Ellen Arteca's avatar Ellen Arteca
Browse files

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
parent c9615168
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment