diff options
author | Rubin Xu <rubinxu@google.com> | 2020-06-03 23:10:58 +0100 |
---|---|---|
committer | Rubin Xu <rubinxu@google.com> | 2020-06-04 23:22:00 +0100 |
commit | 83ede344442b67da2aee11f491af507c07083033 (patch) | |
tree | 0cbfd08e1156a10a5ef6d6bcc2739e09d5e3849c /tools/aapt2/java/AnnotationProcessor.cpp | |
parent | 83e9ba45a4f874ecd81aeda3a4ff7964b1eba3ba (diff) |
Kill off callback reference as soon as credential is verified
During lockscreen verification, the caller-supplied callback is
strongly-referenced by a binder object passed into system server.
As a result the callback (which can be a heavyweight object like
the activity implementing the callback) cannot be garbage-collected
until the binder object is GC'ed at the system server side, which
the caller have no control over. Mitigate this by cutting the link
between the callback and the binder object as soon as the callback
is invoked.
This helps fixing the issue that we still see password shards
in Settinng's heap, even after credentail verification has long
been completed.
Bug: 144537463
Test: manual
Change-Id: I4dce3237c5e831b2077d5e9bc6f53d2c36064f78
Diffstat (limited to 'tools/aapt2/java/AnnotationProcessor.cpp')
0 files changed, 0 insertions, 0 deletions