Merge "bm: add mitigation config file" into main
This commit is contained in:
commit
e50b625641
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
|
||||
}
|
||||
}
|
|
@ -366,3 +366,11 @@ $(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_shippi
|
|||
else
|
||||
$(call inherit-product-if-exists, vendor/goodix/udfps/configuration/udfps_factory.mk)
|
||||
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