问题描述
04-03 12:55:16 I/ModuleListener: [9/9] VtsTrebleVendorVintfTest#DeviceManifest/SingleManifestTest.InterfacesAreReleased/0_32bit fail:
test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:51
Failed
vendor.mediatek.hardware.presence@1.0::IPresence not available.
test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:51
Failed
vendor.mediatek.hardware.presence@1.0::IPresence not available.
解决方案
这类报错的原因是,VTS工具检测到此HIDL service alive,但是此service 对应的HIDL在manifest中没有定义
在Q版我們有對Presence做了refactor, Presence hidl service是不會被使用的,
所以可以將以下這兩個file中的
/device/mediatek/vendor/common/device.mk
/device/mediatek/common/device.mk
這三行給拔掉
- volte_uce_ua
- vendor.mediatek.hardware.presence@1.0.so
- DEVICE_MANIFEST_FILE += $(LOCAL_PATH)/project_manifest/manifest_presence.xm
以及移除掉以下這兩個file:
- /device/mediatek/vendor/common/project_manifest/manifest_presence.xml
- /device/mediatek/common/project_manifest/manifest_presence.xml