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

Commit fb41da46 authored by Rubin Xu's avatar Rubin Xu
Browse files

Fix DefaultSmsApplicationTest for organization-owned profile owner

Bug: 270614236
Fix: 270614236
Test: DefaultSmsApplicationTest
Change-Id: Ieee2f12f7e786588aeec679e97be7f2179baa032
parent 5c6c5829
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11196,7 +11196,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());