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

相关推荐
web守墓人1 小时前
【linux】Mubuntu v1.0.11更新日志
linux·前端
萝卜大战僵尸1 小时前
Android Studio_lx
android·ide·android studio
花花鱼1 小时前
Android studio CMake4.1 找不到了的解决
android·ide·android studio
遇见你...4 小时前
TypeScript
前端·javascript·typescript
Highcharts.js4 小时前
Highcharts Grid 中文站正式上线:表格数据处理的全新选择
前端·javascript·数据库·表格数据·highcharts·可视化图表·企业级图表
懂懂tty8 小时前
CRA 迁移 Rspack(实战)
前端·架构
知行合一。。。8 小时前
Python--05--面向对象(属性,方法)
android·开发语言·python
leobertlan8 小时前
好玩系列:用20元实现快乐保存器
android·人工智能·算法
小码哥_常9 小时前
Kotlin 助力 Android 启动“大提速”
前端
GreenTea9 小时前
AI 时代,工程师的不可替代性在哪里
前端·人工智能·后端