backlight: add support for manual brightness
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
<manifest version="1.0" type="device">
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.light</name>
|
||||
<transport>hwbinder</transport>
|
||||
<version>2.0</version>
|
||||
<interface>
|
||||
<name>ILight</name>
|
||||
<instance>default</instance>
|
||||
</interface>
|
||||
</hal>
|
||||
<hal format="hidl">
|
||||
<name>android.hardware.vibrator</name>
|
||||
<transport arch="32">passthrough</transport>
|
||||
|
||||
Reference in New Issue
Block a user