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

Commit 52025e30 authored by Dinesh K Garg's avatar Dinesh K Garg Committed by Linux Build Service Account
Browse files

Clear traces of temporary stored password after updating password

If HW accelerated FDE is in use, LockSettingService would store old
password temporarily in memory untill password update is completed.
Once password update is complete, it resets the old password. This
change would additionally reset password everytime password update
process is started and completed.

Change-Id: I9a92b44678b023336a5d51b61c89cb102166de6c
parent f89407c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ public class ChooseLockGeneric extends SettingsActivity {
            mKeyStore = KeyStore.getInstance();
            mChooseLockSettingsHelper = new ChooseLockSettingsHelper(this.getActivity());
            mLockPatternUtils = new LockPatternUtils(getActivity());
            mLockPatternUtils.sanitizePassword();

            // Defaults to needing to confirm credentials
            final boolean confirmCredentials = getActivity().getIntent()
@@ -719,6 +720,7 @@ public class ChooseLockGeneric extends SettingsActivity {
        @Override
        public void onDestroy() {
            super.onDestroy();
            mLockPatternUtils.sanitizePassword();
        }

        @Override