Try repeating the command multiple times in init.rc, i.e.,
chmod 777 <sys file name>
chmod 777 <sys file name>
I've found that doing it at least twice usually makes it work..
-- Ashwin
On Tue, Sep 20, 2011 at 12:06 PM, Pratik Prajapati
<[email protected]> wrote:
> Hi,
>
> I'm doing below things in init.rc only.
>
> (1)
> on device-added-<device node path>
> chmod 777 <sys fs file name>
>
> (2) on boot
> chmod 777 <sys fs file name>
>
> But it does not work.
>
> --
> Regards,
> Pratik Prajapati
>
> On Tue, Sep 20, 2011 at 8:58 AM, jagan <[email protected]> wrote:
>>
>> You can't give the permissions directly on android source.
>> We need to give the permissions on init.rc.
>> Better to read the file from system/core/init/readme.txt
>> Regards,
>> Jagan
>>
>> On Tue, Sep 20, 2011 at 9:18 PM, Pratik Prajapati
>> <[email protected]> wrote:
>>>
>>> Hi There,
>>>
>>> I'm setting permission to 777 (R+W+E for all) to a script file. But after
>>> kernel built and flashed to the system, permission does not get changed as
>>> expected. I understand I can give permission in make file while creating
>>> filesystem to be flashed on system. But same thing is happening for some
>>> sysfs entries. These sysfs entries are created by drivers at boot up time. I
>>> have also tried
>>>
>>> on device-added-<device node path>
>>> chmod 777 <sys fs file name>
>>>
>>> But I can not set the mode by this method also. However on console (adb
>>> shell) i can change the permission. I'm running on 2.1
>>>
>>> Any idea, what could be wrong?
>>>
>>> Regards,
>>> Pratik
>>>
>>>
>>> --
>>> unsubscribe: [email protected]
>>> website: http://groups.google.com/group/android-kernel
>>
>> --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-kernel
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-platform" 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-platform?hl=en.
>
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting