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

Commit 465acf3f authored by Nicolas Prevot's avatar Nicolas Prevot
Browse files

Marking the methods to get Profile/Device Owner with @SystemApi.

BUG: 16860239

Change-Id: I60126a8112a57e836cae3bcd9b62ebf50385f5ec
parent f860be88
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2157,6 +2157,7 @@ public class DevicePolicyManager {
    }

    /** @hide */
    @SystemApi
    public String getDeviceOwner() {
        if (mService != null) {
            try {
@@ -2365,6 +2366,7 @@ public class DevicePolicyManager {
     * owner has been set for that user.
     * @throws IllegalArgumentException if the userId is invalid.
     */
    @SystemApi
    public ComponentName getProfileOwner() throws IllegalArgumentException {
        return getProfileOwnerAsUser(Process.myUserHandle().getIdentifier());
    }