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

Replace profile owner of org owned device enforce methods

* Replace enforce methods with precondition checks

Removed methods
enforceDeviceOwnerOrProfileOwnerOnOrganizationOwnedDevice
enforceProfileOwnerOfOrganizationOwnedDevice
enforceProfileOwnerOnUser0OrProfileOwnerOrganizationOwned
enforceHandlesCheckPolicyComplianceIntent
isProfileOwnerOfOrganizationOwnedDevice(admin)

Updated methods
* setConfiguredNetworksLockdownState
* hasLockdownAdminConfiguredNetworks
* setTime
* setTimeZone
* getWifiMacAddress
* retrievePreRebootSecurityLogs **
* retrieveSecurityLogs
* installUpdateFromFile
* setScreenCaptureDisabled
* getScreenCaptureDisabled
* setCameraDisabled
* getCameraDisabled
* setDefaultSmsApplication
* getUserRestrictions
* getPersonalAppsSuspendedReasons
* setPersonalAppsSuspended
* setManagedProfileMaximumTimeOff
* getManagedProfileMaximumTimeOff
* setAutoTimeEnabled
* getAutoTimeEnabled
* setAutoTimeZoneEnabled
* getAutoTimeZoneEnabled
* wipeDataWithReason
* setKeyguardDisabledFeatures
* setDeviceOwnerLockScreenInfo
* setUserRestriction

Bug: 166633516
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
Change-Id: I5444d24f0d2c0236cfbd2836171442a99f0450a7
parent e466e19e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment