本文介绍了如何列出额外的外部存储的文件夹(安装点)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在默认情况下,外部存储在Android是psented为/ SD卡的文件夹$ P $。在某些设备上它没有SD卡,但内部存储器中。

By default, "external" storage on Android is presented as /sdcard folder. On some devices it's not SD card but internal memory.

有些设备允许附加额外的SD卡,或在华硕变压器,还额外2个USB闪存盘。

Some devices allow attachment of additional SD card, or in case of Asus Transformer, also additional 2 USB flash discs.

这种增加的内存驱动器显示为某些文件夹,位置取决于设备制造商。在某些设备上它的内部/ SD卡的文件夹,别人是其他地方在其他文件夹中。

Such added memory drive appears as some folder, which location depends on device manufacturer. On some devices it's inside /sdcard folder, on others it's elsewhere in other folder.

现在的我的问题是,如果有一些功能,列出所有可能的外部存储器除了标准/ SD卡的文件夹。

Now my question is, if there's some function to list all possible external storages besides standard /sdcard folder.

推荐答案

您可以阅读的/ proc /坐骑来找出目前被安装。

You can read /proc/mounts to find out what is currently mounted.

或者你也可以读 /etc/vold.conf /etc/vold.fstab (这取决于什么版本的配置文件是present)。本文件包含的配置可移动存储器。在平板电脑默认的存储通常不是present在vold的。

Or you can read /etc/vold.conf or /etc/vold.fstab (it depends on version what config file is present). This files contains config for removable storages. At tablet default storage is not usually present in vold.

这篇关于如何列出额外的外部存储的文件夹(安装点)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 22:40