aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--BoardConfig.mk2
-rw-r--r--device.mk1
-rw-r--r--init.smdk4x12.rc1
-rw-r--r--lineage_i9305.mk1
-rw-r--r--manifest.xml9
5 files changed, 14 insertions, 0 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index a2eeb7b..3d4d582 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -26,6 +26,8 @@ TARGET_BOOTLOADER_BOARD_NAME := smdk4x12
TARGET_NO_BOOTLOADER := true
+BOARD_VENDOR := samsung
+
# Kernel
TARGET_KERNEL_SOURCE := kernel/replicant/linux
TARGET_KERNEL_CONFIG := replicant_i9305_defconfig
diff --git a/device.mk b/device.mk
index 327d2fc..bf27f92 100644
--- a/device.mk
+++ b/device.mk
@@ -80,6 +80,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.light@2.0-impl \
android.hardware.light@2.0-service \
+ lights.smdk4x12 \
# Vibrator HAL packages
PRODUCT_PACKAGES += \
diff --git a/init.smdk4x12.rc b/init.smdk4x12.rc
index dd4a29b..35a465c 100644
--- a/init.smdk4x12.rc
+++ b/init.smdk4x12.rc
@@ -41,6 +41,7 @@ on early-boot
chmod 777 /dev/dri/card0
chmod 777 /dev/dri/renderD128
chmod 777 /dev/graphics/fb0
+ chmod 777 /sys/class/backlight/panel/brightness
chown graphics graphics /sys/kernel/debug/sync/info
setprop debug.sf.no_hw_vsync 1
diff --git a/lineage_i9305.mk b/lineage_i9305.mk
index 2529466..7f9437d 100644
--- a/lineage_i9305.mk
+++ b/lineage_i9305.mk
@@ -18,6 +18,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
$(call inherit-product, device/samsung/i9305/device.mk)
$(call inherit-product, vendor/lineage/config/common_full.mk)
+$(call inherit-product, hardware/samsung/Android.mk)
PRODUCT_NAME := lineage_i9305
PRODUCT_DEVICE := i9305
diff --git a/manifest.xml b/manifest.xml
index 6998ba5..642175a 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -114,4 +114,13 @@
<instance>default</instance>
</interface>
</hal>
+ <hal>
+ <name>android.hardware.light</name>
+ <transport>hwbinder</transport>
+ <version>2.0</version>
+ <interface>
+ <name>ILight</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
</manifest>