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

相关推荐
lichenyang45311 分钟前
HarmonyOS HMRouter 接入记录:从普通 Tab Demo 到路由跳转
前端
木斯佳32 分钟前
前端八股文面经大全:腾讯WXG暑期前端一面(2026-05-15)·面经深度解析
前端·面试·笔试
simplepeng44 分钟前
我们都知道但总是忽略的5个Jetpack Compose细节
android·android jetpack
canonical_entropy1 小时前
NOP Chaos Flux 架构演变史:从 AMIS 重写到现代低代码运行时
前端·aigc·ai编程
刮风那天1 小时前
Android 如何提高进程优先级避免被查杀?
android
张元清1 小时前
useEffect 之外:专门处理异步、深比较和 SSR 的 Effect Hook
前端·javascript·面试
小小小小宇2 小时前
前端双Token机制无感刷新(二)
前端
zhangxingchao2 小时前
AI Agent 基础问题系统整理:从 LangChain、LangGraph、MCP 到 Agent 架构、记忆、工具调用与评估体系
前端·人工智能·后端
Moment2 小时前
AI 为什么总喜欢写防御性代码?
前端·后端·面试
浑手营销2 小时前
浑手科技案例分享:133个精准询盘短视频玩法
前端·人工智能·科技