• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps SD card Mount and dismount- not the basic questions

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.?
 
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.
 
Back
Top Bottom