From 22f550f593cfe73f41258678b5ed4559a2792f06 Mon Sep 17 00:00:00 2001 From: Michael Bestas <mkbestas@lineageos.org> Date: Fri, 3 Mar 2023 23:43:42 +0200 Subject: [PATCH] sm8350-common: Build Lineage Health HAL Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf --- BoardConfigCommon.mk | 3 +++ common.mk | 4 ++++ rootdir/etc/ueventd.rc | 3 +++ 3 files changed, 10 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index e92ab4d..2ccd0c2 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -100,6 +100,9 @@ BOARD_KERNEL_CMDLINE += pcie_ports=compat BOARD_KERNEL_CMDLINE += iptable_raw.raw_before_defrag=1 BOARD_KERNEL_CMDLINE += ip6table_raw.raw_before_defrag=1 +# Lineage Health +TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false + # PowerShare SOONG_CONFIG_NAMESPACES += XIAOMI_POWERSHARE SOONG_CONFIG_XIAOMI_POWERSHARE := WIRELESS_TX_ENABLE_PATH diff --git a/common.mk b/common.mk index 109f72c..65542c7 100644 --- a/common.mk +++ b/common.mk @@ -278,6 +278,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ android.hardware.keymaster@4.1.vendor +# Lineage Health +PRODUCT_PACKAGES += \ + vendor.lineage.health-service.default + # LiveDisplay PRODUCT_PACKAGES += \ vendor.lineage.livedisplay@2.0-service-sdm diff --git a/rootdir/etc/ueventd.rc b/rootdir/etc/ueventd.rc index 5539305..5aa9b35 100644 --- a/rootdir/etc/ueventd.rc +++ b/rootdir/etc/ueventd.rc @@ -132,6 +132,9 @@ firmware_directories /vendor/firmware_mnt/image/ # socinfo /sys/devices/soc0 serial_number 0000 root root +# Charger +/sys/class/qcom-battery input_suspend 0660 system system + # mius iio devices /dev/iio:device* 0660 system system /sys/bus/iio/devices/iio:device* buffer/enable 0600 system system -- GitLab