bm: add mitigation config file
Flag: vendor.google.battery_mitigation.flags.enable_swift_audio_mitigation Bug: 319619657 Change-Id: Iaa1106e5f357630cd1d45df3614bd6d8a9d91148 Signed-off-by: samou <samou@google.com>
This commit is contained in:
parent
b1cec3fd6d
commit
53aef42cdb
2 changed files with 30 additions and 0 deletions
22
battery_mitigation/bm_config_tegu.json
Normal file
22
battery_mitigation/bm_config_tegu.json
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"MitigationConfig": {
|
||||||
|
"QuickSaveStats": 1,
|
||||||
|
"TriggerDeglitchMS": 1000
|
||||||
|
}
|
||||||
|
}
|
|
@ -314,3 +314,11 @@ $(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_shippi
|
||||||
else
|
else
|
||||||
$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_factory.mk)
|
$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_factory.mk)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Battery Mitigation Config
|
||||||
|
ifeq (,$(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH))
|
||||||
|
TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH := device/google/tegu/battery_mitigation
|
||||||
|
endif
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
$(TARGET_VENDOR_BATTERY_MITIGATION_CONFIG_PATH)/bm_config_tegu.json:$(TARGET_COPY_OUT_VENDOR)/etc/bm_config.json
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue