[android-developers] Re: Mount sdcard from code

2011-04-01 Thread FrankG
Hi Feng, IMHO at the end it must be the vold, which does via Volume-Fat- doMount the sys/mount call. Good luck ! Frank On 31 Mrz., 10:34, Feng Chris chris@gmail.com wrote: Hi FrankG, Do you know who the NativeDaemonConnector  communicate with via socket? Thanks, Chris 2011/2/9

Re: [android-developers] Re: Mount sdcard from code

2011-03-31 Thread Feng Chris
Hi FrankG, Do you know who the NativeDaemonConnector communicate with via socket? Thanks, Chris 2011/2/9 FrankG frankgru...@googlemail.com BTW .. the Settings app simply uses the AIDL Interface to the mount service via IMountService and calls mount. And com.android.server.MountService

Re: [android-developers] Re: Mount sdcard from code

2011-02-09 Thread Marcin Orlowski
On 9 February 2011 06:36, maikelalonso maikelalonsob...@gmail.com wrote: With the mount command works correctly but the icon of the API shows like the SDCARD is not mounted when really if it is. Quite likely it's because you, contrary to the OS, did not send ACTION_MEDIA_MOUNTED broadcast on

[android-developers] Re: Mount sdcard from code

2011-02-09 Thread FrankG
BTW .. the Settings app simply uses the AIDL Interface to the mount service via IMountService and calls mount. And com.android.server.MountService sends the notifications. The mountVolume call has this check inside : validatePermission(android.Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS);

[android-developers] Re: Mount sdcard from code

2011-02-08 Thread maikelalonso
Hi, I've rooted my device and I've root privileges. All is Ok. The only one problem is the code to run in order to get mounted the sd card. What's the command running in Android when I make Menu-Settings- External storage-Mount SD CARD? On 8 feb, 17:45, Marcin Orlowski webnet.andr...@gmail.com

Re: [android-developers] Re: Mount sdcard from code

2011-02-08 Thread Kostya Vasilyev
How about checking the source yourself? http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;a=tree;h=refs/heads/froyo;hb=refs/heads/froyo However, Settings might be using an internal API not available to applications (most likely is), and, AFAIK, is signed with the platform

Re: [android-developers] Re: Mount sdcard from code

2011-02-08 Thread Marcin Orlowski
On 8 February 2011 18:04, maikelalonso maikelalonsob...@gmail.com wrote: Hi,  I've rooted my device and I've root privileges. All is Ok. The only one problem is the code to run in order to get mounted the sd card. What's the command running in Android when I make Menu-Settings- External

[android-developers] Re: Mount sdcard from code

2011-02-08 Thread maikelalonso
Thanks for the reply. The solution might be to run a portion of code that makes the same as Menu- Settings- External Storage- Mount SDCARD. I understand you're telling me that's impossible. (Congratulations for your blog. Is very interesting). On 8 feb, 19:34, Kostya Vasilyev kmans...@gmail.com

[android-developers] Re: Mount sdcard from code

2011-02-08 Thread maikelalonso
With the mount command works correctly but the icon of the API shows like the SDCARD is not mounted when really if it is. On 8 feb, 19:37, Marcin Orlowski webnet.andr...@gmail.com wrote: On 8 February 2011 18:04, maikelalonso maikelalonsob...@gmail.com wrote: Hi,  I've rooted my device and