Fix settings activity showing background bp when
createConfirmDeviceCredentialIntent() API is used.
If the app uses createConfirmDeviceCredentialIntent(),
ConfirmDeviceCredentialActivity is the top activity which has "settings"
as package name. Then if the app switches to settings, since previous
foreground check only checks package name, biometric prompt isn't
cancelled. This CL adds a class name check for this case.
Flag: EXEMPT bugfix
Bug: 339532378
Test: manual test with sample app
Change-Id: I722e285cd15869799b9fadd2324014cf3c6d44ad
10 files changed