Fix CTS failure ActivityManagerTest.testKillingPidsOnImperceptible

Bug: 148883880
Test: atest CtsAppTestCases:ActivityManagerTest
Change-Id: I39f5c0ecf8d8d1f5c4b3eeb10e43b3764765295e
This commit is contained in:
Jing Ji
2020-02-04 14:16:30 -08:00
parent 5e135fe823
commit 0eae29edf2

View File

@@ -419,6 +419,8 @@ final class ActivityManagerConstants extends ContentObserver {
context.getResources().getIntArray(
com.android.internal.R.array.config_defaultImperceptibleKillingExemptionProcStates))
.boxed().collect(Collectors.toList());
IMPERCEPTIBLE_KILL_EXEMPT_PACKAGES.addAll(mDefaultImperceptibleKillExemptPackages);
IMPERCEPTIBLE_KILL_EXEMPT_PROC_STATES.addAll(mDefaultImperceptibleKillExemptProcStates);
}
public void start(ContentResolver resolver) {