Android Hal service compatibility matrix

  1. hal service
    1)增加声明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声明文件)
    <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

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-09 15:42:07       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-09 15:42:07       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-09 15:42:07       82 阅读
  4. Python语言-面向对象

    2024-04-09 15:42:07       91 阅读

热门阅读

  1. 在react项目中使用redux和reduxjs/toolkit

    2024-04-09 15:42:07       36 阅读
  2. 常见的行为识别算法及视频处理算法

    2024-04-09 15:42:07       33 阅读
  3. 搞懂了XML!

    2024-04-09 15:42:07       35 阅读
  4. 在Linux删除几天前的日志文件

    2024-04-09 15:42:07       35 阅读
  5. Spring与Spring Boot的区别和联系

    2024-04-09 15:42:07       35 阅读
  6. html自定义禁用状态下且已选中的checkbox

    2024-04-09 15:42:07       33 阅读
  7. 对称排序(蓝桥杯)

    2024-04-09 15:42:07       35 阅读
  8. 软件版权登记的条件

    2024-04-09 15:42:07       37 阅读
  9. Go语言中如何实现多态

    2024-04-09 15:42:07       38 阅读
  10. Qt-Mat转QImage

    2024-04-09 15:42:07       29 阅读
  11. leetcode回忆法-1两数之和

    2024-04-09 15:42:07       27 阅读