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

Commit 7e141fb6 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Improve AuthService logging

Bug: 150014844

Test: Logs are seen
Change-Id: I51560dfcb3b1bc6c13e344b7d68742bb27a10564
parent 0f598aa9
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -202,8 +202,7 @@ public class AuthService extends SystemService {

            // Only allow internal clients to call canAuthenticate with a different userId.
            final int callingUserId = UserHandle.getCallingUserId();
            Slog.d(TAG, "canAuthenticate, userId: " + userId + ", callingUserId: " + callingUserId
                    + ", authenticators: " + authenticators);

            if (userId != callingUserId) {
                checkInternalPermission();
            } else {
@@ -212,8 +211,14 @@ public class AuthService extends SystemService {

            final long identity = Binder.clearCallingIdentity();
            try {
                return mBiometricService.canAuthenticate(
                final int result = mBiometricService.canAuthenticate(
                        opPackageName, userId, callingUserId, authenticators);
                Slog.d(TAG, "canAuthenticate"
                        + ", userId: " + userId
                        + ", callingUserId: " + callingUserId
                        + ", authenticators: " + authenticators
                        + ", result: " + result);
                return result;
            } finally {
                Binder.restoreCallingIdentity(identity);
            }