Detecting biometric on pixel 4xl returns BIOMETRIC_ERROR_HW_UNAVAILABLE

Testing for biometrics on a pixel 4XL (Android Q) fails returning BIOMETRIC_ERROR_HW_UNAVAILABLE. I have setup face recognition Android manifest file <uses-permission android:name=”android.permission.USE_BIOMETRIC” /> gradle dependancies dependencies { implementation “androidx.biometric:biometric:1.0.1” } Test code private boolean setBIOSetup() { BiometricManager biometricManager = BiometricManager.from(getActivity()); switch (biometricManager.canAuthenticate()) { case BiometricManager.BIOMETRIC_SUCCESS: return true; case BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE: Toast.makeText(getActivity(), “No biometric hardware installed”, Toast.LENGTH_LONG).show();…

Details