Hi Dianne: Could you give me an advice to resolve it? Now I find the reason is /dev/xx is the root permission, but android app user is like app_xx.
To resolve this, my idea is, I create a native service run with the root right, my android app call the service api to read write the fd of /dev/xx. I don't know if my idea is ok or not. Are there any other solution. Thank you very much. Regards On Jan 14, 2:28 am, "Dianne Hackborn" <hack...@android.com> wrote: > Much of the device tree is not directly accessible to applications; there is > no way to get around this. > > On Wed, Jan 14, 2009 at 12:22 AM, taosinker <taosin...@gmail.com> wrote: > > > Hi all: > > > I want to open an /dev/xx file in a jni so which is load in my Android > > java application. But return a "permission denied" error. > > > Do you have any advices? > > > Regards > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support. All such questions should be posted on public > forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---