android_device_xiaomi_sm835.../rootdir/etc/init.mi_thermald.rc
Bruno Martins 4aca996701 sm8350-common: Move to QTI health AIDL service
The health AIDL HAL service provides functionalities of charger,
therefore system charger at /system/bin/charger is deprecated.
On top of that, QTI health AIDL HAL service enables suspend by
default, the equivalent of setting ro.charger.enable_suspend
for legacy charger.

Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9
2024-01-26 15:57:47 +01:00

13 lines
310 B
Plaintext

on property:init.svc.vendor.charger=running
wait /sys/class/power_supply/usb/type
start mi_thermald
on boot
wait /sys/class/power_supply/usb/type
start mi_thermald
service mi_thermald /system/vendor/bin/mi_thermald
class main
user root
group system
seclabel u:r:mi_thermald:s0