From 091f336787f7aeba72b4e49b87eb83fc85a42956 Mon Sep 17 00:00:00 2001 From: samou Date: Tue, 12 Mar 2024 04:57:52 +0000 Subject: [PATCH] bm: add mitigation config file for comet Bug: 319619657 Change-Id: Ia0fd24265603119ad5fe9dbb95cfb54f41c96f1c Signed-off-by: samou --- battery_mitigation/bm_config_comet.json | 18 ++++++++++++++++++ device-comet.mk | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 battery_mitigation/bm_config_comet.json diff --git a/battery_mitigation/bm_config_comet.json b/battery_mitigation/bm_config_comet.json new file mode 100644 index 0000000..876f8f1 --- /dev/null +++ b/battery_mitigation/bm_config_comet.json @@ -0,0 +1,18 @@ +{ + "MitigationMethod":[ + { + "Name":"AUDIO_MITIGATION", + "Module":"AUDIO", + "Trigger":["OILO1"], + "State":["LIGHT", "MEDIUM", "HEAVY", "DISABLED"], + "Condition":"BASIC" + }, + { + "Name":"UNDEFINED", + "Module":"UNDEFINED", + "Trigger":["OILO1", "OILO2", "UVLO1", "UVLO2", "SMPL"], + "State":["START", "LIGHT", "MEDIUM", "HEAVY", "DISABLED"], + "Condition":"BASIC" + } + ] +} diff --git a/device-comet.mk b/device-comet.mk index da0ab35..8c28de4 100644 --- a/device-comet.mk +++ b/device-comet.mk @@ -380,6 +380,14 @@ PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \ persist.bluetooth.leaudio.allow_list=SM-R510 +# Battery Mitigation Config +ifeq (,$(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH)) +TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH := device/google/comet/battery_mitigation +endif + +PRODUCT_COPY_FILES += \ + $(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH)/bm_config_comet.json:$(TARGET_COPY_OUT_VENDOR)/etc/bm_config.json + # Exynos RIL and telephony # Support RIL Domain-selection SUPPORT_RIL_DOMAIN_SELECTION := true