On Jan 2, 3:31 pm, A Curtis <ajcurti...@gmail.com> 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.
echo isn't setuid root either > So,you need something that runs as root to change permissions to > enable Java access. > > 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. Sure, but once you have changed the permissions, subsequent access directly from java should be as possible as subsequent access by means of the shell and echo. And a lot more efficient, as you don't have to create a process or two each time. I now notice your sequence of shell commands doesn't actually set the value, so perhaps you already were planning to do the subsequent access to the value directly from java. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting