check_vintf compatibility_matrix version问题

  • Post author:
  • Post category:其他


增加HIDL接口manifest后编译报错如下:

FAILED: out/target/product/xxxxxx/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log

checkvintf E 08-10 01:57:34 27721 27721 check_vintf.cpp:554] android.hardware.gnss@1.0::IGnss/default is deprecated in compatibility matrix at FCM Version 5; it should not be served.

checkvintf E 08-10 01:57:34 27721 27721 check_vintf.cpp:554] android.hardware.gnss@1.0::IGnss/default is deprecated in compatibility matrix at FCM Version 5; it should not be served.

checkvintf E 08-10 01:57:34 27721 27721 check_vintf.cpp:554] android.hardware.gnss@1.0::IGnss/default is deprecated in compatibility matrix at FCM Version 5; it should not be served.

checkvintf E 08-10 01:57:34 27721 27721 check_vintf.cpp:554] android.hardware.gnss@1.0::IGnss/default is deprecated in compatibility matrix at FCM Version 5; it should not be served.: Success

INCOMPATIBLE

根据kernel版本,用的是compatibility_matrix.5.xml (FCM Version 5)

而compatibility_matrix.5.xml中定义的gnss version是2.0-1

<hal format="hidl" optional="true">
    <name>android.hardware.gnss</name>
    <version>2.0-1</version>
    <interface>
        <name>IGnss</name>
        <instance>default</instance>
    </interface>
</hal>

有两种解决方法:

1:把gnss service改成用2.0或2.1的版本

2:把compatibility_matrix.5.xml 中2.0-1 改成1.0



版权声明:本文为TaviaHong原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。