summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Amith Yamasani <yamasani@google.com> 2015-03-23 14:04:53 -0700
committer Amith Yamasani <yamasani@google.com> 2015-03-25 11:11:54 -0700
commit814e9873bda63cbfbb792009a28af7eae851907c (patch)
treede9fec219cd721ff6945a1da97d3525e5c2f8386
parente7f931c4505a6bd62e01bef5193dd724571a672b (diff)
Fix documentation for ACTION_SET_PROFILE_OWNER
Does not require the mentioned permissions. Bug: 19892754 Change-Id: I22f2563c4f50457dbeb22d734e96a99ef79adf2b
-rw-r--r--core/java/android/app/admin/DevicePolicyManager.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index 6dde07b5dfa5..0fa333e50204 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -577,11 +577,10 @@ public class DevicePolicyManager {
/**
* @hide
* Activity action: ask the user to add a new device administrator as the profile owner
- * for this user. Only system privileged apps that have MANAGE_USERS and MANAGE_DEVICE_ADMINS
- * permission can call this API.
+ * for this user. Only system apps can launch this intent.
*
- * <p>The ComponentName of the profile owner admin is pass in {@link #EXTRA_DEVICE_ADMIN} extra
- * field. This will invoke a UI to bring the user through adding the profile owner admin
+ * <p>The ComponentName of the profile owner admin is passed in the {@link #EXTRA_DEVICE_ADMIN}
+ * extra field. This will invoke a UI to bring the user through adding the profile owner admin
* to remotely control restrictions on the user.
*
* <p>The intent must be invoked via {@link Activity#startActivityForResult()} to receive the
@@ -593,8 +592,8 @@ public class DevicePolicyManager {
* field to provide the user with additional explanation (in addition
* to your component's description) about what is being added.
*
- * <p>If there is already a profile owner active or the caller doesn't have the required
- * permissions, the operation will return a failure result.
+ * <p>If there is already a profile owner active or the caller is not a system app, the
+ * operation will return a failure result.
*/
@SystemApi
public static final String ACTION_SET_PROFILE_OWNER