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

Commit 085951fd authored by Justin Morey's avatar Justin Morey Committed by Android Git Automerger
Browse files

am 1d1c13f0: Expose setActiveProfileOwner() using @SystemApi

* commit '1d1c13f04c57abd8074b2d41550a42f1a916b8e1':
  Expose setActiveProfileOwner() using @SystemApi
parents f82e52c9 80440cc8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2083,7 +2083,6 @@ public class DevicePolicyManager {

    /**
     * @hide
     * @SystemApi
     * Sets the given component as an active admin and registers the package as the profile
     * owner for this user. The package must already be installed and there shouldn't be
     * an existing profile owner registered for this user. Also, this method must be called
@@ -2097,6 +2096,7 @@ public class DevicePolicyManager {
     * @throws IllegalArgumentException if packageName is null, the package isn't installed, or
     *         the user has already been set up.
     */
    @SystemApi
    public boolean setActiveProfileOwner(ComponentName admin, String ownerName)
            throws IllegalArgumentException {
        if (mService != null) {