[android-kernel] Re: accesing a sys/class

2011-01-17 Thread ajay
thanks chris, but if i am creating a phone(that is i am the vendor) which i make it unrooted then how should i go about On Jan 18, 8:27 am, Chris Stratton wrote: > On Jan 17, 12:35 pm, ajay wrote: > > > thanks Chris, > > getting to the point > > I was trying to write a program which

[android-kernel] Re: accesing a sys/class

2011-01-17 Thread Chris Stratton
On Jan 17, 12:35 pm, ajay wrote: > thanks Chris, > getting to the point > I was trying to write a program which uses the framework library > libharware_legacy.so used for > vibration. You aren't supposed to do that. Go through the public interface to the vibrator from java > we cant do the same

Re: [android-kernel] Re: accesing a sys/class

2011-01-17 Thread ajay
thanks Chris, getting to the point I was trying to write a program which uses the framework library libharware_legacy.so used for vibration. this library tries to open a the vibrator device file -"/sys/class/ timed_output/vibrator/enable" and write to the file when api - vibrator_on is called. t

Re: [android-kernel] Re: accesing a sys/class

2011-01-17 Thread ajay
thanks chris, On 15 January 2011 21:09, Chris Stratton 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 beg

[android-kernel] Re: accesing a sys/class

2011-01-15 Thread Chris Stratton
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