From af437f6bf802bb9e5f55818c873ad3ba178c3fcd Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 13 Jan 2021 10:26:07 -0800 Subject: [PATCH] Drop the maximum recommended log size from 16MiB to 8MiB. Now we compress logs, 16MiB is a *lot* of logging, often over 100MiB when decompressed. This can cause trouble for tools (and their corresponding timeouts) if they're expecting 16MiB to mean "less than 16MiB" rather than "about 10 times 16MiB". This patch doesn't address the issue of devices that are already configured too high, since it's not obvious that we reasonably can. A user can set the system property themselves, and we have no way to distinguish the two cases. Bug: https://issuetracker.google.com/176959217 Test: treehugger Change-Id: Iba92061b278c487c3dc9a98aa54f014dfb2ea1c9 --- packages/SettingsLib/res/values/arrays.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/SettingsLib/res/values/arrays.xml b/packages/SettingsLib/res/values/arrays.xml index c63cf06cf75c8..2b5e9cdc017d0 100644 --- a/packages/SettingsLib/res/values/arrays.xml +++ b/packages/SettingsLib/res/values/arrays.xml @@ -291,7 +291,7 @@ 256K 1M 4M - 16M + 8M @@ -309,7 +309,7 @@ 262144 1048576 4194304 - 16777216 + 8388608 @@ -319,7 +319,7 @@ 256K per log buffer 1M per log buffer 4M per log buffer - 16M per log buffer + 8M per log buffer