Skip to content
Commit 09e32e89 authored by Alex Johnston's avatar Alex Johnston
Browse files

Replace profile owner and device owner access checks DPMS

Remove enforce methods
* enforceDeviceOwnerOrManageUsers
* enforceProfileOwnerOrSystemUser
* enforceProfileOwnerOrFullCrossPermission

* Use precondition checks instead

Bug: 167960209
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest
      atest com.android.cts.devicepolicy.ProfileOwnerTest
      atest com.android.cts.devicepolicy.ManagedProfileTest
Change-Id: Ic9b55063e11cf5ba365c485a97c77f98260d3b81
parent 4b36182c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment