diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index a9c1591c..27672517 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -94,6 +94,12 @@ KERNEL_DEFCONFIG := vendor/sm8150-perf_defconfig KERNEL_CUSTOM_LLVM := true KERNEL_FULL_LLVM := true +# Lineage Health +TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH := /sys/class/power_supply/battery/op_disable_charge +TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED := 0 +TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED := 1 +TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false + # Metadata BOARD_USES_METADATA_PARTITION := true diff --git a/common.mk b/common.mk index 1039f1b3..b92b54c8 100644 --- a/common.mk +++ b/common.mk @@ -222,6 +222,10 @@ PRODUCT_VENDOR_PROPERTIES += \ ro.crypto.volume.filenames_mode="aes-256-cts" \ ro.hardware.keystore_desede=true +# Lineage Health +PRODUCT_PACKAGES += \ + vendor.lineage.health-service.default + # NFC PRODUCT_PACKAGES += \ android.hardware.nfc@1.0-impl:64 \