Sorry, I have no idea about your specific problem. Just a question and maybe hint : It sounds for me, that you will move your data between host and phone via usb mass storage , right?
You will need to take care in the future in which usb mode your are .. this can be pictbridge, MTP or others as well .. This would limit your app to devices, which have only one usb mode. Good luck ! Frank On 5 Jun., 01:52, rchndrsn <[email protected]> wrote: > I am writing an app to move data between the host and the phone. > Initially I need to do it by copying files to the SDcard, then > mounting the SDCard as host mass storage ( while unmounting it from > the phone). And vica-versa. > > I am trying to do this using the mount call defined in SYSCALLS.TXT. I > make the calls from a JNI C function library, and loadLibrary() etc. > > AndroidManifest.xml has the uses-permission set up for > android.permission.MOUNT_UNMOUNT_FILESYSTEM. > > The code builds, loads runs, but mount or umount return -1 and > > errno == 1, which is "Operation Not permitted". It sounds to me like I > am close, but missing something. > > What steps could I be missing. ? > > Or am I using the mechanism incorrectly ? Or the wrong mechanism? > > What is android.permission.MOUNT_UNMOUNT_FILESYSTEM used for if not > for this ? > > Can someone help ? > > thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

