0

When I connect the device to computer, it makes sdcard available to it, as in card reader.

How to make it share not sdcard, but other block device or file?

2
  • I would assume that this is highly hardware dependent and impossible without writing and replacing drivers, at best. Commented Nov 15, 2011 at 20:47
  • How it works? How to make "Use USB connection to transfer files" action manually, from console?
    – Vi0
    Commented Nov 17, 2011 at 8:16

1 Answer 1

0

On my device (Sony Ericsson Xperia X10) it is, for example:

echo /sdcard/debian.ext2 > /sys/devices/platform/msm_hsusb/gadget/lun0/file

After it the content of file becomes available on the host. Can write to sdcard file without unmounting it from android.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .