Refactor DPMS security check
Refactored enforceDeviceOwnerOrProfileOwnerOnUser0OrProfileOwnerOrganizationOwned in DPMS
Bug: 145286957
Test: Manual testing
atest com.android.server.devicepolicy.DevicePolicyManagerTest
atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetAutoTimeZone
atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetAutoTime
atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSetTime
atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSetTimeZone
Change-Id: Id75b60bec3ed5aedc2ccd1dcf39142cb5d8ff2e9
1 file changed