Skip to content

Commit f0b4e08

Browse files
mikeNGSonalSingh18
authored andcommitted
sm8450-common: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf Signed-off-by: Sonal Singh <sonal.singh.19993@gmail.com>
1 parent fbdb6ab commit f0b4e08

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

BoardConfigCommon.mk

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ TARGET_KERNEL_EXT_MODULES := \
145145
qcom/opensource/video-driver \
146146
qcom/opensource/wlan/qcacld-3.0/.qca6490
147147

148+
# Lineage Health
149+
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/oplus_chg/battery/mmi_charging_enable
150+
148151
# Platform
149152
BOARD_USES_QCOM_HARDWARE := true
150153

common.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ PRODUCT_PACKAGES += \
278278
libprotobuf-cpp-lite-3.9.1-vendorcompat \
279279
libprotobuf-cpp-full-3.9.1-vendorcompat
280280

281+
# Lineage Health
282+
PRODUCT_PACKAGES += \
283+
vendor.lineage.health-service.default
284+
281285
# LiveDisplay
282286
PRODUCT_PACKAGES += \
283287
vendor.lineage.livedisplay@2.1-service.oplus

init/ueventd.oplus.rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7+
# Charger
8+
/sys/class/oplus_chg/* mmi_charging_enable 0660 system system
9+
710
# NFC
811
/dev/st21nfc 0660 nfc nfc
912
/dev/st54spi 0660 secure_element secure_element

0 commit comments

Comments
 (0)