本文主要是介绍Android Hal service compatibility matrix,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
- 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
这篇关于Android Hal service compatibility matrix的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!