Fixed
Status Update
Comments
sp...@google.com <sp...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Sunkesula, which coroutine scope did you use?
pr...@google.com <pr...@google.com> #3
If you use a lifecycle scope then the operation is expected to automatically cancel upon the destroy of the lifecycle owner (e.g. activity lifecycle scope cancels upon activity destroyed by configuration changes).
You need a different scope (e.g. view model scope) to survive across activity lifecycles. Meanwhile, the CredentialManager api takes in an activity: please do not cache that activity into your view model to use view model scope as that can cause memory leak when the activity gets destroyed. Instead, you would want to dynamically get your activity from a callback at the time of the invocation.
Description
aosp/1969360 adds necessary deprecations for T DP1, including in
CryptoObjectUtils
. Please check whether Biometric needs to be updated to use replacement APIs.Note that main branch is not on T DP1 yet, but platform-dev is. We added the annotations upstream to avoid future merge conflicts.