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

Commit 2844eaf9 authored by Sooraj Sasindran's avatar Sooraj Sasindran Committed by Android (Google) Code Review
Browse files

Merge "Get device owner app admin" into tm-dev

parents 7128e884 3d14e32a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -12269,7 +12269,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                        + " only profile owner or device owner may control the preferential"
                        + " network service");
        synchronized (getLockObject()) {
            final ActiveAdmin requiredAdmin = getProfileOwnerAdminLocked(
            final ActiveAdmin requiredAdmin = getDeviceOrProfileOwnerAdminLocked(
                    caller.getUserId());
            if (!requiredAdmin.mPreferentialNetworkServiceConfigs.equals(
                    preferentialNetworkServiceConfigs)) {
@@ -12299,7 +12299,8 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                        + " only profile owner or device owner may retrieve the preferential"
                        + " network service configurations");
        synchronized (getLockObject()) {
            final ActiveAdmin requiredAdmin = getProfileOwnerAdminLocked(caller.getUserId());
            final ActiveAdmin requiredAdmin = getDeviceOrProfileOwnerAdminLocked(
                    caller.getUserId());
            return requiredAdmin.mPreferentialNetworkServiceConfigs;
        }
    }