DO NOT MERGE Increase notification channel limit.

This was previously reduced because it can cause an out of memory error or be abused to trigger a permanent denial of service, but it breaks some messages apps in Android 11, as they are creating too many channels. Rolling it back until the apps are fixed to reduce user impact.

Bug: 279447569
Bug: 261723753
Test: N/A, this was previously 50k
Change-Id: Id8da382f812d4abb8db723c40a61366a7402da4f
This commit is contained in:
Ioana Alexandru
2023-04-28 14:11:04 +00:00
parent 2b3817680a
commit 5664378a7c

View File

@@ -90,7 +90,7 @@ public class PreferencesHelper implements RankingConfig {
private static final String NON_BLOCKABLE_CHANNEL_DELIM = ":";
@VisibleForTesting
static final int NOTIFICATION_CHANNEL_COUNT_LIMIT = 5000;
static final int NOTIFICATION_CHANNEL_COUNT_LIMIT = 50000;
@VisibleForTesting
static final int NOTIFICATION_CHANNEL_GROUP_COUNT_LIMIT = 6000;