From 814e9873bda63cbfbb792009a28af7eae851907c Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Mon, 23 Mar 2015 14:04:53 -0700 Subject: Fix documentation for ACTION_SET_PROFILE_OWNER Does not require the mentioned permissions. Bug: 19892754 Change-Id: I22f2563c4f50457dbeb22d734e96a99ef79adf2b --- core/java/android/app/admin/DevicePolicyManager.java | 11 +++++------ 1 file 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. * - *

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 + *

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. * *

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. * - *

If there is already a profile owner active or the caller doesn't have the required - * permissions, the operation will return a failure result. + *

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 -- cgit v1.2.3-59-g8ed1b