From 1e3ebd5caf70ab139c59485a98d826caf090b3eb Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 3 Mar 2023 23:43:42 +0200 Subject: [PATCH] dre: Build Lineage Health HAL Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf --- BoardConfig.mk | 3 +++ device.mk | 6 +++++- init/ueventd.oplus.rc | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 4be7316..e9cc651 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -87,6 +87,9 @@ TARGET_USES_QTI_MAPPER_EXTENSIONS_1_1 := true # Filesystem TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs +# Health +TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/oplus_chg/battery/mmi_charging_enable + # HIDL DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ $(DEVICE_PATH)/device_framework_matrix.xml \ diff --git a/device.mk b/device.mk index 460a2a7..17aeedb 100644 --- a/device.mk +++ b/device.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2021-2022 The LineageOS Project +# Copyright (C) 2021-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # @@ -273,6 +273,10 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ android.hardware.keymaster@4.1.vendor +# Lineage Health +PRODUCT_PACKAGES += \ + vendor.lineage.health-service.default + # LiveDisplay PRODUCT_PACKAGES += \ vendor.lineage.livedisplay@2.1-service.oplus diff --git a/init/ueventd.oplus.rc b/init/ueventd.oplus.rc index adc6705..e059192 100644 --- a/init/ueventd.oplus.rc +++ b/init/ueventd.oplus.rc @@ -1,9 +1,12 @@ # -# Copyright (C) 2022 The LineageOS Project +# Copyright (C) 2022-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # +# Charger +/sys/class/oplus_chg/* mmi_charging_enable 0660 system system + # NFC /dev/st21nfc 0660 nfc nfc