我想了解如何实现各个部分的SD卡魔术在Android上一些帖子。这些职位是指/etc/vold.fstab,并建议修改其内容的附加或更改dev_mount行。
好了,有趣的,我想。我尝试使用Google vold.fstab和dev_mount更多地了解他们。奇怪的是,这些词似乎只有在有关如何做的SD卡神奇的事情Android的各种论坛帖子存在。
也就是说,我找不到什么是应该的vold.fstab文件中的任何官方手册页或文档中包含,是否如它是一个脚本,或者一个配置文件,dev_mount是命令或规范等。
所以,作为一个非常的n00b Android开发者,
在哪里是在vold.fstab?官方文档或手册页 除了developer.android.com,我应该在哪里寻找在Android COM prehensive文档 解决方案我发现这是信息:
https://android.googlesource.com/platform/docs/source.android.com/+/android-4.2.1_r1.1/src/tech/storage/index.md
具体做法是:
dev_mount<标签> <装入点> <分区> < sysfs_path> [国旗]
标签
:标签为卷。
装入点
:该卷应安装文件系统路径
分区
:(基于1)分区号,或'自动'的第一个可用的分区。
sysfs_path
:一个或多个的sysfs路径设备,可以提供这种坐骑
点。用空格分开,并且每个人都必须以 /
。
标志
:可选的逗号分隔的标志位的列表,不能包含 /
。
可能的值包括不可移动
和可加密
。
I am trying to understand some posts on how to accomplish various pieces of sd card magic on Android. These posts refer to /etc/vold.fstab and suggest modifying its contents with additional or changed dev_mount lines.
Okay, interesting, I think. And I try googling vold.fstab and dev_mount to learn more about them. Oddly, these terms only seem to exist in various forum posts about how to do magical things with sd cards for Android.
That is, I can't find any "official" man pages or documentation on what the vold.fstab file is supposed to contain, whether for instance it is a script, or a config file, whether dev_mount is a command or a specification, etc.
So as a very n00b Android developer,
Where is the official documentation or man pages on vold.fstab? Apart from developer.android.com, where should I look for comprehensive documentation on Android解决方案
I found this to be informative:
https://android.googlesource.com/platform/docs/source.android.com/+/android-4.2.1_r1.1/src/tech/storage/index.md
Specifically:
dev_mount <label> <mount_point> <partition> <sysfs_path> [flags]
label
: Label for the volume.
mount_point
: Filesystem path where the volume should be mounted.
partition
: Partition number (1 based), or 'auto' for first usable partition.
sysfs_path
: One or more sysfs paths to devices that can provide this mount
point. Separated by spaces, and each must start with /
.
flags
: Optional comma separated list of flags, must not contain /
.
Possible values include nonremovable
and encryptable
.