diff --git a/core/java/com/android/internal/widget/LockPatternUtils.java b/core/java/com/android/internal/widget/LockPatternUtils.java index 361bdce715de5..e0183931777bc 100644 --- a/core/java/com/android/internal/widget/LockPatternUtils.java +++ b/core/java/com/android/internal/widget/LockPatternUtils.java @@ -1082,7 +1082,10 @@ public class LockPatternUtils { */ @UnsupportedAppUsage public boolean isVisiblePatternEnabled(int userId) { - return getBoolean(Settings.Secure.LOCK_PATTERN_VISIBLE, false, userId); + // Default to true, since this gets explicitly set to true when a pattern is first set + // anyway, which makes true the user-visible default. The low-level default should be the + // same, in order for FRP credential verification to get the same default. + return getBoolean(Settings.Secure.LOCK_PATTERN_VISIBLE, true, userId); } /**