在我的Android系统中,有两个独立的健康进程:
$ adb shell "ps -ef | grep health"
root 3535 1 3 14:33:18 ? 00:00:00 healthd
system 3548 1 5 14:33:18 ? 00:00:00 android.hardware.health@2.0-service.imx它们都使用来自system/core/healthd和hardware/interfaces/health/2.0/default的相同代码,但只有android.hardware.health@2.0-service.imx使用来自vendor/nxp-opensource/imx/health的代码。
healthd的构建/运行?更新:
这两个服务的.rc文件不同:
smarc_mx8mq:/etc/init # cat healthd.rc
service healthd /system/bin/healthd
class hal
critical
group root system wakelock
smarc_mx8mq:/etc/init # cat /vendor/etc/init/android.hardware.health@2.0-service.imx.rc
service vendor.health-hal-2-0 /vendor/bin/hw/android.hardware.health@2.0-service.imx
class hal
user system
group system
capabilities WAKE_ALARM
file /dev/kmsg w从构建的系统中删除/etc/init/healthd.rc会导致普通健康状态无法启动。我还没有注意到任何不良影响。
发布于 2021-10-19 07:37:33
healthd是1.0 hal版本,它可以被删除。参考文献:祛除健康
https://stackoverflow.com/questions/69585872
复制相似问题