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

Commit ff09044d authored by Joshua McCloskey's avatar Joshua McCloskey Committed by Beverly Tai
Browse files

Removed lockdown check for detectFingerprint

Test: Verified the api can now be called when the phone is not locked
down.
Bug: 245778799

Change-Id: I0f0ee0d33312efc4b27fe6d525c7500d366fb3dc
Merged-In: I0f0ee0d33312efc4b27fe6d525c7500d366fb3dc
parent 83afbfcf
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -452,13 +452,6 @@ public class FingerprintService extends SystemService {
                return -1;
            }

            if (!Utils.isUserEncryptedOrLockdown(mLockPatternUtils, userId)) {
                // If this happens, something in KeyguardUpdateMonitor is wrong. This should only
                // ever be invoked when the user is encrypted or lockdown.
                Slog.e(TAG, "detectFingerprint invoked when user is not encrypted or lockdown");
                return -1;
            }

            final Pair<Integer, ServiceProvider> provider = getSingleProvider();
            if (provider == null) {
                Slog.w(TAG, "Null provider for detectFingerprint");