New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mAuthenticationCallback
field leaks in FingerprintManager and BiometricPrompt
#1640
Comments
From #1634 : Steps to ReproduceSample project: https://github.com/msfjarvis/leakcanary-test-project
|
A workaround is to house the PS: I just need the success callback in my implementation. If there's a cleaner approach, please post it here.
|
I've bumped the repository to |
@msfjarvis sorry I meant to reply earlier and forgot. Did you file a leak on the Google issue tracker so that they can fix it in a newer version? Also, can you check if the leak still happens in Android 11? |
There's a couple filed issues [1] [2] over on the Jetpack side of things that mention this needs framework fixes so I didn't file a separate bug. The bug for FingerprintManager about this same problem was marked as fixed, then said fix was reverted before marking the issue as obsolete in a mass cleanup. Leak seems to still happen in Android 11, but AndroidX biometric has a couple fixes queued [1] [2]. |
This leak has been resolved in AndroidX (issue) in the latest biometric alpha and I've been able to confirm I no longer leak activities with biometric prompt. |
🙏 Closing Note: there's another biometric leak that I believe is still in alpha02: https://issuetracker.google.com/issues/167014923 |
LeakTrace information
BiometricPrompt leaks the field from here and FingerprintManager from here.
The text was updated successfully, but these errors were encountered: