healthd use vintf_fragments

This encourages device manufacturers to use
service.override over service and to remove healthd
on device, because it is one less step to do.

Test: make VINTF metadata
Bug: 66917623
Bug: 77541952
Bug: 79107699
Change-Id: I1cac3570f64a0308b1f2d465205f98a97e4b4320
Merged-In: I1cac3570f64a0308b1f2d465205f98a97e4b4320
(cherry picked from commit 2db565d75f)
This commit is contained in:
Yifan Hong 2018-04-27 15:03:32 -07:00
parent 6705b6c7cd
commit 3a39eec307
2 changed files with 14 additions and 9 deletions

View file

@ -59,15 +59,6 @@ cc_binary {
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"],
@ -101,4 +92,7 @@ cc_binary {
"android.hardware.health@2.0",
],
vintf_fragments: [
"manifest_healthd.xml"
],
}

View file

@ -0,0 +1,11 @@
<manifest version="1.0" type="framework">
<hal>
<name>android.hardware.health</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IHealth</name>
<instance>backup</instance>
</interface>
</hal>
</manifest>