From c9e6ad64dc32a0bb32c3aba342ac30a9f033f4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CAyush?= Date: Tue, 6 Jul 2021 09:18:02 +0000 Subject: [PATCH] Deprecate no-op flag KEYGUARD_DISABLE_REMOTE_INPUT Change-Id: I62f74d14374792ffe9ac470478c27e1f36152bd6 Bug: 191141181 Test: make -j docs --- core/api/current.txt | 2 +- core/java/android/app/admin/DevicePolicyManager.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/api/current.txt b/core/api/current.txt index 3d88122cd11bc..9ba615bbc6d71 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -7455,7 +7455,7 @@ package android.app.admin { field public static final int KEYGUARD_DISABLE_FEATURES_NONE = 0; // 0x0 field public static final int KEYGUARD_DISABLE_FINGERPRINT = 32; // 0x20 field public static final int KEYGUARD_DISABLE_IRIS = 256; // 0x100 - field public static final int KEYGUARD_DISABLE_REMOTE_INPUT = 64; // 0x40 + field @Deprecated public static final int KEYGUARD_DISABLE_REMOTE_INPUT = 64; // 0x40 field public static final int KEYGUARD_DISABLE_SECURE_CAMERA = 2; // 0x2 field public static final int KEYGUARD_DISABLE_SECURE_NOTIFICATIONS = 4; // 0x4 field public static final int KEYGUARD_DISABLE_TRUST_AGENTS = 16; // 0x10 diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java index 8284cdde3d061..fc7270871f971 100644 --- a/core/java/android/app/admin/DevicePolicyManager.java +++ b/core/java/android/app/admin/DevicePolicyManager.java @@ -5670,8 +5670,10 @@ public class DevicePolicyManager { /** * Disable text entry into notifications on secure keyguard screens (e.g. PIN/Pattern/Password). - * This flag has no effect starting from version {@link android.os.Build.VERSION_CODES#N} + * @deprecated This flag was added in version {@link android.os.Build.VERSION_CODES#N}, but it + * never had any effect. */ + @Deprecated public static final int KEYGUARD_DISABLE_REMOTE_INPUT = 1 << 6; /**