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

Commit f1d39280 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: Iab5ae59993334d052e209b25b27c3ab0b30d4f55
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 1688a416 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());