commit | 6894ba3da6da99eb0ef63d95bf1b19080d302eda | [log] [tgz] |
---|---|---|
author | Hao Dong <spdonghao@google.com> | Fri Oct 11 03:54:02 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Feb 05 21:19:54 2025 -0800 |
tree | 4cf04ee44589a4fa08b0584fc4506c7eaa2a3e8a | |
parent | 04a5d5dd09104732850f3bc504d44b54bc9cc891 [diff] |
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 on emulator Test: atest BiometricActivityTests#testConfirmDeviceCredentialActivityDismiss_whenSwitchToSettings (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:daddef9cd99ab401c4bb0b63ec434c08d549a97d) Merged-In: I722e285cd15869799b9fadd2324014cf3c6d44ad Change-Id: I722e285cd15869799b9fadd2324014cf3c6d44ad