Merge "Fix DefaultSmsApplicationTest for organization-owned profile owner" into udc-dev am: f750196ca6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21804619 Change-Id: I57b5410d68e8fc9b701b2f0ff41ebfddf48e9733 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -11219,7 +11219,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
} else {
|
} else {
|
||||||
Objects.requireNonNull(admin, "ComponentName is null");
|
Objects.requireNonNull(admin, "ComponentName is null");
|
||||||
Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)
|
Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)
|
||||||
|| (parent && isProfileOwnerOfOrganizationOwnedDevice(caller)));
|
|| isProfileOwnerOfOrganizationOwnedDevice(caller));
|
||||||
}
|
}
|
||||||
if (parent) {
|
if (parent) {
|
||||||
userId = getProfileParentId(mInjector.userHandleGetCallingUserId());
|
userId = getProfileParentId(mInjector.userHandleGetCallingUserId());
|
||||||
|
|||||||
Reference in New Issue
Block a user