Skip to content
Snippets Groups Projects
Commit cfcb5493 authored by Eric HEINTZMANN's avatar Eric HEINTZMANN
Browse files

udev: use a more secure flashlight rule

parent 563eef89
No related branches found
No related tags found
1 merge request!19flashligt: fix brightness and permissions
Pipeline #1639555373 passed
......@@ -237,4 +237,6 @@ ACTION=="add", KERNEL=="block/platform/soc/4804000.ufshc/by-name/frp", OWNER="sy
ACTION=="add", KERNEL=="block/platform/soc/8804000.sdhci/by-name/frp", OWNER="system", GROUP="system", MODE="0600"
ACTION=="add", KERNEL=="kmsg", OWNER="root", GROUP="system", MODE="0620"
ACTION=="add", KERNEL=="msm_npu", OWNER="system", GROUP="system", MODE="0644"
ACTION=="add", KERNEL=="flashlight", SUBSYSTEM=="leds", RUN+="/usr/bin/chmod 666 /sys/class/leds/flashlight/brightness"
# Set flashlight permissions so indicator-power can access it
ACTION=="add|change", SUBSYSTEM=="leds", KERNEL=="flashlight", RUN+="/bin/chgrp android_media /sys/class/leds/%k/brightness"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment