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

Commit 3a9797a4 authored by Rubin Xu's avatar Rubin Xu Committed by Automerger Merge Worker
Browse files

Merge "Fix DefaultSmsApplicationTest for organization-owned profile owner"...

Merge "Fix DefaultSmsApplicationTest for organization-owned profile owner" into udc-dev am: f750196c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21804619



Change-Id: I57b5410d68e8fc9b701b2f0ff41ebfddf48e9733
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 4c0ce3ad f750196c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11219,7 +11219,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        } else {
            Objects.requireNonNull(admin, "ComponentName is null");
            Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)
                    || (parent && isProfileOwnerOfOrganizationOwnedDevice(caller)));
                    || isProfileOwnerOfOrganizationOwnedDevice(caller));
        }
        if (parent) {
            userId = getProfileParentId(mInjector.userHandleGetCallingUserId());