hash值生成
vts 报错
Getting: vendor.nxp.nxpnfc@2.0::INxpNfc/default
test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:81: Failure
Failed
vendor.nxp.nxpnfc@2.0::INxpNfc has an empty hash. This is because it was compiled without being frozen in a corresponding current.txt file.
DeviceManifest/SingleHidlTest#InterfaceIsReleased/vendor_nxp_nxpnfclegacy_1_0__INxpNfcLegacy_default_63
fail
Getting: vendor.nxp.nxpnfclegacy@1.0::INxpNfcLegacy/default
test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:81: Failure
Failed
vendor.nxp.nxpnfclegacy@1.0::INxpNfcLegacy has an empty hash. This is because it was compiled without being frozen in a corresponding current.txt file.
解法:我们只需要找到对应的HIDL.使用以下命令,生成hash 值.添加到对应的current.txt 中即可
hidl-gen -L hash -r vendor.nxp.nxpnfclegacy:hardware/nxp/nfc/pn8x/extns/intf/nxpnfclegacy -r android.hardware:hard