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
This commit is contained in:
Jing Ji
2022-03-26 01:15:32 -07:00
parent 923eb82c53
commit 45f6377249

View File

@@ -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}.