Skip to content

Commit

Permalink
lights: switch to AIDL HAL from somainline
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lweiss-fairphone committed Jul 13, 2022
1 parent cd5db6e commit 46c9639
Show file tree
Hide file tree
Showing 19 changed files with 400 additions and 427 deletions.
3 changes: 0 additions & 3 deletions axolotl/device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ PRODUCT_COPY_FILES := \
# Audio
PRODUCT_PACKAGES += audio.primary.axolotl

# Lights
PRODUCT_PACKAGES += lights.axolotl

# Dynamic Partitions
PRODUCT_BUILD_SUPER_PARTITION := true
PRODUCT_USE_DYNAMIC_PARTITIONS := true
Expand Down
3 changes: 0 additions & 3 deletions beryllium/device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ PRODUCT_COPY_FILES := \

# Build generic Audio HAL
PRODUCT_PACKAGES := audio.primary.beryllium

# Build generic lights HAL
PRODUCT_PACKAGES += lights.beryllium
3 changes: 0 additions & 3 deletions enchilada/device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ PRODUCT_COPY_FILES := \

# Build generic Audio HAL
PRODUCT_PACKAGES := audio.primary.enchilada

# Build generic lights HAL
PRODUCT_PACKAGES += lights.enchilada
4 changes: 1 addition & 3 deletions shared/device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ PRODUCT_HOST_PACKAGES := \
mkbootimg

# Lights
PRODUCT_PACKAGES += \
[email protected] \
[email protected]
$(call inherit-product, $(LOCAL_PATH)/hals/lights.mk)

# Haptics
PRODUCT_PACKAGES += \
Expand Down
37 changes: 0 additions & 37 deletions shared/hals/liblight/Android.mk

This file was deleted.

190 changes: 0 additions & 190 deletions shared/hals/liblight/NOTICE

This file was deleted.

Loading

0 comments on commit 46c9639

Please sign in to comment.