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
|
2022-12-02 18:28:47 +00:00
|
|
|
ifneq (,$(filter userdebug 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-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
|
2022-10-24 19:21:53 -07:00
|
|
|
PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation
|