Disable restricted bucket.

Bug: 158099599
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Test: atest FrameworksServicesTests:AppIdleHistoryTests
Test: atest FrameworksServicesTests:AppStandbyControllerTests
Change-Id: I40e769037148177530edc43ae0c01d4d29aec857
This commit is contained in:
Kweku Adams
2020-06-04 11:22:04 -07:00
parent c4ac9d2321
commit 71eac9ebe7
2 changed files with 2 additions and 1 deletions

View File

@@ -154,6 +154,7 @@ public final class UsageStatsManager {
* been misbehaving in some manner.
* Apps in this bucket will have the most restrictions, including network restrictions and
* additional restrictions on jobs.
* <p> Note: this bucket is not enabled in {@link Build.VERSION_CODES#R}.
* @see #getAppStandbyBucket()
*/
public static final int STANDBY_BUCKET_RESTRICTED = 45;

View File

@@ -11974,7 +11974,7 @@ public final class Settings {
* @see #ENABLE_RESTRICTED_BUCKET
* @hide
*/
public static final int DEFAULT_ENABLE_RESTRICTED_BUCKET = 1;
public static final int DEFAULT_ENABLE_RESTRICTED_BUCKET = 0;
/**
* Whether or not app auto restriction is enabled. When it is enabled, settings app will