how to auto mount USB storage in Android 1.6?

102 views
Skip to first unread message

liang ming-chuan

unread,
Dec 21, 2009, 9:33:13 PM12/21/09
to android...@googlegroups.com

hi all,
Does vold support auto mount USB storage?
How to fill vold.conf to support auto mount USB storage?
Thanks in advance for your help.

Robert

dmitriy moskvitin

unread,
Dec 23, 2009, 7:05:08 AM12/23/09
to android-porting
Hi, Robert!
Auto mount UMS provide by MountService component of framework.
You can check variable mAutoStartUms into platform/frameworks/base/
services/java/com/android/server/MountService.java.
Also, as you can see that source code, initial value of mAutoStartUms
taken from "persist.service.mount.umsauto" system-properties.
You can setup property value into platform/build/target/board/generic/
system.prop...(http://pdk.android.com/online-pdk/guide/
build_new_device.html)

Dmitriy Moskvitin.

Srikant

unread,
Dec 30, 2009, 5:42:23 AM12/30/09
to android-porting
Hi,

Make sure your vold.conf has the ums_path, like

ums_path /devices/platform/usb_mass_storage/lun0

Regards,
Sreekanth

Reply all
Reply to author
Forward
0 new messages