On Jan 2, 3:31 pm, A Curtis <[email protected]> wrote: > On second thought there is a difference, > > The problem isn't just a sequence of instructions but having > sufficient permission to execute. The Java JVM does not run as root. > So,you need something that runs as root to change permissions to > enable Java access.
but echo isn't setuid root either. > IMO a script maybe the best solution since it is easily integrated > into initrc. In fact, that is a large part of what that script does. If you chmod the device files from a privileged script to allow unprivileged access, then direct access from java should be as possible as using the shell or echo to do it. It will also be substantially more efficient as you don't have to create a linux process or two for each access. -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
