thermal: Update init_thermal_config
- Validate for display panel availability only in userdebug builds. - Add check to fall back to wingboard config for charging mode as well. - Move fallback to backup config for proto and wingboard to init rc file. Bug: 338295174 Flag: EXEMPT NDK Test: Local build and verify init_thermal_config and property Change-Id: I4b2db92df1d74be4038e256ab6e25ee616c5feb6
This commit is contained in:
parent
2898c2efd6
commit
d406d43bcb
2 changed files with 16 additions and 39 deletions
|
@ -57,10 +57,22 @@ service init_thermal_config /vendor/bin/init_thermal_config
|
|||
disabled
|
||||
oneshot
|
||||
|
||||
on late-init
|
||||
on late-init && property:ro.boot.hardware.revision=PROTO1.0
|
||||
setprop vendor.thermal.config "thermal_info_config_backup.json"
|
||||
|
||||
on late-init && property:ro.boot.hardware.revision=PROTO1.1
|
||||
setprop vendor.thermal.config "thermal_info_config_backup.json"
|
||||
|
||||
on late-init && property:ro.boot.cdt_hwid=0x00060603000100020000000000000000
|
||||
setprop vendor.thermal.config "thermal_info_config_wingboard.json"
|
||||
|
||||
on property:vendor.thermal.config=thermal_info_config_charge.json && property:ro.boot.cdt_hwid=0x00060603000100020000000000000000
|
||||
setprop vendor.thermal.config "thermal_info_config_wingboard.json"
|
||||
|
||||
on late-init && property:ro.debuggable=1
|
||||
start init_thermal_config
|
||||
|
||||
on property:vendor.thermal.config=thermal_info_config_charge
|
||||
on property:vendor.thermal.config=thermal_info_config_charge.json && property:ro.debuggable=1
|
||||
start init_thermal_config
|
||||
|
||||
on property:vendor.thermal.link_ready=1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue