Skip to content
Commit e3980139 authored by Jackal Guo's avatar Jackal Guo
Browse files

Mitigate the races during installation.

During the installation of update, the application would be killed
twice. The first one is done by PackageFreezer. It kills and freezes
the application while starting installing. The second one happens
just after the package is unfrozen. Since the application won't be
able to be started when it's frozen. The second kill is a little
overkill to me. It's possible that someone starts the application
before the second kill comes. Skip the second kill to mitigate the
possible race.

Bug: 165012101
Test: atest PackageManagerTest
Change-Id: I5085547ba3f20c370474228deb13bbc24064ae21
parent 97ada9bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment