diff --git a/BoardConfig.mk b/BoardConfig.mk index 06abae5..4fab32f 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -37,6 +37,9 @@ BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth USE_CUSTOM_AUDIO_POLICY := 1 USE_XML_AUDIO_POLICY_CONF := 1 +# Lights +TARGET_SPECIFIC_HEADER_PATH := $(DEVICE_PATH)/include + # Radio BOARD_HAVE_QCOM_FM := true diff --git a/include/samsung_lights.h b/include/samsung_lights.h new file mode 100644 index 0000000..8887872 --- /dev/null +++ b/include/samsung_lights.h @@ -0,0 +1,14 @@ +#ifndef SAMSUNG_LIGHTS_H +#define SAMSUNG_LIGHTS_H + +/* + * Board specific nodes + * + * rubenslte exposes the panel backlight through the mdss_fb LED class + * device. There is no touchkey backlight or notification LED on this + * device. + */ +#define PANEL_BRIGHTNESS_NODE "/sys/class/leds/lcd-backlight/brightness" +#define PANEL_MAX_BRIGHTNESS_NODE "/sys/class/leds/lcd-backlight/max_brightness" + +#endif // SAMSUNG_LIGHTS_H diff --git a/lineage_rubenslte.mk b/lineage_rubenslte.mk index b96e0d2..28cad6b 100644 --- a/lineage_rubenslte.mk +++ b/lineage_rubenslte.mk @@ -21,6 +21,10 @@ PRODUCT_PACKAGES += fstab.qcom init.target.rc # Vibrator PRODUCT_PACKAGES += android.hardware.vibrator@1.0-impl +# Lights +PRODUCT_PACKAGES += \ + android.hardware.light@2.0-service.samsung + # Overlays DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-lineage diff --git a/manifest.xml b/manifest.xml index f626b98..1861cd3 100644 --- a/manifest.xml +++ b/manifest.xml @@ -1,4 +1,13 @@ + + android.hardware.light + hwbinder + 2.0 + + ILight + default + + android.hardware.vibrator passthrough