Fix NPE cause by new fingerprint permission check
We no longer send fingerprintid to non-privileged apps. Though Keyguard can get the permission, it does not currently use fingerprint info, so remove the API call. Fixes bug 21040383 Change-Id: I8a9461ed138c368afc75601fe6d4eadc9a8b91c5
This commit is contained in:
@@ -205,7 +205,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
handleScreenTurnedOn();
|
||||
break;
|
||||
case MSG_FINGERPRINT_AUTHENTICATED:
|
||||
handleFingerprintAuthenticated(msg.arg1, msg.arg2);
|
||||
handleFingerprintAuthenticated();
|
||||
break;
|
||||
case MSG_FINGERPRINT_HELP:
|
||||
handleFingerprintHelp(msg.arg1 /* msgId */, (String) msg.obj /* errString */);
|
||||
@@ -348,7 +348,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
handleFingerprintHelp(-1, mContext.getString(R.string.fingerprint_not_recognized));
|
||||
}
|
||||
|
||||
private void handleFingerprintAuthenticated(int fingerId, int groupId) {
|
||||
private void handleFingerprintAuthenticated() {
|
||||
try {
|
||||
final int userId;
|
||||
try {
|
||||
@@ -524,9 +524,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener {
|
||||
|
||||
@Override
|
||||
public void onAuthenticationSucceeded(AuthenticationResult result) {
|
||||
mHandler.obtainMessage(MSG_FINGERPRINT_AUTHENTICATED,
|
||||
result.getFingerprint().getFingerId(),
|
||||
result.getFingerprint().getGroupId()).sendToTarget();
|
||||
mHandler.obtainMessage(MSG_FINGERPRINT_AUTHENTICATED).sendToTarget();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user