Merge "Updated keyguard to be robust against fpm" into tm-d1-dev am: 2da48dba91
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19347058 Change-Id: Ic627d03c89df6a4b088f614fc0ba1ab57db5bdb0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -751,6 +751,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
|
|
||||||
private void handleFingerprintAuthFailed() {
|
private void handleFingerprintAuthFailed() {
|
||||||
Assert.isMainThread();
|
Assert.isMainThread();
|
||||||
|
if (mHandler.hasCallbacks(mFpCancelNotReceived)) {
|
||||||
|
Log.d(TAG, "handleFingerprintAuthFailed()"
|
||||||
|
+ " triggered while waiting for cancellation, removing watchdog");
|
||||||
|
mHandler.removeCallbacks(mFpCancelNotReceived);
|
||||||
|
}
|
||||||
for (int i = 0; i < mCallbacks.size(); i++) {
|
for (int i = 0; i < mCallbacks.size(); i++) {
|
||||||
KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
|
KeyguardUpdateMonitorCallback cb = mCallbacks.get(i).get();
|
||||||
if (cb != null) {
|
if (cb != null) {
|
||||||
@@ -781,6 +786,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
|
|||||||
|
|
||||||
private void handleFingerprintAuthenticated(int authUserId, boolean isStrongBiometric) {
|
private void handleFingerprintAuthenticated(int authUserId, boolean isStrongBiometric) {
|
||||||
Trace.beginSection("KeyGuardUpdateMonitor#handlerFingerPrintAuthenticated");
|
Trace.beginSection("KeyGuardUpdateMonitor#handlerFingerPrintAuthenticated");
|
||||||
|
if (mHandler.hasCallbacks(mFpCancelNotReceived)) {
|
||||||
|
Log.d(TAG, "handleFingerprintAuthenticated()"
|
||||||
|
+ " triggered while waiting for cancellation, removing watchdog");
|
||||||
|
mHandler.removeCallbacks(mFpCancelNotReceived);
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
final int userId;
|
final int userId;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user