tdm
Android Expert
Tdm. I'm loving your progress. But can I ask for a small favor? Some way to disable the key lights. Maybe a option in the next build or a flashable zip or something?
The button backlight control file is /sys/class/leds/button-backlight/brightness
If you want to disable it, the easiest way is probably to revoke permissions to modify that file.
By default, init.rc sets owner system, group system, mode 644.
You could create an rc-script that sets it owner root, group root, mode 000.
To do this, create a script with the following contents. Be sure to use Unix line endings, not DOS...
Code:
#!/system/bin/sh
# Disable permissions for backlight buttons
f="/sys/class/leds/button-backlight/brightness"
chown root.root "$f"
chmod 000 "$f"
Now put that script in /system/etc/init.d or /data/local/userinit.d (either one, depending on how comfortable you are writing to /system and/or whether you want it to stay in place on a dirty flash). Make sure the script itself is executable (mode 755). Reboot and viola, backlight buttons should never turn on.

