From f0f7db7badcaba96be7a3963443536b9035697b5 Mon Sep 17 00:00:00 2001 From: Shirayuki39 Date: Wed, 17 Jul 2024 07:16:56 +0800 Subject: [PATCH] LG8n: Switch to Prebuilt Lights Stack Signed-off-by: Shirayuki39 --- device.mk | 2 +- extract-files.sh | 3 +++ proprietary-files.txt | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index ae13284..759746f 100644 --- a/device.mk +++ b/device.mk @@ -206,7 +206,7 @@ PRODUCT_PACKAGES += \ # Lights PRODUCT_PACKAGES += \ - android.hardware.lights-service.transsion + android.hardware.light-V1-ndk.vendor # Media PRODUCT_PACKAGES += \ diff --git a/extract-files.sh b/extract-files.sh index 484e5f2..5f40309 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -58,6 +58,9 @@ function blob_fixup { vendor/bin/hw/android.hardware.vibrator-service.mediatek) "$PATCHELF" --replace-needed "android.hardware.vibrator-V2-ndk_platform.so" "android.hardware.vibrator-V2-ndk.so" "$2" ;; + vendor/bin/hw/android.hardware.lights-service.mediatek) + "$PATCHELF" --replace-needed "android.hardware.light-V1-ndk_platform.so" "android.hardware.light-V1-ndk.so" "$2" + ;; vendor/bin/hw/android.hardware.gnss-service.mediatek |\ vendor/lib64/hw/android.hardware.gnss-impl-mediatek.so) "$PATCHELF" --replace-needed "android.hardware.gnss-V1-ndk_platform.so" "android.hardware.gnss-V1-ndk.so" "$2" diff --git a/proprietary-files.txt b/proprietary-files.txt index 5677772..a1302a3 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -2396,6 +2396,11 @@ vendor/etc/init/android.hardware.security.keymint-service.trustonic.rc -vendor/etc/vintf/manifest/android.hardware.security.secureclock-service.trustonic.xml -vendor/etc/vintf/manifest/android.hardware.security.sharedsecret-service.trustonic.xml +# Lights +vendor/bin/hw/android.hardware.lights-service.mediatek +vendor/etc/init/lights-mtk-default.rc +vendor/etc/vintf/manifest/lights-mtk-default.xml + # Media vendor/bin/mt6789/v3avpud.mt6789 vendor/etc/init/v3avpud.rc