【发布时间】:2016-06-09 18:41:52
【问题描述】:
我正在编写一个应用程序,它将文件写入 USB 闪存驱动器(通过 USB OTG),然后将其从手机中删除并在其他地方使用(仅支持 FAT32)。我需要能够确定外部存储的格式是否正确,如果没有,我需要告诉用户。
如果我连接的是 FAT32 格式的驱动器,在 android shell 上调用 mount 只会将“fuse”作为文件系统:
/dev/fuse /storage/usbotg fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
有没有办法通过命令行或编程方式确定文件系统?
【问题讨论】: