diff --git a/universal7885-common/sepolicy/vendor/hal_light_default.te b/universal7885-common/sepolicy/vendor/hal_light_default.te new file mode 100644 index 00000000..6cd32fd3 --- /dev/null +++ b/universal7885-common/sepolicy/vendor/hal_light_default.te @@ -0,0 +1,9 @@ +# hal_light_default.te + +# /sys/devices/platform/panel@0/backlight/panel/brightness +# /sys/devices/platform/panel@0/backlight/panel/max_brightness +allow hal_light_default sysfs_backlight_writable:file rw_file_perms; +allow hal_light_default sysfs_graphics:dir search; +allow hal_light_default sysfs_graphics:file rw_file_perms; +allow hal_light_default sysfs_virtual:dir search; +allow hal_light_default sysfs_virtual:file rw_file_perms; diff --git a/universal7885-common/universal7885-common.mk b/universal7885-common/universal7885-common.mk index 337eb691..7baef57a 100644 --- a/universal7885-common/universal7885-common.mk +++ b/universal7885-common/universal7885-common.mk @@ -180,6 +180,10 @@ PRODUCT_PACKAGES += \ init.target.rc \ init.baseband.rc +# Lights +PRODUCT_PACKAGES += \ + android.hardware.light-service.samsung + # Keylayout PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/keylayout/Codec3035_Headset_Events.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Codec3035_Headset_Events.kl \