hi all, To solve this problem, you can only add "chmod 777 /dev/tty**" to the file init.rc.
I hope it help. On 1月14日, 下午7时04分, taosinker <[email protected]> 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. > > On Jan 14, 2:41 am, Jean-Baptiste Queru <[email protected]> wrote: > > > > > 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<[email protected]> wrote: > > > > Hi Dianne: > > > > Could you give me an advice to resolve it? Now I find the reason is > > > /dev/xx is the rootpermission, 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" <[email protected]> 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<[email protected]> 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 "permissiondenied" error. > > > >> > Do you have any advices? > > > >> > Regards > > > >> -- > > >> Dianne Hackborn > > >> Android framework engineer > > >> [email protected] > > > >> 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. > > > -- > > Jean-Baptiste M. "JBQ" Queru > > Android Engineer, Google.- 隐藏被引用文字 - > > - 显示引用的文字 - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

