vendor: charging: Add condition to use AIDL QTI healthd-ext

Change-Id: I55f97b28bd59dfde6c1f7bd758744b128a412aee
Signed-off-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
chrisl7 2023-03-19 08:51:13 -03:00
parent f02c874e9a
commit 54d66a119a
1 changed files with 7 additions and 1 deletions

View File

@ -13,17 +13,23 @@
# limitations under the License.
# Health
ifeq ($(TARGET_USE_AIDL_QTI_HEALTH),true)
$(call inherit-product, vendor/qcom/opensource/healthd-ext/health-vendor-product.mk)
else
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl-qti \
android.hardware.health@2.1-service
PRODUCT_COPY_FILES += \
$(QCOM_COMMON_PATH)/vendor/charging/init.charger_service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.charger_service.rc
endif
# Suspend
PRODUCT_PACKAGES += \
libsuspend
# Init
PRODUCT_COPY_FILES += \
$(QCOM_COMMON_PATH)/vendor/charging/init.charger_service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.charger_service.rc \
$(QCOM_COMMON_PATH)/vendor/charging/vendor.qti.hardware.charger_monitor@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc
# Get non-open-source specific aspects.