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