OSDN Git Service

Fingerprint: get auth id for non-current user.
authorCharles He <qiurui@google.com>
Fri, 27 Jan 2017 16:14:52 +0000 (16:14 +0000)
committerCharles He <qiurui@google.com>
Tue, 7 Feb 2017 01:02:51 +0000 (01:02 +0000)
commitaae60473e198e81387c83efd439a8ab3ea7045f1
tree350d5f67758dbb264de351bebf39c0b3f040ff66
parentc01308a03c23a13cf98d5137a028cdb7298ef654
Fingerprint: get auth id for non-current user.

Previously, getAuthenticatorId() simply returns the authenticator id
corresponding to the currently active user in FingerprintService.
However, this can cause bugs when, for example, KeyStore calls the
method before storing a fingerprint-bound key for a non-current user. In
such cases, the authenticator id of the calling user is desired, which
is not necessarily the same as the "current user" in FingerprintService.
This CL ensures the FingerprintService always returns the authenticator
id of the calling user.

Bug: 33459191
Test: manual
Change-Id: Ia9d6b869d16bd37f45358ba839cd12901ebc1076
Merged-In: I35c5a3a7082cffb8941eeaa219c8e20948ad41a9
core/java/android/hardware/fingerprint/FingerprintManager.java
services/core/java/com/android/server/fingerprint/FingerprintService.java