Can anyone tell me how to configure vold and the MountService to auto
detect and mount a USB memory stick when it is plugged into my android
device's USB port and then broadcast notification of those events? I
can't find any documentation on it.
>From reading system/core/vold source code, it looks like I need to
enter some configuration in the vold.conf file similar to this sdcard
config:
volume_sdcard {
media_path /devices/platform/mmci-omap-hs.0/mmc_host/mmc0
media_type mmc
mount_point /sdcard
}
The question is, what config settings are required for USB mass
storage? I see vold source code only supports media_type = mmc or
devmapper. Which of those should I use.
I'm guessing I need to add something like the following to vold.conf,
but I don't know what to put at the ? marks or what else I might be
missing.
volume_ums {
media_path /devices/platform/?
media_type ?
mount_point <some pre-created mount point> }
Is there anything else I need to setup to make this work? I also see
frameworks/base/services/java/com/android/server/MountService.java is
looking for a "persist.service.mount.umsauto" property.
Thanks
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting