From 45f6377249592d32d5b4f770d184fe9a7a6d0dec Mon Sep 17 00:00:00 2001 From: Jing Ji Date: Sat, 26 Mar 2022 01:15:32 -0700 Subject: [PATCH] Extend the min interval of the alert on abusive bg apps Set default to 30 days between the notifications on the same app. Bug: 203105544 Test: atest FrameworksMockingServicesTests:BackgroundRestrictionTest Change-Id: I56aa96b7284b4f974a5103834f2034eb9834ee06 --- .../java/com/android/server/am/AppRestrictionController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/am/AppRestrictionController.java b/services/core/java/com/android/server/am/AppRestrictionController.java index b8fb9e85ac08b..5648073119156 100644 --- a/services/core/java/com/android/server/am/AppRestrictionController.java +++ b/services/core/java/com/android/server/am/AppRestrictionController.java @@ -678,7 +678,7 @@ public final class AppRestrictionController { /** * Default value to {@link #mBgAbusiveNotificationMinIntervalMs}. */ - static final long DEFAULT_BG_ABUSIVE_NOTIFICATION_MINIMAL_INTERVAL_MS = ONE_DAY; + static final long DEFAULT_BG_ABUSIVE_NOTIFICATION_MINIMAL_INTERVAL_MS = 30 * ONE_DAY; /** * Default value to {@link #mBgAbusiveNotificationMinIntervalMs}.