thanks chris,
On 15 January 2011 21:09, Chris Stratton <cs07...@gmail.com> wrote: > I think you mean not possible to chmod the file on a phone which is > not rooted. > > And the answer is that you cannot solve this problem on a secured > device. > > Nor can you load custom kernel drivers on a secured device to begin > with. > > If you are building this into a release which user's won't have root > within, you could change the bits in the permissions field that > accompanies the name field in the attribute structure used to create > the sysfs "file" - see Documentation/filesystems/sysfs.txt > > Unfortunately, this method won't let you use android-style permissions > to control access. To do that, you'd have to be able to assign the > group ID of the sysfs entry to a hard coded linux group matching an > android group that is assigned to applications with the appropriate > permission. > > On Jan 11, 10:21 pm, ajay <mna...@gmail.com> wrote: > > hi, > > > > I have written a pseudo driver which creates a file(sample) in sys/ > > class/sampledriver in the phone.when i try to open the file i get an > > error no 13. > > > > but i have observed that we can remove this error by chmod 777 sys/ > > class/sampledriver/sample > > > > but this type of hack is not possible on a phone which is rooted. > > > > pls reply how to solve this issue. > > > > Thanks and regards, > > Ajay > > -- > unsubscribe: > android-kernel+unsubscr...@googlegroups.com<android-kernel%2bunsubscr...@googlegroups.com> > website: http://groups.google.com/group/android-kernel > -- ajay -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel