Disable incorrect strong auth prompt strings.
The prompt strings on the confirm credentials screen (pin, password, pattern) are incorrect. They currently say strong auth is "required after device restarts". But instead they should be "required for additional security" because strong auth can be enforced not only after device or profile restarts, but also after profile key eviction, for example. Unfortunately, we've already missed the window for string changes. Therefore, as an alternative, we use generic prompt strings in this CL, to avoid conveying the incorrect (and misleading) information. We'll follow up with another CL in master with a proper string change to fix the issue. Bug: 36511626 Test: manual Test: make SettingsRoboTests Change-Id: I44f84420b88bb4933ad0afa6e8032af465de0cd3
This commit is contained in:
@@ -243,15 +243,11 @@ public class ConfirmLockPattern extends ConfirmDeviceCredentialBaseActivity {
|
||||
}
|
||||
|
||||
private int getDefaultDetails() {
|
||||
boolean isStrongAuthRequired = isStrongAuthRequired();
|
||||
// TODO(b/36511626): add back special strings for strong auth.
|
||||
if (UserManager.get(getActivity()).isManagedProfile(mEffectiveUserId)) {
|
||||
return isStrongAuthRequired
|
||||
? R.string.lockpassword_strong_auth_required_reason_restart_work_pattern
|
||||
: R.string.lockpassword_confirm_your_pattern_generic_profile;
|
||||
return R.string.lockpassword_confirm_your_pattern_generic_profile;
|
||||
} else {
|
||||
return isStrongAuthRequired
|
||||
? R.string.lockpassword_strong_auth_required_reason_restart_device_pattern
|
||||
: R.string.lockpassword_confirm_your_pattern_generic;
|
||||
return R.string.lockpassword_confirm_your_pattern_generic;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user