diff --git a/battery_mitigation/bcl-aidl.mk b/battery_mitigation/bcl-aidl.mk new file mode 100644 index 0000000..83b4749 --- /dev/null +++ b/battery_mitigation/bcl-aidl.mk @@ -0,0 +1,17 @@ +ifeq ($(RELEASE_PIXEL_AIDL_BATTERY_MITIGATION_HAL), true) + +ifeq (,$(filter factory_%,$(TARGET_PRODUCT))) +PRODUCT_PACKAGES += battery_mitigation +endif +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +ifeq (,$(filter factory_%,$(TARGET_PRODUCT))) +PRODUCT_PACKAGES += BrownoutDetection +endif +endif + +PRODUCT_SOONG_NAMESPACES += device/google/gs-common/battery_mitigation +endif + +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