From 3ee92b397b7cfa8db60a9946eebe922026da9490 Mon Sep 17 00:00:00 2001 From: Fazil Sheik Date: Wed, 11 Sep 2024 15:02:24 +0530 Subject: [PATCH] vendor: display: Guard QTI AIDL Lights HAL Causes msmnile to bootloop --- vendor/display/qti-display.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/vendor/display/qti-display.mk b/vendor/display/qti-display.mk index e5fe3e51..8d465489 100644 --- a/vendor/display/qti-display.mk +++ b/vendor/display/qti-display.mk @@ -16,9 +16,21 @@ -include hardware/qcom/display/config/display-board.mk -include hardware/qcom/display/config/display-product.mk +# Enable Legacy Lights HAL for 4.14 target +ifneq (,$(filter 4.14, $(TARGET_KERNEL_VERSION))) + +# Lights HAL +PRODUCT_PACKAGES += \ + android.hardware.lights-service.qti \ + lights.qcom + +else + # Include QTI AIDL Lights HAL -include vendor/qcom/opensource/lights/lights-vendor-product.mk +endif + # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml