Send financed device state changed broadcast to POs on user 0

Bug: 272483242
Test: btest  android.devicepolicy.cts.CheckFinancedTest
Change-Id: I17df0fa05821293cc076bd6d284b5bf8651316a1
This commit is contained in:
Kholoud Mohamed
2023-03-16 13:36:55 +00:00
parent 7f6d65934e
commit ab80737e25

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