|
【Android】
关于Android11 开treble后power hal build fail的问题
发表于 2022-1-5 22:33:33
浏览:6324
|
回复:6
打印
只看该作者
[复制链接]
楼主
最近在Android11上遇到如下build fail:
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] android.hardware.power:
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] required: IPower/default
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] provided: @1.0::IPower/default
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554]
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] android.hardware.power@1.0::IPower/default
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] Suggested fix:
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] 1. Update deprecated HALs to the latest version.
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] 2. Check for any typos in device manifest or framework compatibility matrices with FCM version >= 5.
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] 3. For new platform HALs, add them to any framework compatibility matrix with FCM version >= 5 where applicable.
checkvintf E 01-05 22:30:48 334 334 check_vintf.cpp:554] 4. For device-specific HALs, add to DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE or DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE.: Success
INCOMPATIBLE
问题:
1.系统的兼容性矩阵中确实是如下定义:
<hal format="aidl" optional="false">
<name>android.hardware.power</name>
<interface>
<name>IPower</name>
<instance>default</instance>
</interface>
</hal>
2.manifest.xml中定义是:
<hal format="hidl">
<name>android.hardware.power</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IPower</name>
<instance>default</instance>
</interface>
</hal>
这个地方又不可能不提供版本??所以这是什么问题? |
|