Android Hal service compatibility matrix

  1. 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"]
  1. 在系统侧的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

相关推荐
来来走走13 分钟前
Android开发(Kotlin) LiveData的基本了解
android·开发语言·kotlin
b***748819 分钟前
前端GraphQL案例
前端·后端·graphql
云飞云共享云桌面20 分钟前
无需配置传统电脑——智能装备工厂10个SolidWorks共享一台工作站
运维·服务器·前端·网络·算法·电脑
ganshenml42 分钟前
sed 流编辑器在前端部署中的作用
前端·编辑器
。puppy1 小时前
MySQL 远程登录实验:通过 IP 地址跨机器连接实战指南
android·adb
0***K8921 小时前
Vue数据挖掘开发
前端·javascript·vue.js
蓝胖子的多啦A梦2 小时前
ElementUI表格错位修复技巧
前端·css·vue.js·el-table表格错位
dongdeaiziji2 小时前
深入理解 Kotlin 中的构造方法
android·kotlin
_OP_CHEN2 小时前
前端开发实战深度解析:(一)认识前端和 HTML 与开发环境的搭建
前端·vscode·html·web开发·前端开发
xiAo_Ju2 小时前
iOS一个Fancy UI的Tricky实现
前端·ios