Re: [android-developers] Re: Mount sdcard USB Storage through adb.

2010-10-01 Thread Nam Ngo
You can try:

1. Enable USB MASS STORAGE mode (UMS)
adb shell /system/bin/sdutil ums enable

2. Mount it into a folder
sudo mount /dev/sdb ~/SDCARD

3. Disable USB MASS STORAGE
adb shell /system/bin/sdutil ums disable

BR,
Nam

On Fri, 2010-10-01 at 04:14 -0700, FrankG wrote:
> Your subject is strange .. as the sdcard has nothing to do with the
> sdcard.
> 
> I assume you would like to know how to mount the sdcard via a command
> from
> a adb prompt .
> 
> You can do this  via a "system call" command.
> 
> I haven't the details by hand, but it is one of the system services
> which allow you to do this.
> You need to look into the aidl interface for them and then you can
> call them via "system call" ..
> 
> As a joke try out : service call  phone 2 s16   friend>
> 
> Good luck !
> 
>   Frank
> 
> 
> 
> On 30 Sep., 20:28, Nathan  wrote:
> > I can't seem to find a command that will allow me to mount/unmount the
> > sdcard from the adb prompt.
> >
> > From the documentation, it appears that this can't be done in an
> > emulator, so I am trying with a Nexus One.
> >
> > I would like to simulate the card being mounted or unmounted while my
> > Activity is active. I can't do this on the Nexus One through the
> > notification menu, because this will pause and then resume and
> > activity, during which time storage card broadcast notifications are
> > not sent.
> >
> > I know other devices can and do mount the storage without leaving an
> > Activity, in particular because they will automount the storage
> > whenever the USB is plugged in (according to users, even if you tell
> > it not to). For that reason, this is a case I want to test.
> >
> > Nathan
> 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Mount sdcard USB Storage through adb.

2010-10-01 Thread FrankG
Your subject is strange .. as the sdcard has nothing to do with the
sdcard.

I assume you would like to know how to mount the sdcard via a command
from
a adb prompt .

You can do this  via a "system call" command.

I haven't the details by hand, but it is one of the system services
which allow you to do this.
You need to look into the aidl interface for them and then you can
call them via "system call" ..

As a joke try out : service call  phone 2 s16  

Good luck !

  Frank



On 30 Sep., 20:28, Nathan  wrote:
> I can't seem to find a command that will allow me to mount/unmount the
> sdcard from the adb prompt.
>
> From the documentation, it appears that this can't be done in an
> emulator, so I am trying with a Nexus One.
>
> I would like to simulate the card being mounted or unmounted while my
> Activity is active. I can't do this on the Nexus One through the
> notification menu, because this will pause and then resume and
> activity, during which time storage card broadcast notifications are
> not sent.
>
> I know other devices can and do mount the storage without leaving an
> Activity, in particular because they will automount the storage
> whenever the USB is plugged in (according to users, even if you tell
> it not to). For that reason, this is a case I want to test.
>
> Nathan

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en