Fix storage requirement for Linux terminal

getPrimaryStorageSize rounds up size by GB, not GiB

Bug: 366374130
Change-Id: Idf43c5cee41172d763b6c271042317d151d41a38
Test: build and run
This commit is contained in:
Jeongik Cha
2024-11-19 04:03:14 +00:00
parent 5965a10f60
commit 294b41a883

View File

@@ -43,7 +43,7 @@ public class LinuxTerminalPreferenceController extends DeveloperOptionsPreferenc
static final long MEMORY_MIN_BYTES = DataUnit.GIGABYTES.toBytes(4); // 4_000_000_000
@VisibleForTesting
static final long STORAGE_MIN_BYTES = DataUnit.GIBIBYTES.toBytes(128); // 128 * 2^30
static final long STORAGE_MIN_BYTES = DataUnit.GIGABYTES.toBytes(128); // 128_000_000_000
private static final String LINUX_TERMINAL_KEY = "linux_terminal";