From ef10cf91dd1ec2aaca446a1272d66f996bee796f Mon Sep 17 00:00:00 2001 From: Siim Sammul Date: Thu, 17 Nov 2022 15:19:06 +0000 Subject: [PATCH] Change the default dropbox reserve percent from 10% to 0%. This is needed to stop discarding crashes when the discard is 90% full. There are still other mechanism in dropbox to make sure dropbox does not use more than 10% of the free disk space or more than 10mb. Change-Id: I2b3857436ddf434b9051296f9d7669dc1fa95a2e Bug: 260229302 Test: Changing the value has been tested by experiment: https://mendel.corp.google.com/android_platform_settings/studies/SystemServerTelemetryDropboxStoragePublic#details --- .../core/java/com/android/server/DropBoxManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/DropBoxManagerService.java b/services/core/java/com/android/server/DropBoxManagerService.java index 02c6ca20d34e4..27ee627d1b48f 100644 --- a/services/core/java/com/android/server/DropBoxManagerService.java +++ b/services/core/java/com/android/server/DropBoxManagerService.java @@ -91,7 +91,7 @@ public final class DropBoxManagerService extends SystemService { private static final int DEFAULT_MAX_FILES_LOWRAM = 300; private static final int DEFAULT_QUOTA_KB = 10 * 1024; private static final int DEFAULT_QUOTA_PERCENT = 10; - private static final int DEFAULT_RESERVE_PERCENT = 10; + private static final int DEFAULT_RESERVE_PERCENT = 0; private static final int QUOTA_RESCAN_MILLIS = 5000; private static final boolean PROFILE_DUMP = false;