Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit c3bc2d98 authored by Tim Zimmermann's avatar Tim Zimmermann
Browse files

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
parent f92fa673
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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");