Support face unlock for PS if class2 biometric and above
With this change it is checked if face unlock is supported as a class2 or class3 biometrics on the device. If face is convenience biometrics then face unlock for private space controller is not added. Bug: 329044103 Test: atest UtilsTest and verified Face unlock is not added if face is convenience Change-Id: I6e1a6557774be1173ad3ee7ff7b14d51f9fe1716
This commit is contained in:
@@ -64,8 +64,8 @@ public class PrivateSpaceFacePreferenceController extends BiometricFaceStatusPre
|
||||
@Override
|
||||
public int getAvailabilityStatus() {
|
||||
return android.os.Flags.allowPrivateProfile()
|
||||
&& android.multiuser.Flags.enableBiometricsToUnlockPrivateSpace()
|
||||
&& android.multiuser.Flags.enablePrivateSpaceFeatures()
|
||||
&& android.multiuser.Flags.enableBiometricsToUnlockPrivateSpace()
|
||||
&& android.multiuser.Flags.enablePrivateSpaceFeatures()
|
||||
? AVAILABLE
|
||||
: UNSUPPORTED_ON_DEVICE;
|
||||
}
|
||||
@@ -87,7 +87,8 @@ public class PrivateSpaceFacePreferenceController extends BiometricFaceStatusPre
|
||||
public void displayPreference(@NonNull PreferenceScreen screen) {
|
||||
super.displayPreference(screen);
|
||||
Preference preference = screen.findPreference(getPreferenceKey());
|
||||
if (!Utils.isMultipleBiometricsSupported(mContext)) {
|
||||
if (!Utils.isMultipleBiometricsSupported(mContext)
|
||||
&& Utils.isFaceNotConvenienceBiometric(mContext)) {
|
||||
preference.setTitle(R.string.private_space_face_title);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user