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

Commit ab80737e authored by Kholoud Mohamed's avatar Kholoud Mohamed
Browse files

Send financed device state changed broadcast to POs on user 0

Bug: 272483242
Test: btest  android.devicepolicy.cts.CheckFinancedTest
Change-Id: I17df0fa05821293cc076bd6d284b5bf8651316a1
parent 7f6d6593
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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