Replace setAutoTimeRequired and getAutoTimeRequired with setAutoTime and getAutoTime
* Deprecate setAutoTimeRequired and getAutoTimeRequired. * Added new API methods setAutoTime and getAutoTime. * DPCs are recommended to combine these new APIs together with the DISALLOW_CONFIG_DATE_TIME restriction to prevent the user from changing auto time settings. * The new methods can also be called by the WP PO (COPE mode). Bug: 138709470 Test: Manual testing with testdpc and the set auto time toggle atest com.android.server.devicepolicy.DevicePolicyManagerTest atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetAutoTime Change-Id: I6f93b2a28e3ef0e1e97c9c414ce65d4e753c1bf3
Loading
Please register or sign in to comment