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
Loading
Please register or sign in to comment