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

相关推荐
Be for thing26 分钟前
Android 音频硬件(Codec / 喇叭 / 麦克风)原理 + 功耗与问题定位实战(手机 / 手表通用)
android·学习·智能手机·音视频
吉哥机顶盒刷机28 分钟前
S905L3A/L3AB芯片迎来安卓14新纪元:Sicha移植版固件深度评测与刷机指南
android·经验分享·刷机
一个天蝎座 白勺 程序猿33 分钟前
KingbaseES数据库MySQL兼容性解析:从TCO账本到“傻瓜式“迁移的密码
android·数据库·mysql·kingbasees
Be for thing33 分钟前
Android 存储硬件(RAM/UFS/eMMC)底层原理 + 性能 / 功耗测试实战
android·学习·智能硬件
码农的小菜园36 分钟前
Android架构学习笔记
android·学习·架构
有一个好名字38 分钟前
claude code安装
linux·运维·前端
BIBABULALA1 小时前
Mini Virtual Machine — 可视化虚拟机模拟器(91行)
前端·css·css3
筱璦1 小时前
期货软件开发「启动加载页 / 初始化窗口」
前端·c#·策略模式·期货
风酥糖1 小时前
在Termux中运行Siyuan笔记服务
android·linux·服务器·笔记
只与明月听1 小时前
RAG深入学习之Emabedding
前端·python·面试