Loading services/core/java/com/android/server/locksettings/LockSettingsShellCommand.java +5 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,11 @@ class LockSettingsShellCommand extends ShellCommand { final boolean havePassword = mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId); final boolean havePattern = mLockPatternUtils.isLockPatternEnabled(mCurrentUserId); if (havePassword || havePattern) { if (mLockPatternUtils.isManagedProfileWithUnifiedChallenge(mCurrentUserId)) { getOutPrintWriter().println("Profile uses unified challenge"); return false; } try { final boolean result; if (havePassword) { Loading Loading
services/core/java/com/android/server/locksettings/LockSettingsShellCommand.java +5 −0 Original line number Diff line number Diff line Loading @@ -160,6 +160,11 @@ class LockSettingsShellCommand extends ShellCommand { final boolean havePassword = mLockPatternUtils.isLockPasswordEnabled(mCurrentUserId); final boolean havePattern = mLockPatternUtils.isLockPatternEnabled(mCurrentUserId); if (havePassword || havePattern) { if (mLockPatternUtils.isManagedProfileWithUnifiedChallenge(mCurrentUserId)) { getOutPrintWriter().println("Profile uses unified challenge"); return false; } try { final boolean result; if (havePassword) { Loading