Your problem is not in setting root permission, but in trying to do something that root permission does not directly enable, such as writing to a read-only file system. To do that your program will have to remount the filesystem read/write, or you will have to change the system startup scripts to make it writeable by default.
Why particularly do you need to write to /system anyway? Or was that just a poorly chosen test case? On Sep 17, 4:20 am, Francesco Pace <[email protected]> wrote: > Yeah, with "adb remount" my program works correctly. > But If I want set root permission at my simple application (File Browser), > How can I do? > Thanks... > > 2009/9/16 [email protected] <[email protected]> > > > > > Running the "mount" command from a shell will likely show that /system > > is mounted read-only as per default android setup, unless you've > > changed that in the process of rooting the phone. The exact syntax of > > the (somewhat non-standard?) mount command to use for remounting it > > read/write is not something I recall at the moment, but you'll find it > > with some web searching. > > > On Sep 16, 6:32 am, Francesco Pace <[email protected]> wrote: > > > > I use Superuser.apk for execute "su" command. My program write file > > test.txt > > > in /system but statement Log.v("TEST]", String.valueOf(list.length)); > > return > > > value 0. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

