Launch ConfirmDeviceCredential with actual userId

Fixes: 129905318
Bug: 110907543

Test: Set up work profile, use BiometricPromptDemo to allow device
      credentials. Work profile demo app now requests work profile
      password.

Change-Id: Iec53966c6ad87021fdaa1808a1814a4abfbf89bb
This commit is contained in:
Kevin Chyn
2019-04-03 19:02:27 -07:00
parent 2170ab7d20
commit b13733024f

View File

@@ -629,7 +629,7 @@ public class BiometricService extends SystemService {
mConfirmDeviceCredentialReceiver = receiver;
// Use this so we don't need to duplicate logic..
final Intent intent = kgm.createConfirmDeviceCredentialIntent(null /* title */,
null /* description */);
null /* description */, userId);
// Then give it the bundle to do magic behavior..
intent.putExtra(KeyguardManager.EXTRA_BIOMETRIC_PROMPT_BUNDLE, bundle);
// Create a new task with this activity located at the root.