Merge "DSU: Only try to install on sdcard if the filesystem in use is vfat"

This commit is contained in:
Yi-yo Chiang
2022-04-22 15:18:14 +00:00
committed by Gerrit Code Review

View File

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