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

Commit 82e396da authored by Salud Lemus's avatar Salud Lemus Committed by Android (Google) Code Review
Browse files

Merge "Restrict API for financed device owner"

parents 9019432a 0075b5fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11901,6 +11901,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                ap = getParentOfAdminIfRequired(getOrganizationOwnedProfileOwnerLocked(caller),
                        parent);
            } else {
                Preconditions.checkCallAuthorization(!isFinancedDeviceOwner(caller));
                ap = getParentOfAdminIfRequired(getProfileOwnerOrDeviceOwnerLocked(caller), parent);
            }