Skip to content

Commit 46c9639

Browse files
lights: switch to AIDL HAL from somainline
The previously used [email protected] is mostly just a passthrough HAL that uses the legacy liblights that we implemented here. The new HAL is using AIDL and implements the interface directly which is much more what it should be. This also fixes max brightness being (indirectly) hardcoded to 1020 instead of the actual values that devices support. Link: https://github.com/SoMainline/android-lights-hal
1 parent cd5db6e commit 46c9639

File tree

19 files changed

+400
-427
lines changed

19 files changed

+400
-427
lines changed

axolotl/device.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@ PRODUCT_COPY_FILES := \
2525
# Audio
2626
PRODUCT_PACKAGES += audio.primary.axolotl
2727

28-
# Lights
29-
PRODUCT_PACKAGES += lights.axolotl
30-
3128
# Dynamic Partitions
3229
PRODUCT_BUILD_SUPER_PARTITION := true
3330
PRODUCT_USE_DYNAMIC_PARTITIONS := true

beryllium/device.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ PRODUCT_COPY_FILES := \
2424

2525
# Build generic Audio HAL
2626
PRODUCT_PACKAGES := audio.primary.beryllium
27-
28-
# Build generic lights HAL
29-
PRODUCT_PACKAGES += lights.beryllium

enchilada/device.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,3 @@ PRODUCT_COPY_FILES := \
2424

2525
# Build generic Audio HAL
2626
PRODUCT_PACKAGES := audio.primary.enchilada
27-
28-
# Build generic lights HAL
29-
PRODUCT_PACKAGES += lights.enchilada

shared/device.mk

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ PRODUCT_HOST_PACKAGES := \
194194
mkbootimg
195195

196196
# Lights
197-
PRODUCT_PACKAGES += \
198-
199-
197+
$(call inherit-product, $(LOCAL_PATH)/hals/lights.mk)
200198

201199
# Haptics
202200
PRODUCT_PACKAGES += \

shared/hals/liblight/Android.mk

Lines changed: 0 additions & 37 deletions
This file was deleted.

shared/hals/liblight/NOTICE

Lines changed: 0 additions & 190 deletions
This file was deleted.

0 commit comments

Comments
 (0)