在安卓中BiometricPrompt提示已替换已弃用的FingerprintManager.FingerPrintManager有两个函数hasEnrolledFingerprints()和isHardwareDetected()来检查设备是否支持指纹以及用户是否注册了任何指纹认证。对于新的BiometricPrompt,似乎没有任何功能可以在不尝试提示BiometricPrompt的情况下进行检查。有一个BiometricPrompt.AuthenticationCallback.onAuthenticationError(被调用,错误代码指示设备是否支持生物识别以及用户是否注册了