George Lee | 8ef6c93 | 2023-01-17 15:45:50 +0000 | [diff] [blame] | 1 | ifeq (,$(filter factory_%,$(TARGET_PRODUCT))) |
George Lee | dc9f80c | 2022-12-02 18:28:47 +0000 | [diff] [blame] | 2 | PRODUCT_PACKAGES += battery_mitigation |
George Lee | 8ef6c93 | 2023-01-17 15:45:50 +0000 | [diff] [blame] | 3 | endif |
George Lee | dc9f80c | 2022-12-02 18:28:47 +0000 | [diff] [blame] | 4 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
George Lee | 8ef6c93 | 2023-01-17 15:45:50 +0000 | [diff] [blame] | 5 | ifeq (,$(filter factory_%,$(TARGET_PRODUCT))) |
George Lee | dc9f80c | 2022-12-02 18:28:47 +0000 | [diff] [blame] | 6 | PRODUCT_PACKAGES += BrownoutDetection |
| 7 | endif |
George Lee | 8ef6c93 | 2023-01-17 15:45:50 +0000 | [diff] [blame] | 8 | endif |
George Lee | a1bea3e | 2022-10-24 19:21:53 -0700 | [diff] [blame] | 9 | |
samou | e6dce88 | 2023-11-15 02:14:37 +0000 | [diff] [blame] | 10 | ifeq ($(RELEASE_PIXEL_AIDL_BATTERY_MITIGATION_HAL), true) |
| 11 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 12 | vendor.battery_mitigation.aidl.enable=true |
| 13 | endif |
| 14 | |
| 15 | PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation \ |
| 16 | vendor/google/battery_mitigation |
| 17 | PRODUCT_PACKAGES += vendor.google.battery_mitigation-default |
| 18 | PRODUCT_PACKAGES += vendor.google.battery_mitigation.service_static |
| 19 | DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs-common/battery_mitigation/compatibility_matrix.xml |
| 20 | |
Inseob Kim | 155ec76 | 2023-09-13 04:24:29 +0000 | [diff] [blame] | 21 | BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/vendor |
| 22 | SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/private |
| 23 | SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += device/google/gs-common/battery_mitigation/sepolicy/system_ext/public |