Revert "Revert "rosemary: Build Lineage Health HAL""

This reverts commit dd395cf5f7.

Change-Id: Ief50a7a4478cabeedb3fc00c69f7fabbea3d2f58
This commit is contained in:
Matsvei Niaverau
2023-10-09 14:07:35 +02:00
parent 5531bcd019
commit 97dcc44562
3 changed files with 9 additions and 0 deletions

View File

@@ -96,6 +96,9 @@ BOARD_KERNEL_SEPARATED_DTBO := true
BOARD_CUSTOM_DTBOIMG_MK := $(DEVICE_PATH)/dtbo/dtbo.mk
BOARD_KERNEL_IMAGE_NAME := Image.gz
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
# OTA assert
TARGET_OTA_ASSERT_DEVICE := rosemary,secret,maltose

View File

@@ -253,6 +253,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.light-service.rosemary
# Lineage Health
PRODUCT_PACKAGES += \
vendor.lineage.health-service.default
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \

2
sepolicy/vendor/hal_lineage_health.te vendored Normal file
View File

@@ -0,0 +1,2 @@
rw_dir_file(hal_lineage_health_default, vendor_sysfs_battery_supply)
rw_dir_file(hal_lineage_health_default, sysfs_batteryinfo)