fwk compat mat: add health@2.0

framework & storaged talks to health@2.0 HAL prior to healthd.

If the vendor service for health@2.0 is missing, framework / storaged
falls back and talks to healthd. Hence health@2.0 HAL is optional.

A follow-up change is needed to require launch devices to launch
with health@2.0 (i.e. current.xml says optional=false).

Bug: 62229583
Test: builds (assemble_vintf passes)

Change-Id: I49caca2b683e928f25e6f3cac2e2a8396b50f46a
This commit is contained in:
Yifan Hong 2017-09-27 16:39:41 -07:00
parent 23dbc0f5ab
commit cb9d32c0b6
4 changed files with 32 additions and 0 deletions

View file

@ -163,6 +163,14 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.health</name>
<version>2.0</version>
<interface>
<name>IHealth</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.ir</name>
<version>1.0</version>

View file

@ -163,6 +163,14 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.health</name>
<version>2.0</version>
<interface>
<name>IHealth</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.ir</name>
<version>1.0</version>

View file

@ -163,6 +163,14 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.health</name>
<version>2.0</version>
<interface>
<name>IHealth</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.ir</name>
<version>1.0</version>

View file

@ -163,6 +163,14 @@
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.health</name>
<version>2.0</version>
<interface>
<name>IHealth</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.ir</name>
<version>1.0</version>