From 3b786d51d96919360e8e42185552a36e2d6df271 Mon Sep 17 00:00:00 2001 From: Mikhail Krassavin Date: Wed, 11 Jan 2023 15:26:44 +0600 Subject: [PATCH] Increase maximum adblock filter file size to 20MB I've made my own generated filter file, which doesn't fit into 10MB. The author of [filtrite](https://github.com/xarantolus/filtrite#using-your-own-filter-lists) also mentions this limitation. Hopefully, 20 MB is more than enough for everyone. --- build/patches/Bromite-subresource-adblocker.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/patches/Bromite-subresource-adblocker.patch b/build/patches/Bromite-subresource-adblocker.patch index cf6c962d..fd0fa148 100644 --- a/build/patches/Bromite-subresource-adblocker.patch +++ b/build/patches/Bromite-subresource-adblocker.patch @@ -1157,8 +1157,8 @@ new file mode 100644 + +namespace adblock_updater { + -+// maximum 10MB for the filters file -+const int kMaxBodySize = 1024 * 1024 * 10; ++// maximum 20MB for the filters file ++const int kMaxBodySize = 1024 * 1024 * 20; + +const int kMaxRetriesOnNetworkChange = 3; +