diff options
| author | Rubin Xu <rubinxu@google.com> | 2018-05-09 16:06:43 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-05-09 16:06:43 +0000 |
| commit | 54a514eda04fe8765ab3e93e5b84b790e21cf179 (patch) | |
| tree | 35aada0e767ad35bca1c7d45a8808c5800da1751 /core/java | |
| parent | 1822926cfbf55cc68a85cdfd588802f4a106cdb5 (diff) | |
| parent | c418d5adc5ce69d1edd4b35292e8da5e79a17ab9 (diff) | |
Merge "Allow profile owner to disable iris/face on personal keyguard" into pi-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/admin/DevicePolicyManager.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 08e2c916c53a..22367b21221a 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -3725,7 +3725,7 @@ public class DevicePolicyManager { */ public static final int PROFILE_KEYGUARD_FEATURES_AFFECT_OWNER = DevicePolicyManager.KEYGUARD_DISABLE_TRUST_AGENTS - | DevicePolicyManager.KEYGUARD_DISABLE_FINGERPRINT; + | DevicePolicyManager.KEYGUARD_DISABLE_BIOMETRICS; /** * Called by an application that is administering the device to request that the storage system @@ -4738,12 +4738,14 @@ public class DevicePolicyManager { * <ul> * <li>{@link #KEYGUARD_DISABLE_TRUST_AGENTS}, which affects the parent user, but only if there * is no separate challenge set on the managed profile. - * <li>{@link #KEYGUARD_DISABLE_FINGERPRINT} which affects the managed profile challenge if + * <li>{@link #KEYGUARD_DISABLE_FINGERPRINT}, {@link #KEYGUARD_DISABLE_FACE} or + * {@link #KEYGUARD_DISABLE_IRIS} which affects the managed profile challenge if * there is one, or the parent user otherwise. * <li>{@link #KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS} which affects notifications generated * by applications in the managed profile. * </ul> - * {@link #KEYGUARD_DISABLE_TRUST_AGENTS} and {@link #KEYGUARD_DISABLE_FINGERPRINT} can also be + * {@link #KEYGUARD_DISABLE_TRUST_AGENTS}, {@link #KEYGUARD_DISABLE_FINGERPRINT}, + * {@link #KEYGUARD_DISABLE_FACE} and {@link #KEYGUARD_DISABLE_IRIS} can also be * set on the {@link DevicePolicyManager} instance returned by * {@link #getParentProfileInstance(ComponentName)} in order to set restrictions on the parent * profile. @@ -4754,12 +4756,16 @@ public class DevicePolicyManager { * {@link #getKeyguardDisabledFeatures(ComponentName)} * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. - * @param which {@link #KEYGUARD_DISABLE_FEATURES_NONE} (default), + * @param which The disabled features flag which can be either + * {@link #KEYGUARD_DISABLE_FEATURES_NONE} (default), + * {@link #KEYGUARD_DISABLE_FEATURES_ALL}, or a combination of * {@link #KEYGUARD_DISABLE_WIDGETS_ALL}, {@link #KEYGUARD_DISABLE_SECURE_CAMERA}, * {@link #KEYGUARD_DISABLE_SECURE_NOTIFICATIONS}, * {@link #KEYGUARD_DISABLE_TRUST_AGENTS}, * {@link #KEYGUARD_DISABLE_UNREDACTED_NOTIFICATIONS}, - * {@link #KEYGUARD_DISABLE_FINGERPRINT}, {@link #KEYGUARD_DISABLE_FEATURES_ALL} + * {@link #KEYGUARD_DISABLE_FINGERPRINT}, + * {@link #KEYGUARD_DISABLE_FACE}, + * {@link #KEYGUARD_DISABLE_IRIS}. * @throws SecurityException if {@code admin} is not an active administrator or does not user * {@link DeviceAdminInfo#USES_POLICY_DISABLE_KEYGUARD_FEATURES} */ |
