- hal service
1)增加声明xml文件
xml
<manifest version="1.0" type="framework">
<hal format="aidl">
<name>com.test.hal_service</name>
<interface>
<name>IHalServiceInterface</name>
<instance>default</instance>
</interface>
</hal>
</manifest>
2)在Android.bp中增加对应的编译选项
编译后文件保存的位置:(/etc ---> /system/etc)
/etc/vintf/manifest/hal_service.xml
/system/etc/vintf/manifest/hal_service.xml
vintf_fragments: ["rc/hal_service.xml"]
- 在系统侧的framework compatibility matrix中增加对应的服务声明
/etc/vintf/compatibility_matrix.5.xml (或者同目录下其他matrix声明文件)
xml
<hal format="aidl" optional="true">
<name>com.test.hal_service</name>
<interface>
<name>IHalServiceInterface</name>
<instance>default</instance>
</interface>
</hal>
vendor/qcom/opensource/core-utils/vendor_framework_compatibility_matrix.xml
hardware/interfaces/compatibility_matrices/compatibility_matrix.5.xml