Merge "Null is a valid volume uuid."

This commit is contained in:
Alex Buynytskyy
2023-01-19 00:45:58 +00:00
committed by Android (Google) Code Review

View File

@@ -292,7 +292,7 @@ public class InstallLocationUtils {
// For new installations of a predefined size, check property to let it through
// regardless of the actual free space.
if (bestCandidate != null && Integer.MAX_VALUE == params.sizeBytes
if (!volumePaths.isEmpty() && Integer.MAX_VALUE == params.sizeBytes
&& SystemProperties.getBoolean("debug.pm.install_skip_size_check_for_maxint",
false)) {
return bestCandidate;