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

Commit 0075b5fc authored by Salud Lemus's avatar Salud Lemus
Browse files

Restrict API for financed device owner

Bug: 223888438
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest

Change-Id: I84cf8716c022bcd8a7ff68aa2fb4f3331c0198ee
parent 6bec0662
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11883,6 +11883,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
                ap = getParentOfAdminIfRequired(getOrganizationOwnedProfileOwnerLocked(caller),
                        parent);
            } else {
                Preconditions.checkCallAuthorization(!isFinancedDeviceOwner(caller));
                ap = getParentOfAdminIfRequired(getProfileOwnerOrDeviceOwnerLocked(caller), parent);
            }