Cannot edit, delete or copy any file from /sys directory in Android? I can't edit, delete or copy any file from /sys directory in Android. How can I fix this? I have root access. I made /sys readable and writable using Root Explorer and Root Browser but that didn't solve the problem.

When I attempt to edit a text file, I just receive "failed saving text".

According to @DeathMaskSalesman, it appears the /sys partition is made uneditable at boot. So I suppose I should edit the files while in recovery mode. How can I do that exactly? Or does someone have a better idea?
Continuing my comment above. This is getting long so I'll just post it as an answer entry.

You will need to enable init.d if your ROM does not support it, for example with this tool: LINK: Google Play

After that, read up on Linux scripting and write the script doing what you intend to do. Put the script in /system/etc/init.d and set permission to 0755 (rwxr-xr-x) to allow execution. Reboot and see if it works.

Check this XDA thread for more info, as well as an example script which you can refer to.