Skip to content

Commit

Permalink
universal7885: Bring back lights HAL
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Oct 27, 2023
1 parent 41f10e3 commit 0f63662
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions universal7885-common/sepolicy/vendor/hal_light_default.te
Original file line number Diff line number Diff line change
@@ -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;
4 changes: 4 additions & 0 deletions universal7885-common/universal7885-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0f63662

Please sign in to comment.