All I know with my S2 (ICS) is that it has MTP and when I plug it in it detects both internal and external sd with no issues.
All I know with my S2 (ICS) is that it has MTP and when I plug it in it detects both internal and external sd with no issues.
setprop persist.sys.usb.config mass_storage,adb
setprop persist.sys.usb.config mtp,adb
umount /mnt/extSdCard
echo /dev/block/vold/179:17 > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
umount /mnt/extSdCard
mount | grep /mnt/extSdCard | cut -f 1 -d " " > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
echo "" > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
vold
setprop persist.sys.usb.config mass_storage,adb
umount /mnt/extSdCard
mount | grep /mnt/extSdCard | cut -f 1 -d " " > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
echo "" > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
vold
setprop persist.sys.usb.config mtp,adb
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:17 > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file
We should probably take this to a different forum (e.g., http://xdaforums.com/showthread.php?t=1731514) but the short answer is that the external card (at least for the AT&T version - probably T-Mobile as well) is at /dev/block/vold/179:97 instead of 179:17 and there doesn't seem to be an equivalent to the s3c-usbgadget folder (which is processor-specific).I know this thread is for the international version, but I tried it on my T-Mobile version just to see if it would work.
setprop persist.sys.usb.config mtp,adb
echo /dev/block/vold/179:17 > /sys/devices/platform/s3c-usbgadget/gadget/lun0/file