Merge "Send financed device state changed broadcast to POs on user 0" into udc-dev

This commit is contained in:
Kholoud Mohamed
2023-03-16 19:15:30 +00:00
committed by Android (Google) Code Review

View File

@@ -21882,7 +21882,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
}
if (!isProfileOwnerOfOrganizationOwnedDevice(
admin.info.getComponent(), user.getIdentifier())
&& !isDeviceOwner(admin)) {
&& !isDeviceOwner(admin)
&& !(isProfileOwner(admin.info.getComponent(), user.getIdentifier())
&& admin.getUserHandle().isSystem())) {
continue;
}
// Don't send the broadcast twice if the DPC is the same package as the