SD card Mount and dismount- not the basic questions


Last Updated:

  1. chenderson

    chenderson Member This Topic's Starter

    Joined:
    Apr 27, 2010
    Messages:
    5
    Likes Received:
    0
    In browsing the various threads, I see many mentions of mounting and dismounting the SD card from the USB host.

    Who can tell me about the underlying mechanism to accomplish this?. What I need to do is mount and unmount the SD card to/from the host from within my App, or from ADB.

    Where can I find docs on the mechanism.?
     

    Advertisement
  2. chenderson

    chenderson Member This Topic's Starter

    Joined:
    Apr 27, 2010
    Messages:
    5
    Likes Received:
    0
    Let me phrase the question better.

    I can turn ON and OFF the USB storage, by pulling down the top bar and selecting that option. When I turn it off, android mounts the sd Card at /sdcard and the PC cannot read the mapped drive. When I turn it ON, android umounts the /sdcard mount point and the PC can read the mapped drive.

    I see all this in adb shell.

    Running windows XP on the PC. The phone is a nexus 1.

    What I need to know is, when I turn ON or OFF the USB storage, what is actually happening below? What is pressing that button actually doing? Or what API is it using, what mechanism?

    Any help would be appreciated.
     

Share This Page

Loading...