[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
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

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Jean-Baptiste Queru
Like Dianne said, you can't. Use the published SDK APIs to access the various functionalities exposed by Android. JBQ On Wed, Jan 14, 2009 at 2:38 AM, taosinker taosin...@gmail.com wrote: Hi Dianne: Could you give me an advice to resolve it? Now I find the reason is /dev/xx is the root

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
Jean: Now my company have the license agreement with google. I can build the code and run it on our board. Could you give me some advices? On Jan 14, 2:41 am, Jean-Baptiste Queru j...@google.com wrote: Like Dianne said, you can't. Use the published SDK APIs to access the various

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread taosinker
I can enter SDK inside and build the code under SDK level. But don't know how to resolve my problem below the SDK level. On Jan 14, 2:41 am, Jean-Baptiste Queru j...@google.com wrote: Like Dianne said, you can't. Use the published SDK APIs to access the various functionalities exposed by

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Dianne Hackborn
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

[android-developers] Re: How to set the permission to open a dev fd?

2009-01-14 Thread Mark Murphy
taosinker wrote: I can enter SDK inside and build the code under SDK level. But don't know how to resolve my problem below the SDK level. Discussions on below the SDK level are better suited for one of the mailing lists for the Android open source project: http://source.android.com/discuss