summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorEran Messeri <eranm@google.com>2021-03-09 11:10:54 +0000
committerEran Messeri <eranm@google.com>2021-03-09 14:23:32 +0000
commit5442128882b78a2099fc022567487510d69f0701 (patch)
treea4280deddc3ac88931302fce3651e73815acd8cc /core/java/android
parentf41a01c8d21cee8912fd6e0b181d8ba86987dff4 (diff)
Documentation fix: Permission grant opt-out
The documentation for EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT says it should be used ACTION_PROVISION_MANAGED_DEVICE. However, that is deprecated since it's no longer needed (and there's another way to provision a fully-managed device). Remove reference to the deprecated constant and simply mention device owner provisioning. Bug: 182180699 Test: That it compiles. Change-Id: I8681c09fb9fa008f0e2ccf62c5dad8d37cd1b843
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/admin/DevicePolicyManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index ccf41e5f3063..d1e15288134f 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -987,7 +987,8 @@ public class DevicePolicyManager {
* The default for this extra is {@code false} - by default, the admin of a fully-managed
* device has the ability to grant sensors-related permissions.
*
- * <p>Use with {@link #ACTION_PROVISION_MANAGED_DEVICE} only.
+ * <p>Use only for device owner provisioning.
+ * @see #ACTION_GET_PROVISIONING_MODE
*/
public static final String EXTRA_PROVISIONING_PERMISSION_GRANT_OPT_OUT =
"android.app.extra.PROVISIONING_PERMISSION_GRANT_OPT_OUT";