Return correct error when HW there is no biometric hardware

Devices that have no biometric hardware should still get the
BIOMETRIC_ERROR_HW_NOT_PRESENT error. Currently they get the
BIOMETRIC_ERROR_HW_UNAVAILABLE error which is slightly wrong.

Fixes: 119109074

Test: Builds
Change-Id: I32134a35fd2844bc6a4a64ded9695ae596496ef2
This commit is contained in:
Kevin Chyn
2018-11-06 17:11:06 -08:00
parent b95e7b7bc2
commit e739daf2e8
3 changed files with 34 additions and 8 deletions

View File

@@ -1619,7 +1619,7 @@ public final class SystemServer {
if (hasFeatureFace || hasFeatureIris || hasFeatureFingerprint) {
// Start this service after all biometric services.
traceBeginAndSlog("StartBiometricPromptService");
traceBeginAndSlog("StartBiometricService");
mSystemServiceManager.startService(BiometricService.class);
traceEnd();
}