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
This commit is contained in:
Siim Sammul
2022-11-17 15:19:06 +00:00
parent 29c0bb4fcb
commit ef10cf91dd

View File

@@ -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;