summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Siim Sammul <siims@google.com> 2022-11-17 15:19:06 +0000
committer Siim Sammul <siims@google.com> 2022-11-28 14:40:44 +0000
commitef10cf91dd1ec2aaca446a1272d66f996bee796f (patch)
tree1717d6c8071812a9fb91bcb927ed42eb492129f1
parent29c0bb4fcbe8d6d2406d6293e82206c60d45781c (diff)
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
-rw-r--r--services/core/java/com/android/server/DropBoxManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/DropBoxManagerService.java b/services/core/java/com/android/server/DropBoxManagerService.java
index 02c6ca20d34e..27ee627d1b48 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;