From c3bc2d982205d3ba03b1e9d37cbca295856d8e4e Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Wed, 20 Apr 2022 20:12:01 +0200 Subject: [PATCH] DSU: Only try to install on sdcard if the filesystem in use is vfat IsExternalStoragePath() in gsid only allows vfat Test: m; Install DSU on a device using exFAT for external sdcard Change-Id: I6073b268ead79d684422e4ef1fa3873713dd602e --- .../core/java/com/android/server/DynamicSystemService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/core/java/com/android/server/DynamicSystemService.java b/services/core/java/com/android/server/DynamicSystemService.java index 99e12a8f9f55f..ce0e69c40f67a 100644 --- a/services/core/java/com/android/server/DynamicSystemService.java +++ b/services/core/java/com/android/server/DynamicSystemService.java @@ -91,6 +91,10 @@ public class DynamicSystemService extends IDynamicSystemService.Stub { if (!volume.isMountedWritable()) { continue; } + // gsid only supports vfat external storage. + if (!"vfat".equalsIgnoreCase(volume.fsType)) { + continue; + } DiskInfo disk = volume.getDisk(); long mega = disk.size >> 20; Slog.i(TAG, volume.getPath() + ": " + mega + " MB");