Android12 指纹HIDL添加选项,替换current.txt的hash值后报错!

ERROR: [email protected]::types has hash d4f65b07e8fc2109fa4aa66ee5f4e77f35e12dedcf8d034e3b545c2866ef171e which does not match hash on record. This interface has been frozen. Do not change it!

WARNING: Skipping [email protected]::IBiometricsFingerprintClientCallback because it could not be found or parsed or [email protected] doesn't pass all requirements.

ERROR: [email protected]::types has hash d4f65b07e8fc2109fa4aa66ee5f4e77f35e12dedcf8d034e3b545c2866ef171e which does not match hash on record. This interface has been frozen. Do not change it!

WARNING: Skipping [email protected]::IBiometricsFingerprint because it could not be found or parsed or [email protected] doesn't pass all requirements.

WARNING: Skipping [email protected]::IBiometricsFingerprintClientCallback because it could not be found or parsed or [email protected] doesn't pass all requirements.

ERROR: [email protected] doesn't pass minor version uprev requirement. Requires at least one interface to extend an interface with the same name from [email protected].

ERROR: Could not parse [email protected]::types. Aborting.

1.替换hash值

d4f65b07e8fc2109fa4aa66ee5f4e77f35e12dedcf8d034e3b545c2866ef171e 替换到

hardware/interface/current.txt里面对应的值

[email protected]

error: VNDK library: [email protected]'s ABI has EXTENDING CHANGES Please check compatibility report at: out/soong/.intermediates/hardware/interfaces/biometrics/fingerprint/2.1/[email protected]/android_vendor.30_arm_armv8-a_cortex-a53_shared/[email protected]

******************************************************

error: Please update ABI references with: $ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l [email protected]

2.按照上述执行更新

server@server:~/4TB/R0$ ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l [email protected]

bash: ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py: No such file or directory

3.方法不对

source build/envsetup.sh

lunch命令 查看系统【一查看系统下的芯片项目应有尽有,对应选择即可】

full_主板芯片名_项目名_eng

full_主板芯片名_项目名_user

full_主板芯片名_项目名_userdebug

我这里使用的是user版本编译;

不用加:ANDROID_BUILD_TOP

development/vndk/tools/header-checker/utils/create_reference_dumps.py -l [email protected]**-product full_xxxxxx**
development/vndk/tools/header-checker/utils/create_reference_dumps.py -l [email protected] -product full_xxxxx
不需要-user后缀

编译结束:

msg: Processed 2 libraries in 6.527136981487274 minutes

网上找的千辛万苦,东拼西凑,总算靠自己一步一步的over了

为了解决指纹重复问题;

参考修改:

Android12 指纹录入 添加重复手指以及重复区域消息提示,以及Debug。_m api-stubs-docs-non-updatable-update-current-api-CSDN博客

相关推荐
雾月552 分钟前
LeetCode 1292 元素和小于等于阈值的正方形的最大边长
java·数据结构·算法·leetcode·职场和发展
hnlucky7 分钟前
redis 数据类型新手练习系列——Hash类型
数据库·redis·学习·哈希算法
知来者逆2 小时前
计算机视觉——速度与精度的完美结合的实时目标检测算法RF-DETR详解
图像处理·人工智能·深度学习·算法·目标检测·计算机视觉·rf-detr
阿让啊2 小时前
C语言中操作字节的某一位
c语言·开发语言·数据结构·单片机·算法
এ᭄画画的北北2 小时前
力扣-160.相交链表
算法·leetcode·链表
爱研究的小陈3 小时前
Day 3:数学基础回顾——线性代数与概率论在AI中的核心作用
算法
渭雨轻尘_学习计算机ing3 小时前
二叉树的最大宽度计算
算法·面试
BB_CC_DD3 小时前
四. 以Annoy算法建树的方式聚类清洗图像数据集,一次建树,无限次聚类搜索,提升聚类搜索效率。(附完整代码)
深度学习·算法·聚类
梁下轻语的秋缘5 小时前
每日c/c++题 备战蓝桥杯 ([洛谷 P1226] 快速幂求模题解)
c++·算法·蓝桥杯
CODE_RabbitV5 小时前
【深度强化学习 DRL 快速实践】逆向强化学习算法 (IRL)
算法