Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 814e9873 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix documentation for ACTION_SET_PROFILE_OWNER

Does not require the mentioned permissions.

Bug: 19892754
Change-Id: I22f2563c4f50457dbeb22d734e96a99ef79adf2b
parent e7f931c4
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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