diff options
author | Wei Wang <wvw@google.com> | 2021-05-27 16:11:07 -0700 |
---|---|---|
committer | Wei Wang <wvw@google.com> | 2021-05-27 16:15:13 -0700 |
commit | d4eda31473cc64a154ae6725a14295790ae72db6 (patch) | |
tree | 17d857322605751c48efbcefb25bb0ea7c9eaf80 /thermal | |
parent | 37980cf7f117d4349323be00814931a8369b58ec (diff) | |
download | pixel-d4eda31473cc64a154ae6725a14295790ae72db6.tar.gz |
Add a new trigger after "property:vendor.thermal.link_ready=1"
so that per-device init.rc can have
"property:vendor.thermal.link_ready=1" to setup proper permissions
Test: Build and boot
Bug: 189280804
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: I047d7191faf5c74ae65d6a871c8eea3e4251c14a
Diffstat (limited to 'thermal')
-rw-r--r-- | thermal/android.hardware.thermal@2.0-service.pixel.rc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/thermal/android.hardware.thermal@2.0-service.pixel.rc b/thermal/android.hardware.thermal@2.0-service.pixel.rc index fce3a6ca..cbcd5681 100644 --- a/thermal/android.hardware.thermal@2.0-service.pixel.rc +++ b/thermal/android.hardware.thermal@2.0-service.pixel.rc @@ -45,6 +45,11 @@ on property:vendor.thermal.link_ready=1 chmod 0660 /dev/thermal/cdev-by-name/fcc/cur_state chown root system /dev/thermal/cdev-by-name/dc_icl/cur_state chmod 0660 /dev/thermal/cdev-by-name/dc_icl/cur_state + # queue the trigger to start thermal-hal and continue execute + # per-device thermal setup "on property:vendor.thermal.link_ready=1" + trigger enable-thermal-hal + +on enable-thermal-hal start vendor.thermal-hal-2-0 service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.pixel |