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

Commit c6f8a998 authored by Kenny Root's avatar Kenny Root Committed by Android (Google) Code Review
Browse files

Merge "LockScreen: don't update KeyStore password on unlock" into jb-mr1-dev

parents 2ce1ae8e abb53b72
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -32,7 +32,6 @@ import com.android.internal.widget.PasswordEntryKeyboardView;

import android.os.CountDownTimer;
import android.os.SystemClock;
import android.security.KeyStore;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
@@ -270,7 +269,6 @@ public class KeyguardPasswordView extends LinearLayout
        String entry = mPasswordEntry.getText().toString();
        if (mLockPatternUtils.checkPassword(entry)) {
            mCallback.reportSuccessfulUnlockAttempt();
            KeyStore.getInstance().password(entry);
            mCallback.dismiss(true);
        } else if (entry.length() > MINIMUM_PASSWORD_LENGTH_BEFORE_REPORT ) {
            // to avoid accidental lockout, only count attempts that are long enough to be a
+0 −2
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import android.graphics.Rect;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.os.SystemClock;
import android.security.KeyStore;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
@@ -239,7 +238,6 @@ public class KeyguardPatternView extends GridLayout implements KeyguardSecurityV
            if (mLockPatternUtils.checkPattern(pattern)) {
                mCallback.reportSuccessfulUnlockAttempt();
                mLockPatternView.setDisplayMode(LockPatternView.DisplayMode.Correct);
                KeyStore.getInstance().password(LockPatternUtils.patternToString(pattern));
                mTotalFailedPatternAttempts = 0;
                mCallback.dismiss(true);
            } else {