Update javadoc of setUserControlDisabledPackages

Mentions that it exempts apps from battery optimizaiton.

Bug: 238891963
Test: None
Change-Id: I61232c39c54832b52c571e682407600d18fbc7d2
This commit is contained in:
Rubin Xu
2022-07-20 11:02:12 +01:00
parent c7cdc8ca72
commit a717c1183d

View File

@@ -379,8 +379,8 @@ public class DevicePolicyManager {
* Only one {@link ComponentName} in the entire system should be enabled, and the rest of the
* components are not started by this intent.
*
* @deprecated Starting from Android T, the system no longer launches an intent with this action
* when user provisioning completes.
* @deprecated Starting from Android 13, the system no longer launches an intent with this
* action when user provisioning completes.
* @hide
*/
@Deprecated
@@ -14626,7 +14626,8 @@ public class DevicePolicyManager {
/**
* Called by a device owner or a profile owner to disable user control over apps. User will not
* be able to clear app data or force-stop packages. When called by a device owner, applies to
* all users on the device.
* all users on the device. Starting from Android 13, packages with user control disabled are
* exempted from being put in the "restricted" App Standby Bucket.
*
* @param admin which {@link DeviceAdminReceiver} this request is associated with
* @param packages The package names for the apps.