From 699b06ae9f4ea26fdf274e694ac37ae70210a0c2 Mon Sep 17 00:00:00 2001 From: Chenyang Zhong Date: Sat, 24 Dec 2022 10:12:31 -0500 Subject: [PATCH] sdm710-common: override pixel thermal HAL service with HAL interfaces Google removed the HAL interfaces in Pixel thermal HAL service after QPR1 [1]. As a result, the pixel thermal HAL on Xiaomi sdm845 devices cannot be started correct at boot. Override it in sdm845-common, and restore the interface definitions. [1] https://android.googlesource.com/platform/hardware/google/pixel/+/be6336211e0005f66116d08104ebd84f92ca4cf7 Signed-off-by: Chenyang Zhong --- rootdir/etc/init.qcom.rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index b393a9f..45dbb6d 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -1121,3 +1121,13 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks socket audio_hw_socket seqpacket 0666 system system onrestart restart audioserver + +service vendor.thermal-hal-2-0 /vendor/bin/hw/android.hardware.thermal@2.0-service.pixel + override + interface android.hardware.thermal@1.0::IThermal default + interface android.hardware.thermal@2.0::IThermal default + class hal + user system + group system + priority -20 + disabled