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 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 sends the notifications. > > > The mountVolume call has this check inside : > > > validatePermission(android.Manifest.permission.MOUNT_UNMOUNT_FILESYSTEMS); > > > The MountService then communicates using the NativeDaemonConnector via > > sockets > > ( I assume with then native SystemServer ) > > > Good luck ! Frank > > > On 9 Feb., 06:32, maikelalonso <maikelalonsob...@gmail.com> wrote: > > > 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> wrote: > > > > > How about checking the source yourself? > > > > >http://android.git.kernel.org/?p=platform/packages/apps/Settings.git;. > > .. > > > > > However, Settings might be using an internal API not available to > > > > applications (most likely is), and, AFAIK, is signed with the platform > > > > key, which you can't replicate in your code, root or not. > > > > > Your best bet might be to directly exec "mount" with appropriate > > > > parameters. Also try asking on android-porting or onhttp:// > >www.xda-developers.com/-programmersthere should be able to > > > > tell you for sure. > > > > > -- Kostya > > > > > 08.02.2011 20:04, 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> wrote: > > > > >> On 8 February 2011 16:41, maikelalonso<maikelalonsob...@gmail.com> > > wrote: > > > > > >>> Hi: > > > > >>> Anyone know how to mount the sdcard from code? I umount this > > storage > > > > >>> from menu->settings->umount sd card and I want to mount it from an > > > > >>> androd application. I can get the state with > > getExternalStorageState > > > > >>> and the path to the mounted sdcard folder but I dont know if it's > > > > >>> possible to mount the device from java code. > > > > >> Mount requires certain privileges your app simply does not have > > unless > > > > >> you got rooted device (and grant yourself root rights) > > > > > -- > > > > Kostya Vasilyev -- WiFi Manager + pretty widget -- > >http://kmansoft.wordpress.com-Zitierten Text ausblenden - > > > > - Zitierten Text anzeigen - > > > -- > > 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 -- 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