- move cc_binary to vendor/google/interfaces/ battery_mitigation - fix sepolicy to support aidl Bug: 299700579 Change-Id: I7345ffc1e2ddb46d9979a1fadef39dd0c2c281d6 Signed-off-by: samou <samou@google.com>
24 lines
1.0 KiB
Makefile
24 lines
1.0 KiB
Makefile
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
|
|
|
|
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
|
|
|
|
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
|