2023-01-17 15:45:50 +00:00
|
|
|
ifeq (,$(filter factory_%,$(TARGET_PRODUCT)))
|
2022-12-02 18:28:47 +00:00
|
|
|
PRODUCT_PACKAGES += battery_mitigation
|
2023-01-17 15:45:50 +00:00
|
|
|
endif
|
2023-10-18 17:38:24 +03:00
|
|
|
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
|
2023-01-17 15:45:50 +00:00
|
|
|
ifeq (,$(filter factory_%,$(TARGET_PRODUCT)))
|
2022-12-02 18:28:47 +00:00
|
|
|
PRODUCT_PACKAGES += BrownoutDetection
|
|
|
|
endif
|
2023-01-17 15:45:50 +00:00
|
|
|
endif
|
2022-10-24 19:21:53 -07:00
|
|
|
|
2023-11-15 02:14:37 +00:00
|
|
|
ifeq ($(RELEASE_PIXEL_AIDL_BATTERY_MITIGATION_HAL), true)
|
|
|
|
PRODUCT_PROPERTY_OVERRIDES += \
|
|
|
|
vendor.battery_mitigation.aidl.enable=true
|
|
|
|
endif
|
|
|
|
|
|
|
|
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation \
|
|
|
|
vendor/google/battery_mitigation
|
|
|
|
PRODUCT_PACKAGES += vendor.google.battery_mitigation-default
|
|
|
|
PRODUCT_PACKAGES += vendor.google.battery_mitigation.service_static
|
|
|
|
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/battery_mitigation/compatibility_matrix.xml
|
|
|
|
|
2023-09-13 04:24:29 +00:00
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/vendor
|
|
|
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/private
|
|
|
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/public
|