Merge changes from topic "healthd_deprecate2" into pi-dev

* changes:
  healthd: a.h.health@2.0-service.override removes healthd
  healthd: add healthd.rc
This commit is contained in:
Yifan Hong 2018-04-05 19:30:35 +00:00 committed by Android (Google) Code Review
commit 7498160272
3 changed files with 21 additions and 7 deletions

View file

@ -20,8 +20,8 @@ cc_library_static {
export_header_lib_headers: ["libhealthd_headers"],
}
cc_binary {
name: "android.hardware.health@2.0-service",
cc_defaults {
name: "android.hardware.health@2.0-service_defaults",
init_rc: ["android.hardware.health@2.0-service.rc"],
vendor: true,
relative_install_path: "hw",
@ -54,8 +54,23 @@ cc_binary {
],
}
cc_binary {
name: "android.hardware.health@2.0-service",
defaults: ["android.hardware.health@2.0-service_defaults"],
}
cc_binary {
name: "android.hardware.health@2.0-service.override",
defaults: ["android.hardware.health@2.0-service_defaults"],
overrides: [
"healthd",
],
}
cc_binary {
name: "healthd",
init_rc: ["healthd.rc"],
srcs: [
"HealthServiceHealthd.cpp",
],

4
healthd/healthd.rc Normal file
View file

@ -0,0 +1,4 @@
service healthd /system/bin/healthd
class hal
critical
group root system wakelock

View file

@ -736,11 +736,6 @@ service ueventd /sbin/ueventd
seclabel u:r:ueventd:s0
shutdown critical
service healthd /system/bin/healthd
class hal
critical
group root system wakelock
service console /system/bin/sh
class core
console