mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 04:05:31 -04:00
universal7885: Bring back lights HAL
This commit is contained in:
parent
47e84a6050
commit
04f9a60e4c
2 changed files with 13 additions and 0 deletions
9
universal7885-common/sepolicy/vendor/hal_light_default.te
vendored
Normal file
9
universal7885-common/sepolicy/vendor/hal_light_default.te
vendored
Normal 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;
|
||||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Reference in a new issue