Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4c593cc authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Add logs when addAuthToken is invoked

Bug: 184804041
Test: Builds
Change-Id: I1eea05f8c7f45bb96790119c4b14bf436909af18
parent fcfa35e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -645,7 +645,8 @@ public final class AuthSession implements IBinder.DeathRecipient {
                case BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRMED:
                case BiometricPrompt.DISMISSED_REASON_BIOMETRIC_CONFIRM_NOT_REQUIRED:
                    if (mTokenEscrow != null) {
                        mKeyStore.addAuthToken(mTokenEscrow);
                        final int result = mKeyStore.addAuthToken(mTokenEscrow);
                        Slog.d(TAG, "addAuthToken: " + result);
                    } else {
                        Slog.e(TAG, "mTokenEscrow is null");
                    }
+2 −1
Original line number Diff line number Diff line
@@ -229,7 +229,8 @@ public abstract class AuthenticationClient<T> extends AcquisitionClient<T>
                            getTargetUserId(), mIsStrongBiometric);
                } else if (!isBiometricPrompt() && listener != null) {
                    if (mIsStrongBiometric) {
                        KeyStore.getInstance().addAuthToken(byteToken);
                        final int result = KeyStore.getInstance().addAuthToken(byteToken);
                        Slog.d(TAG, "addAuthToken: " + result);
                    } else {
                        Slog.d(TAG, "Skipping addAuthToken");
                    }