Loading services/core/java/com/android/server/biometrics/BiometricService.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -653,7 +653,7 @@ public class BiometricService extends SystemService { } } mHandler.post(() -> { mHandler.post(() -> { final Pair<Integer, Integer> result = checkAndGetBiometricModality(callingUserId); final Pair<Integer, Integer> result = checkAndGetBiometricModality(userId); final int modality = result.first; final int modality = result.first; final int error = result.second; final int error = result.second; Loading Loading @@ -950,7 +950,7 @@ public class BiometricService extends SystemService { * {@link BiometricAuthenticator#TYPE_FACE} * {@link BiometricAuthenticator#TYPE_FACE} * and the error containing one of the {@link BiometricConstants} errors. * and the error containing one of the {@link BiometricConstants} errors. */ */ private Pair<Integer, Integer> checkAndGetBiometricModality(int callingUid) { private Pair<Integer, Integer> checkAndGetBiometricModality(int userId) { int modality = TYPE_NONE; int modality = TYPE_NONE; // No biometric features, send error // No biometric features, send error Loading Loading @@ -979,7 +979,7 @@ public class BiometricService extends SystemService { // order. // order. firstHwAvailable = modality; firstHwAvailable = modality; } } if (authenticator.hasEnrolledTemplates(callingUid)) { if (authenticator.hasEnrolledTemplates(userId)) { hasTemplatesEnrolled = true; hasTemplatesEnrolled = true; if (isEnabledForApp(modality)) { if (isEnabledForApp(modality)) { // TODO(b/110907543): When face settings (and other settings) have both a // TODO(b/110907543): When face settings (and other settings) have both a Loading Loading
services/core/java/com/android/server/biometrics/BiometricService.java +3 −3 Original line number Original line Diff line number Diff line Loading @@ -653,7 +653,7 @@ public class BiometricService extends SystemService { } } mHandler.post(() -> { mHandler.post(() -> { final Pair<Integer, Integer> result = checkAndGetBiometricModality(callingUserId); final Pair<Integer, Integer> result = checkAndGetBiometricModality(userId); final int modality = result.first; final int modality = result.first; final int error = result.second; final int error = result.second; Loading Loading @@ -950,7 +950,7 @@ public class BiometricService extends SystemService { * {@link BiometricAuthenticator#TYPE_FACE} * {@link BiometricAuthenticator#TYPE_FACE} * and the error containing one of the {@link BiometricConstants} errors. * and the error containing one of the {@link BiometricConstants} errors. */ */ private Pair<Integer, Integer> checkAndGetBiometricModality(int callingUid) { private Pair<Integer, Integer> checkAndGetBiometricModality(int userId) { int modality = TYPE_NONE; int modality = TYPE_NONE; // No biometric features, send error // No biometric features, send error Loading Loading @@ -979,7 +979,7 @@ public class BiometricService extends SystemService { // order. // order. firstHwAvailable = modality; firstHwAvailable = modality; } } if (authenticator.hasEnrolledTemplates(callingUid)) { if (authenticator.hasEnrolledTemplates(userId)) { hasTemplatesEnrolled = true; hasTemplatesEnrolled = true; if (isEnabledForApp(modality)) { if (isEnabledForApp(modality)) { // TODO(b/110907543): When face settings (and other settings) have both a // TODO(b/110907543): When face settings (and other settings) have both a Loading