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

Commit 4a66bbf7 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 5f96eb0c: am 6fdb85d3: am 120fc2c7: Merge "Disable fingerprint when...

am 5f96eb0c: am 6fdb85d3: am 120fc2c7: Merge "Disable fingerprint when remotely reset by DPM" into mnc-dev

* commit '5f96eb0c':
  Disable fingerprint when remotely reset by DPM
parents e80dbaeb 5f96eb0c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -557,6 +557,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {

    private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {

        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            if (DEBUG) Log.d(TAG, "received broadcast " + action);
@@ -610,6 +611,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {

    private final BroadcastReceiver mBroadcastAllReceiver = new BroadcastReceiver() {

        @Override
        public void onReceive(Context context, Intent intent) {
            final String action = intent.getAction();
            if (AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED.equals(action)) {
@@ -724,6 +726,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
            return new SimData(state, slotId, subId);
        }

        @Override
        public String toString() {
            return "SimData{state=" + simState + ",slotId=" + slotId + ",subId=" + subId + "}";
        }
@@ -939,7 +942,9 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
    }

    private boolean shouldListenForFingerprint() {
        return mKeyguardIsVisible && !mSwitchingUser;
        return mKeyguardIsVisible && !mSwitchingUser &&
                mTrustManager.hasUserAuthenticatedSinceBoot(
                        ActivityManager.getCurrentUser());
    }

    private void startListeningForFingerprint() {
+6 −0
Original line number Diff line number Diff line
@@ -579,8 +579,14 @@ public class TrustManagerService extends SystemService {
    private void clearUserHasAuthenticated(int userId) {
        if (userId == UserHandle.USER_ALL) {
            mUserHasAuthenticated.clear();
            synchronized (mUserHasAuthenticatedSinceBoot) {
                mUserHasAuthenticatedSinceBoot.clear();
            }
        } else {
            mUserHasAuthenticated.put(userId, false);
            synchronized (mUserHasAuthenticatedSinceBoot) {
                mUserHasAuthenticatedSinceBoot.put(userId, false);
            }
        }
    }