华为 phone 在使用图库时出现生物识别问题

Huawei phone showing a biometric problem when using gallery

我正在从代码打开图库到 select 一张照片,当返回到我的应用程序时,我收到以下错误:

2020-05-24 13:06:41.408 1767-1767/? E/AuthenticationService: Failed to get biometric interface NoSuchElementException: 
    java.util.NoSuchElementException
        at android.os.HwBinder.getService(Native Method)
        at android.os.HwBinder.getService(HwBinder.java:91)
        at vendor.huawei.hardware.biometrics.fingerprint.V2_1.IExtBiometricsFingerprint.getService(IExtBiometricsFingerprint.java:48)
        at vendor.huawei.hardware.biometrics.fingerprint.V2_1.IExtBiometricsFingerprint.getService(IExtBiometricsFingerprint.java:52)
        at com.huawei.systemserver.securitymgr.AuthenticationServiceImpl.getFingerprintDaemonEx(AuthenticationServiceImpl.java:1483)
        at com.huawei.systemserver.securitymgr.AuthenticationServiceImpl.sendCmdToHal(AuthenticationServiceImpl.java:1502)
        at com.huawei.systemserver.securitymgr.AuthenticationServiceImpl.se_native_NavigationAFDDFDSwitch(AuthenticationServiceImpl.java:1344)
        at com.huawei.systemserver.securitymgr.AuthenticationServiceImpl.switchAFDDFD(AuthenticationServiceImpl.java:1453)
        at com.huawei.systemserver.securitymgr.AuthenticationServiceImpl.access0(AuthenticationServiceImpl.java:59)
        at com.huawei.systemserver.securitymgr.AuthenticationServiceImpl$SettingsObserver.onChange(AuthenticationServiceImpl.java:1394)
        at android.database.ContentObserver.onChange(ContentObserver.java:130)
        at android.database.ContentObserver.onChange(ContentObserver.java:145)
        at android.database.ContentObserver$NotificationRunnable.run(ContentObserver.java:216)
        at android.os.Handler.handleCallback(Handler.java:907)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7625)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
2020-05-24 13:06:41.408 1767-1767/? W/AuthenticationService: fingerprint HIDL not available
2020-05-24 13:06:41.409 1767-1767/? E/AuthenticationService: Fingerprintd is not available!

您知道可能的原因吗?

我看不到 hidl 进程。 请检查您的phone是否支持指纹识别。

所以显然问题不是根本原因,而是原始错误的(令人困惑的)结果,这是由我尝试打开照片库的方式引起的,复制粘贴 google 中的其他片段已解决问题。