universal7885: Bring back lights HAL

This commit is contained in:
roynatech2544 2023-10-27 20:13:11 +09:00
commit 04f9a60e4c
No known key found for this signature in database
GPG key ID: 389DAC92CAECBBCC
2 changed files with 13 additions and 0 deletions

View file

@ -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;

View file

@ -179,6 +179,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 \