blob: 5bf1a2508b48e360dcd0b07c0021478dee62cbd6 [file] [log] [blame]
George Lee8ef6c932023-01-17 15:45:50 +00001ifeq (,$(filter factory_%,$(TARGET_PRODUCT)))
George Leedc9f80c2022-12-02 18:28:47 +00002PRODUCT_PACKAGES += battery_mitigation
George Lee8ef6c932023-01-17 15:45:50 +00003endif
George Leedc9f80c2022-12-02 18:28:47 +00004ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
George Lee8ef6c932023-01-17 15:45:50 +00005ifeq (,$(filter factory_%,$(TARGET_PRODUCT)))
George Leedc9f80c2022-12-02 18:28:47 +00006PRODUCT_PACKAGES += BrownoutDetection
7endif
George Lee8ef6c932023-01-17 15:45:50 +00008endif
George Leea1bea3e2022-10-24 19:21:53 -07009
samoue6dce882023-11-15 02:14:37 +000010ifeq ($(RELEASE_PIXEL_AIDL_BATTERY_MITIGATION_HAL), true)
11PRODUCT_PROPERTY_OVERRIDES += \
12 vendor.battery_mitigation.aidl.enable=true
13endif
14
15PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation \
16 vendor/google/battery_mitigation
17PRODUCT_PACKAGES += vendor.google.battery_mitigation-default
18PRODUCT_PACKAGES += vendor.google.battery_mitigation.service_static
19DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/battery_mitigation/compatibility_matrix.xml
20
Inseob Kim155ec762023-09-13 04:24:29 +000021BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/vendor
22SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/private
23SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/public