HIDL学习笔记_4——使用总结

1. 在修改.hal文件时需要同时更新current.txt文件中的hash,触发hash更新的方法如下

//若对下面文件产生hash:
source/vendor/mom/hardware/interface/performance/1.0/IPerformance.hal
package vendor.mom.hardware.performance@1.0; //其内部

//使用:
source$ ./out/host/linux-x86/bin/hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport -r 
vendor.mom.hardware:vendor/mom/hardware/interface vendor.mom.hardware.performance@1.0

参考:https://blog.csdn.net/m0_37905055/article/details/112320898

posted on 2022-07-19 14:25  Hello-World3  阅读(315)  评论(0编辑  收藏  举报

导航