Android vold浅析

The Android system uses vold as the mount daemon, which detects, mounts and monitors the status of sdcard. The mount daemon needs a configuration file to tell it what the sdcard device is. Before Android 2.1 (included), the file is /etc/vold.conf. Since Android 2.2 (froyo), it ships with a new implementation of vold (aka vold2). The configuration is changed to /etc/vold.fstab and its format is also changed. See system/core/rootdir/etc/vold.fstab in the Android source tree for the detailed explanations of the format.

However, a fixed vold.fstab can only support block device with fixed name. It is not suitable for x86 platforms with variable device names.

The Android-x86 project has extended the functions of the new vold to support auto-mount feature without a configuration file. That is, it can automatically detect any USB mass storage or MMC/SD card and mount it as the sdcard. Besides, if you don't have a real USB disk or SD card, it can simulate a fake sdcard to work smoothly with applications that need sdcard.

References

Android source code
older:  development/data/etc/vold.conf
          system/core/vold/*
          system/core/mountd/*         
http://www.android-x86.org

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值