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

ERROR: android.hardware.biometrics.fingerprint@2.1::types has hash d4f65b07e8fc2109fa4aa66ee5f4e77f35e12dedcf8d034e3b545c2866ef171e which does not match hash on record. This interface has been frozen. Do not change it!

WARNING: Skipping android.hardware.biometrics.fingerprint@2.2::IBiometricsFingerprintClientCallback because it could not be found or parsed or android.hardware.biometrics.fingerprint@2.2 doesn't pass all requirements.

ERROR: android.hardware.biometrics.fingerprint@2.1::types has hash d4f65b07e8fc2109fa4aa66ee5f4e77f35e12dedcf8d034e3b545c2866ef171e which does not match hash on record. This interface has been frozen. Do not change it!

WARNING: Skipping android.hardware.biometrics.fingerprint@2.2::IBiometricsFingerprint because it could not be found or parsed or android.hardware.biometrics.fingerprint@2.2 doesn't pass all requirements.

WARNING: Skipping android.hardware.biometrics.fingerprint@2.2::IBiometricsFingerprintClientCallback because it could not be found or parsed or android.hardware.biometrics.fingerprint@2.2 doesn't pass all requirements.

ERROR: android.hardware.biometrics.fingerprint@2.2 doesn't pass minor version uprev requirement. Requires at least one interface to extend an interface with the same name from android.hardware.biometrics.fingerprint@2.1.

ERROR: Could not parse android.hardware.biometrics.fingerprint@2.2::types. Aborting.

1.替换hash值

d4f65b07e8fc2109fa4aa66ee5f4e77f35e12dedcf8d034e3b545c2866ef171e 替换到

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

android.hardware.biometrics.fingerprint@2.1

error: VNDK library: android.hardware.biometrics.fingerprint@2.1's ABI has EXTENDING CHANGES Please check compatibility report at: out/soong/.intermediates/hardware/interfaces/biometrics/fingerprint/2.1/android.hardware.biometrics.fingerprint@2.1/android_vendor.30_arm_armv8-a_cortex-a53_shared/android.hardware.biometrics.fingerprint@2.1.so.abidiff

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

error: Please update ABI references with: $ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l android.hardware.biometrics.fingerprint@2.1

2.按照上述执行更新

server@server:~/4TB/R0$ ANDROID_BUILD_TOP/development/vndk/tools/header-checker/utils/create_reference_dumps.py -l android.hardware.biometrics.fingerprint@2.1

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 android.hardware.biometrics.fingerprint@2.1**-product full_xxxxxx**
development/vndk/tools/header-checker/utils/create_reference_dumps.py -l android.hardware.biometrics.fingerprint@2.2 -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博客

相关推荐
我是真爱学JAVA24 分钟前
第四章 类和对象 课后训练(1)
java·开发语言·算法
Qiuner34 分钟前
【机器学习】分类与回归——掌握两大核心算法的区别与应用
算法·机器学习·分类
oufoc1 小时前
第J1周:ResNet-50算法实战与解析
神经网络·算法·tensorflow
Youkiup2 小时前
【重构数组,形成排列的最大长度】
算法
星夜孤帆2 小时前
LeetCode之图的广度优先搜索
算法·宽度优先
忍界英雄2 小时前
LeetCode: 673.最长子序列的数量 动态规划 时间复杂度O(n*n)
算法·leetcode·动态规划
Renascence.4092 小时前
力扣--649.Dota2参议院
java·数据结构·算法·leetcode
山脚ice2 小时前
【Hot100】LeetCode—62. 不同路径
算法·leetcode·职场和发展
小小工匠2 小时前
加密与安全_ sm-crypto 国密算法sm2、sm3和sm4的Java库
java·算法·安全·sm2·sm3·sm4
陈小唬3 小时前
树形结构构建的两种方式
java·数据库·算法