Do not show work profile strings for parent-managed enrollment
Work profiles and parental management both utilize the DevicePolicyManager KEYGUARD_DISABLE_* flags. This CL ensures that work profile strings are only shown for work profiles, and not parent-managed devices. Bug: 196060286 Bug: 196443744 Test: Set up child account, then enroll from Settings > Security Change-Id: Ib5ed1d63dd5d58ac64caf30010e340ac7784c38f
This commit is contained in:
@@ -20,6 +20,7 @@ import android.app.admin.DevicePolicyManager;
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.ActivityNotFoundException;
|
||||
import android.content.Intent;
|
||||
import android.hardware.biometrics.BiometricAuthenticator;
|
||||
import android.hardware.fingerprint.FingerprintManager;
|
||||
import android.hardware.fingerprint.FingerprintSensorPropertiesInternal;
|
||||
import android.os.Bundle;
|
||||
@@ -272,6 +273,11 @@ public class FingerprintEnrollIntroduction extends BiometricEnrollIntroduction {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public @BiometricAuthenticator.Modality int getModality() {
|
||||
return BiometricAuthenticator.TYPE_FINGERPRINT;
|
||||
}
|
||||
|
||||
@Override
|
||||
@NonNull
|
||||
protected FooterButton getPrimaryFooterButton() {
|
||||
|
Reference in New Issue
Block a user