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 Change-Id: I1cac3570f64a0308b1f2d465205f98a97e4b4320
This commit is contained in:
parent
2ab7b88a08
commit
2db565d75f
2 changed files with 14 additions and 9 deletions
|
|
@ -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"
|
||||
],
|
||||
}
|
||||
|
|
|
|||
11
healthd/manifest_healthd.xml
Normal file
11
healthd/manifest_healthd.xml
Normal 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>
|
||||
Loading…
Add table
Reference in a new issue