Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6df21c51 authored by guochuang's avatar guochuang
Browse files

resourcemanager: update clientInfo when create DeathNotifier



In ResourceManagerService::addResource(), if Pid and Uid are unTrusted,
the mClientInfo stored in DeathNotifier is not updated. At this time,
if the process where Pid is located is killed (lowmemorykiller),
it triggers:
DeathNotifier::binderDied() -> ResourceManagerService::removeResource()
It cannot correctly find pid from mMap(which stores callingpid & callinguid),
so noteStopVideo() will not be called, resulting in the video resource
not being released.

Change-Id: Id456e0e64e34b558ff54507ce010048d9559775b
Signed-off-by: default avatarguochuang <guochuang@xiaomi.corp-partner.google.com>
parent 5d729cd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment