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

Commit 01e6a6fe authored by Nicolas Prevot's avatar Nicolas Prevot Committed by Android (Google) Code Review
Browse files

Merge "Marking the methods to get Profile/Device Owner with @SystemApi." into lmp-dev

parents 7bf41929 465acf3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2160,6 +2160,7 @@ public class DevicePolicyManager {
    }

    /** @hide */
    @SystemApi
    public String getDeviceOwner() {
        if (mService != null) {
            try {
@@ -2368,6 +2369,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());
    }