add udev in and write a script to detect and mount your sdcard and then, send a 
brocasting msg to android so that android will know that.


2009-12-21 



teddy.teddypig 



发件人: liang ming-chuan 
发送时间: 2009-12-21  10:54:59 
收件人: android-porting 
抄送: 
主题: [android-porting] how to auto mount SD card in Android 1.6? 
 
hi all,
I have problem in auto mount SD card in Android.
This is my vold.conf
volume_sdcard {
    media_type     mmc
    mount_point    /sdcard
    ums_path    /devices/platform/ftsdc010/mmc_host/mmc0
}
and the kernel config:
# CONFIG_SYSFS_DEPRECATED_V2 is not set
here is the debug message print by logcat:
I/vold    ( 1076): New MMC card 'SD04G' (serial 2983043361) added @ 
/devices/platform/ftsdc010/mmc_host/mmc0/mmc0:69db
I/vold    ( 1076): Detected FAT filesystem in partition table
I/vold    ( 1076): Disk (blkdev 179:0), 7741440 secs (3780 MB) 0 partitions
I/vold    ( 1076): New blkdev 179.0 on media SD04G, media path 
/devices/platform/ftsdc010/mmc_host/mmc0/mmc0:69db, Dpp 0
it seems that it has found the sd card, but app still shows "No SD Card",
the /sdcard didn't mounted automaticaly.
Is there any thing I miss?
I also found there exist a vold2, what's difference with these two version?
should I upgrade to vold2?
Thanks in advance for your help!
Robert

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting 

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to