summaryrefslogtreecommitdiff
path: root/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
diff options
context:
space:
mode:
authorDavide Garberi <dade.garberi@gmail.com>2019-08-31 18:52:20 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-09-18 19:09:12 +0200
commit73bc815d397b47f1d6d0c74f98d4a4b697b19a96 (patch)
treea64b72f884a6eb98fee58178d357a133cb33821a /light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
parent396498da87b9dbb7cd9783fefea1bd24a3ebc704 (diff)
sdm660-common: Convert to 660 common tree
Change-Id: I903039730f4181f6a326f28e0ea212db68bdabcc
Diffstat (limited to 'light/android.hardware.light@2.0-service.xiaomi_sdm660.rc')
-rw-r--r--light/android.hardware.light@2.0-service.xiaomi_sdm660.rc21
1 files changed, 21 insertions, 0 deletions
diff --git a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
new file mode 100644
index 0000000..ba0f41a
--- /dev/null
+++ b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
@@ -0,0 +1,21 @@
+on boot
+ # Notification LED
+ chown system system /sys/class/leds/red/blink
+ chown system system /sys/class/leds/red/brightness
+ chown system system /sys/class/leds/red/duty_pcts
+ chown system system /sys/class/leds/red/pause_hi
+ chown system system /sys/class/leds/red/pause_lo
+ chown system system /sys/class/leds/red/ramp_step_ms
+ chown system system /sys/class/leds/red/start_idx
+
+ chmod 660 /sys/class/leds/red/duty_pcts
+ chmod 660 /sys/class/leds/red/pause_hi
+ chmod 660 /sys/class/leds/red/pause_lo
+ chmod 660 /sys/class/leds/red/ramp_step_ms
+ chmod 660 /sys/class/leds/red/start_idx
+
+service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sdm660
+ class hal
+ user system
+ group system
+ shutdown critical