diff options
author | Sergey Volnov <volnov@google.com> | 2020-02-12 18:19:41 +0000 |
---|---|---|
committer | Sergey Volnov <volnov@google.com> | 2020-03-29 12:50:41 +0000 |
commit | 5532c77904352b80c44d0a783532b418f497f74e (patch) | |
tree | 41e1cbd28222e4990dffce535ccef8fc8b31dcdd /libs/androidfw/DynamicLibManager.cpp | |
parent | 810c90c70e038d12adee25beac20cbd9523bcd4d (diff) |
Store hard refences in a static context and pass through only weak
references during the Content Capture Sharing.
Motivation: if the remote app is killed, we don't want a possibility of
system server holding a stroing reference (through a reference chain)
to large objects in that app. Therefore what's send in the binder has to
be a weak reference. And we will store a hard reference to those objects
in the client app's static context.
Storing hard references to objects in system_servier is less critical, because that is not going to be killed.
Bug: 148265162
Test: covered by CTS tests
Change-Id: Ie561aab6019d191cf8659fb350e045089e7781ed
(cherry picked from commit 13f65b29745d306351c666c4f9f4a2d701513fe5)
Diffstat (limited to 'libs/androidfw/DynamicLibManager.cpp')
0 files changed, 0 insertions, 0 deletions