当前位置:   article > 正文

android编译错误FCM_the following instances are in the device manifest

the following instances are in the device manifest but not specified in fram

android编译报错

  1. ed_vendor_manifest.xml"
  2. Error: The following instances are in the device manifest but not specified in framework compatibility matrix:
  3. com.fingerprints.extension@2.0::IFingerprintAuthenticator/default
  4. com.fingerprints.extension@2.0::IFingerprintCalibration/default
  5. com.fingerprints.extension@2.0::IFingerprintEngineering/default
  6. com.fingerprints.extension@2.0::IFingerprintNavigation/default
  7. com.fingerprints.extension@2.0::IFingerprintRecalibration/default
  8. com.fingerprints.extension@2.0::IFingerprintSenseTouch/default
  9. com.fingerprints.extension@2.0::IFingerprintSensorTest/default
  10. vendor.dolby.hardware.dms@2.0::IDms/default
  11. vendor.sw.swfingerprint@2.0::ISwfingerprint/default
  12. Suggested fix:
  13. 1. Check for any typos in device manifest or framework compatibility matrices with FCM version >= 2.
  14. 2. Add them to any framework compatibility matrix with FCM version >= 2 where applicable.
  15. 3. Add them to DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE or DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE.
  16. 10:39:53 ninja failed with: exit status 1
  17. #### failed to build some targets (11:08 (mm:ss)) ####

1.在AP/device/qcom/msm8937_64/manifest.xml文件下新增

  1. <hal format="hidl">
  2. <name>com.fingerprints.extension</name>
  3. <transport>hwbinder</transport>
  4. <version>1.0</version>
  5. <interface>
  6. <name>IFingerprintSensorTest</name>
  7. <instance>default</instance>
  8. </interface>
  9. <interface>
  10. <name>IFingerprintEngineering</name>
  11. <instance>default</instance>
  12. </interface>
  13. <interface>
  14. <name>IFingerprintAuthenticator</name>
  15. <instance>default</instance>
  16. </interface>
  17. <interface>
  18. <name>IFingerprintCalibration</name>
  19. <instance>default</instance>
  20. </interface>
  21. <interface>
  22. <name>IFingerprintNavigation</name>
  23. <instance>default</instance>
  24. </interface>
  25. <interface>
  26. <name>IFingerprintRecalibration</name>
  27. <instance>default</instance>
  28. </interface>
  29. <interface>
  30. <name>IFingerprintSenseTouch</name>
  31. <instance>default</instance>
  32. </interface>
  33. </hal>

2. 然后编译

make vendorimage

报错

 

 原因分析

(1)通过报错信息out/target/product/msm8937_64/verified_assembled_vendor_manifest.xml这个文件中没有com.fingerprints.extension,说明没有对应的配置

(2)由于在AP/device/qcom/msm8937_64/manifest.xml添加了框架兼容性矩阵FCM,说明verified_assembled_vendor_manifest.xml中的配置项com.fingerprints.extension来自于其他文件的解析,经过搜索发现,没有在AP/hardware/interfaces/compatibility_matrices/compatibility_matrix.3.xml下添加与之对应的FCM,需要在文件对应位置AP/hardware/interfaces/compatibility_matrices/compatibility_matrix.3.xml新增

  1. <name>com.fingerprints.extension</name>
  2. <version>1.0</version>
  3. <interface>
  4. <name>IFingerprintSensorTest</name>
  5. <instance>default</instance>
  6. </interface>
  7. <interface>
  8. <name>IFingerprintEngineering</name>
  9. <instance>default</instance>
  10. </interface>
  11. <interface>
  12. <name>IFingerprintAuthenticator</name>
  13. <instance>default</instance>
  14. </interface>
  15. <interface>
  16. <name>IFingerprintCalibration</name>
  17. <instance>default</instance>
  18. </interface>
  19. <interface>
  20. <name>IFingerprintNavigation</name>
  21. <instance>default</instance>
  22. </interface>
  23. <interface>
  24. <name>IFingerprintRecalibration</name>
  25. <instance>default</instance>
  26. </interface>
  27. <interface>
  28. <name>IFingerprintSenseTouch</name>
  29. <instance>default</instance>
  30. </interface>
  31. </hal>
  32. <hal format="hidl">
  33. <name>vendor.sw.swfingerprint</name>
  34. <transport>hwbinder</transport>
  35. <version>1.0</version>
  36. <interface>
  37. <name>ISwfingerprint</name>
  38. <instance>default</instance>
  39. </interface>
  40. </hal>
  41. <hal format="hidl" optional="false">

3.再次编译make vendorimage

 

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/255986
推荐阅读
相关标签
  

闽ICP备14008679号