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

相关推荐
鲤鱼_5992 分钟前
记录——前端开发IDEA需要的插件
前端
zhangphil4 分钟前
Android Coil 3 extend ImageRequest‘s custom method/function,Kotlin
android·kotlin
摘星编程7 分钟前
基于 JiuwenSwarm AgentTeam 构建混沌工程自动化实战
前端·chrome
星河漫步Lu15 分钟前
QT6中五步完成Android的环境配置
android·qt
nashane18 分钟前
HarmonyOS 6学习:Web组件与JavaScript交互的三大高频问题与终极解决方案
前端·学习·harmonyos
顾随26 分钟前
(2)达梦数据库--SQl基础实践
前端·数据库·sql
键盘飞行员27 分钟前
Windsurf + Claude 4.7 前端开发:用 ui-ux-pro-max 根治 “AI 味”、实现全站 UI 统一
前端·ui·ai编程
IT_陈寒28 分钟前
被JavaScript的隐式类型转换坑到怀疑人生,记录这次离谱经历
前端·人工智能·后端
梦无矶28 分钟前
快速设置npm默认源为国内全局镜像源
前端·npm·node.js
aichitang202443 分钟前
HTML 实时预览工具
前端·html